* 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-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.
* 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 *);
* 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);
* 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;
%}
* 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.
*/