1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* dln.c, eval.c, gc.c, regex.c, ruby.h: shut up AIX alloca

warning.  [ruby-dev:29191]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2006-08-07 03:43:42 +00:00
parent 244007bd90
commit 390aa97698
6 changed files with 21 additions and 21 deletions

View file

@ -1,3 +1,8 @@
Mon Aug 7 12:05:28 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* dln.c, eval.c, gc.c, regex.c, ruby.h: shut up AIX alloca
warning. [ruby-dev:29191]
Sun Aug 6 20:40:41 2006 Tadayoshi Funaba <tadf@dotrb.org>
* lib/date/format.rb (str[fp]time): %[EO]U didn't denote %U.

4
dln.c
View file

@ -27,10 +27,6 @@
char *dln_argv0;
#endif
#ifdef _AIX
#pragma alloca
#endif
#if defined(HAVE_ALLOCA_H)
#include <alloca.h>
#endif

4
eval.c
View file

@ -53,9 +53,7 @@
# ifdef HAVE_ALLOCA_H
# include <alloca.h>
# else
# ifdef _AIX
#pragma alloca
# else
# ifndef _AIX
# ifndef alloca /* predefined by HP cc +Olibcalls */
void *alloca ();
# endif

4
gc.c
View file

@ -66,9 +66,7 @@ void rb_io_fptr_finalize _((struct OpenFile*));
# ifdef HAVE_ALLOCA_H
# include <alloca.h>
# else
# ifdef _AIX
#pragma alloca
# else
# ifndef _AIX
# ifndef alloca /* predefined by HP cc +Olibcalls */
void *alloca ();
# endif

19
regex.c
View file

@ -84,16 +84,19 @@ void rb_trap_exec _((void));
# endif
# endif /* atarist */
#else
# if defined(HAVE_ALLOCA_H)
# ifdef HAVE_ALLOCA_H
# include <alloca.h>
# elif !defined(alloca)
char *alloca();
# endif
#endif /* __GNUC__ */
# else
# ifdef _AIX
#pragma alloca
# else
# ifndef alloca /* predefined by HP cc +Olibcalls */
void *alloca ();
# endif
# endif /* AIX */
# endif /* HAVE_ALLOCA_H */
#ifdef _AIX
#pragma alloca
#endif
#endif /* __GNUC__ */
#ifdef HAVE_STRING_H
# include <string.h>

6
ruby.h
View file

@ -65,10 +65,10 @@ extern "C" {
#if defined(HAVE_ALLOCA_H)
#include <alloca.h>
#endif
#ifdef _AIX
#else
# ifdef _AIX
#pragma alloca
# endif
#endif
#if defined(__VMS)