2 * Copyright (C) 1991,1992 Erik Schoenfelder (schoenfr@ibr.cs.tu-bs.de)
4 * This file is part of NASE A60.
6 * NASE A60 is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
11 * NASE A60 is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with NASE A60; see the file COPYING. If not, write to the Free
18 * Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
22 * Erik Schoenfelder (schoenfr@ibr.cs.tu-bs.de)
24 * some common stuff for the sources.
36 extern FILE *freopen ();
41 * define NO_ENUMS, if the header files are changed (see ENUM.README).
46 #else /* ! NO_ENUMS */
48 #endif /* ! NO_ENUMS */
51 * use prototypes with ANSI C (e.g. GNU C):
54 #ifndef USE_PROTOTYPES
58 #define USE_PROTOTYPES
62 #endif /* ! USE_PROTOTYPES */
77 #ifndef THIS_IS_A60_LEX
78 extern char *malloc P((unsigned int n));
79 extern char *calloc P((unsigned int n, unsigned int s));
80 extern char *realloc P((char *p, unsigned int n));
81 extern int free P((char *p));
85 * most of the following declarations are originally from Stefan Petri
86 * (petri@ibr.cs.tu-bs.de) - thanks.
89 extern int strlen P((const char *));
90 extern int strcmp P((const char *, const char *));
91 extern int strncmp P((char *, char *, int));
92 extern char *strcat P((char *, char *));
95 extern void exit P((int s));
96 extern void perror P((char *s));
98 extern void exit P((const int s));
99 extern int perror P((char *s));
100 extern int bcopy P((char *s1, char *s2, int n));
103 extern int sleep P((unsigned s));
106 extern int setjmp P((jmp_buf env));
108 extern void longjmp P((jmp_buf env, int val));
110 extern int longjmp P((jmp_buf, int));
113 extern int system P((char *s));
114 extern int pclose P((FILE *f));
115 extern FILE *popen P((char *c, char *t));
116 extern FILE *fopen P((char *s, char *m));
117 extern int printf P((char *s, ...));
118 extern int fprintf P((FILE *f, char *s, ...));
119 extern int _filbuf P((FILE *f)); /* to keep gcc -Wall happy */
120 extern int _flsbuf P((unsigned char c, FILE *f));
121 extern int setbuf P((FILE *f, char *b));
122 extern int fflush P((FILE *f));
123 extern int fgetc P((FILE *f));
124 extern int read P((int, char *, int));
125 extern int ungetc P((int c, FILE *f));
126 extern int atoi P((char *s));
127 extern int sscanf P((char *s, char *f, ...));
128 extern int scanf P((char *f, ...));
129 extern int fscanf P((FILE *, char *f, ...));
130 extern int fputs P((char *s, FILE *f));
131 extern int fputc P((int c, FILE *f));
132 extern int fseek P((FILE *f, long o, int p));
133 extern int fclose P((FILE *f));
134 extern int puts P((char *s));
135 extern long time P((long *));
136 extern int dup2 P((int, int));
138 #endif /* ! _POSIX_SOURCE */
139 #else /* ! USE_PROTOTYPES */
143 * (this is surely not the best choice...)
147 #else /* ! __STDC__ */
150 extern char *strcpy ();
151 extern char *strcat ();
152 #endif /* ! __STDC__ */
163 #endif /* __STDC__ */
165 #endif /* ! USE_PROTOTYPES */
169 #endif /* COMM_H_HOOK */