Consolidate alloca support.
authorRainer Orth <ro@techfak.uni-bielefeld.de>
Fri, 26 Sep 2003 20:15:12 +0000 (20:15 +0000)
committerRainer Orth <ro@techfak.uni-bielefeld.de>
Fri, 26 Sep 2003 20:15:12 +0000 (20:15 +0000)
* amd/amq_svc.c: Move alloca support ...
* include/am_defs.h: ... here.
* amd/conf_parse.y: Remove alloca support.
* fsinfo/fsi_gram.y: Likewise.

ChangeLog
amd/amq_svc.c
amd/conf_parse.y
fsinfo/fsi_gram.y
include/am_defs.h

index 64edcd6fe29dfccf3bc58c5a64653cfad463f3bd..ea40f3013c608f4bf111c384a69b5e1658f2749e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2003-09-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       Consolidate alloca support.
+
+       * amd/amq_svc.c: Move alloca support ...
+       * include/am_defs.h: ... here.
+       * amd/conf_parse.y: Remove alloca support.
+       * fsinfo/fsi_gram.y: Likewise.
+
 2003-09-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
 
        Handle Solaris 10.
index 2795bd1d59d0859bb610164148a220790cc13fcb..007b556ee468503967277df0fbfde4990a0bfcef 100644 (file)
@@ -37,7 +37,7 @@
  * SUCH DAMAGE.
  *
  *
- * $Id: amq_svc.c,v 1.13 2003/09/25 20:19:08 ro Exp $
+ * $Id: amq_svc.c,v 1.14 2003/09/26 20:15:13 ro Exp $
  *
  */
 
 #include <am_defs.h>
 #include <amd.h>
 
-/* AIX requires this to be the first thing in the file. */
-#ifndef __GNUC__
-# if HAVE_ALLOCA_H
-#  include <alloca.h>
-# else /* not HAVE_ALLOCA_H */
-#  ifdef _AIX
-/*
- * This pragma directive is indented so that pre-ANSI C compilers will
- * ignore it, rather than choke on it.
- */
- #pragma alloca
-#  else /* not _AIX */
-#   ifndef alloca
-/* predefined by HP cc +Olibcalls */
-voidp alloca();
-#   endif /* not alloca */
-#  endif /* not _AIX */
-# endif /* not HAVE_ALLOCA_H */
-#endif /* not __GNUC__ */
-
 /* typedefs */
 typedef char *(*amqsvcproc_t)(voidp, struct svc_req *);
 
index b90b58cc824fe136e8cd9145bc7db7e2e5623c33..a3e2517496ffbb0c965d0a139d730d5132697a67 100644 (file)
@@ -37,7 +37,7 @@
  * SUCH DAMAGE.
  *
  *
- * $Id: conf_parse.y,v 1.11 2003/07/13 19:11:19 ezk Exp $
+ * $Id: conf_parse.y,v 1.12 2003/09/26 20:15:13 ro Exp $
  *
  */
 
 #include <am_defs.h>
 #include <amd.h>
 
-/* AIX requires this to be the first thing in the file. */
-#ifndef __GNUC__
-# if HAVE_ALLOCA_H
-#  include <alloca.h>
-# else /* not HAVE_ALLOCA_H */
-#  ifdef _AIX
-/*
- * This pragma directive is indented so that pre-ANSI C compilers will
- * ignore it, rather than choke on it.
- */
- #pragma alloca
-#  else /* not _AIX */
-#   ifndef alloca
-/* predefined by HP cc +Olibcalls */
-voidp alloca();
-#   endif /* not alloca */
-#  endif /* not _AIX */
-# endif /* not HAVE_ALLOCA_H */
-#endif /* not __GNUC__ */
-
 extern char *yytext;
 extern int ayylineno;
 extern int yylex(void);
index b11074c63d2af90145d956bd50488bc121af34a5..310591937c69abdd347f48e9fdc2e275ad6c8ec8 100644 (file)
@@ -37,7 +37,7 @@
  * SUCH DAMAGE.
  *
  *
- * $Id: fsi_gram.y,v 1.9 2002/12/27 22:44:07 ezk Exp $
+ * $Id: fsi_gram.y,v 1.10 2003/09/26 20:15:14 ro Exp $
  *
  */
 
 #include <fsi_data.h>
 #include <fsinfo.h>
 
-/* AIX requires this to be the first thing in the file. */
-#ifndef __GNUC__
-# if HAVE_ALLOCA_H
-#  include <alloca.h>
-# else /* not HAVE_ALLOCA_H */
-#  ifdef _AIX
-/*
- * This pragma directive is indented so that pre-ANSI C compilers will
- * ignore it, rather than choke on it.
- */
- #pragma alloca
-#  else /* not _AIX */
-#   ifndef alloca
-/* predefined by HP cc +Olibcalls */
-voidp alloca();
-#   endif /* not alloca */
-#  endif /* not _AIX */
-# endif /* not HAVE_ALLOCA_H */
-#endif /* not __GNUC__ */
-
 extern qelem *list_of_hosts, *list_of_automounts;
 %}
 
index ba13bf9188f7f8aa740b8f2471ecfe8800fbce2f..35e042d3c7994376fa90872bebfd1473fcf3257e 100644 (file)
@@ -37,7 +37,7 @@
  * SUCH DAMAGE.
  *
  *
- * $Id: am_defs.h,v 1.43 2003/08/02 18:56:33 ezk Exp $
+ * $Id: am_defs.h,v 1.44 2003/09/26 20:15:13 ro Exp $
  *
  */
 
 char *strchr(), *strrchr(), *strdup();
 #endif /* not STDC_HEADERS */
 
+/* AIX requires this to be the first thing in the file. */
+#ifndef __GNUC__
+# if HAVE_ALLOCA_H
+#  include <alloca.h>
+# else /* not HAVE_ALLOCA_H */
+#  ifdef _AIX
+/*
+ * This pragma directive is indented so that pre-ANSI C compilers will
+ * ignore it, rather than choke on it.
+ */
+ #pragma alloca
+#  else /* not _AIX */
+#   ifndef alloca
+/* predefined by HP cc +Olibcalls */
+voidp alloca();
+#   endif /* not alloca */
+#  endif /* not _AIX */
+# endif /* not HAVE_ALLOCA_H */
+#endif /* not __GNUC__ */
+
 /*
  * Handle gcc __attribute__ if available.
  */