Now use EXFUN rather than PROTO, so that things using ansidecl.h and

not bfd.h can use them
This commit is contained in:
Steve Chamberlain 1992-03-06 12:14:14 +00:00
parent 921bc43581
commit 56a56f4c15
12 changed files with 114 additions and 114 deletions

View File

@ -19,18 +19,18 @@
#define POSIX_UTIME
#define HAVE_PROCFS /* This host has /proc support */
extern PROTO(void, abort,(void));
extern PROTO(int, close,(int));
extern PROTO(void, exit,(int));
extern PROTO(int, fclose,(FILE*));
extern PROTO(void, free,(PTR));
extern PROTO(int, fseek,(FILE*, long, int));
extern PROTO(int, getgid,());
extern PROTO(int, getuid,());
extern PROTO(PTR, malloc,(unsigned));
extern PROTO(void, perror,(CONST char *));
extern PROTO(int, qsort,(void *data,int els, int siz, int func()));
extern PROTO(PTR, realloc, (PTR, unsigned));
extern void EXFUN( abort,(void));
extern int EXFUN( close,(int));
extern void EXFUN( exit,(int));
extern int EXFUN( fclose,(FILE*));
extern void EXFUN( free,(PTR));
extern int EXFUN( fseek,(FILE*, long, int));
extern int EXFUN( getgid,());
extern int EXFUN( getuid,());
extern PTR EXFUN( malloc,(unsigned));
extern void EXFUN( perror,(CONST char *));
extern int EXFUN( qsort,(void *data,int els, int siz, int func()));
extern PTR EXFUN( realloc, (PTR, unsigned));
extern char *getenv();
extern int chmod();

View File

@ -45,9 +45,9 @@
*/
#ifndef DONTDECLARE_MALLOC
extern PROTO(PTR,malloc,(unsigned));
extern PROTO(PTR ,realloc, (PTR, unsigned));
extern PROTO(void, free,(PTR));
extern PTR EXFUN(malloc,(unsigned));
extern PTR EXFUN(realloc, (PTR, unsigned));
extern void EXFUN( free,(PTR));
#endif
/* EXACT TYPES */

View File

@ -11,36 +11,36 @@
#include <stdio.h>
#ifndef DONTDECLARE_MALLOC
extern PROTO(PTR,malloc,(unsigned));
extern PROTO(PTR ,realloc, (PTR, unsigned));
extern PTR EXFUN(malloc,(unsigned));
extern PTR EXFUN(realloc, (PTR, unsigned));
#endif
extern PROTO(int, abort,(void));
extern PROTO(int, free,(PTR));
extern PROTO(void, bcopy,(char*,char*,int));
extern PROTO(void, exit,(int));
extern int EXFUN( abort,(void));
extern int EXFUN( free,(PTR));
extern void EXFUN( bcopy,(char*,char*,int));
extern void EXFUN( exit,(int));
extern int strtol();
extern PROTO(void, bzero,(char *, int));
extern void EXFUN( bzero,(char *, int));
#define NO_STDARG 1
extern PROTO(int, abort,(void));
extern PROTO(int, close,(int));
extern PROTO(int, fcntl,(int des, int cmd, int e));
extern int EXFUN( abort,(void));
extern int EXFUN( close,(int));
extern int EXFUN( fcntl,(int des, int cmd, int e));
extern PROTO(int, qsort,(void *data,int els, int siz, int func()));
extern PROTO(unsigned short,getuid,(void));
extern PROTO(unsigned short,getgid,(void));
extern PROTO(int, fseek,(FILE*, int, int));
extern PROTO(int, fclose,(FILE*));
extern PROTO(void, bcopy,(char*,char*,int));
extern PROTO(int, bcmp,(char *, char *, int));
extern PROTO(void, bzero,(char *, int));
extern int EXFUN( qsort,(void *data,int els, int siz, int func()));
extern unsigned short EXFUN(getuid,(void));
extern unsigned short EXFUN(getgid,(void));
extern int EXFUN( fseek,(FILE*, int, int));
extern int EXFUN( fclose,(FILE*));
extern void EXFUN( bcopy,(char*,char*,int));
extern int EXFUN( bcmp,(char *, char *, int));
extern void EXFUN( bzero,(char *, int));
extern char * strchr();
extern PROTO(void, perror,(CONST char *));
extern void EXFUN( perror,(CONST char *));
extern char *getenv();
extern PROTO(PTR, memchr,(const void *, int, unsigned ));
extern PTR EXFUN( memchr,(const void *, int, unsigned ));
extern char *strrchr();
extern int chmod();
extern int fread();

View File

@ -12,15 +12,15 @@
#include <stdio.h>
#ifndef DONTDECLARE_MALLOC
extern PROTO(PTR,malloc,(unsigned));
extern PROTO(PTR ,realloc, (PTR, unsigned));
extern PTR EXFUN(malloc,(unsigned));
extern PTR EXFUN(realloc, (PTR, unsigned));
#endif
extern PROTO(int, abort,(void));
extern PROTO(int, free,(PTR));
extern PROTO(void, bcopy,(char*,char*,int));
extern PROTO(void, exit,(int));
extern int EXFUN( abort,(void));
extern int EXFUN( free,(PTR));
extern void EXFUN( bcopy,(char*,char*,int));
extern void EXFUN( exit,(int));
extern int strtol();
extern PROTO(void, bzero,(char *, int));
extern void EXFUN( bzero,(char *, int));
#define NO_STDARG 1

View File

@ -11,15 +11,15 @@
#include <stdio.h>
#ifndef DONTDECLARE_MALLOC
extern PROTO(PTR,malloc,(unsigned));
extern PROTO(PTR ,realloc, (PTR, unsigned));
extern PTR EXFUN(malloc,(unsigned));
extern PTR EXFUN(realloc, (PTR, unsigned));
#endif
extern PROTO(int, abort,(void));
extern PROTO(int, free,(PTR));
extern PROTO(void, bcopy,(char*,char*,int));
extern PROTO(void, exit,(int));
extern int EXFUN( abort,(void));
extern int EXFUN( free,(PTR));
extern void EXFUN( bcopy,(char*,char*,int));
extern void EXFUN( exit,(int));
extern int strtol();
extern PROTO(void, bzero,(char *, int));
extern void EXFUN( bzero,(char *, int));
/* EXACT TYPES */
typedef char int8e_type;

View File

@ -16,9 +16,9 @@ extern int errno; /* <errno.h> forgets to do this... */
#define SEEK_SET 0
#define SEEK_CUR 1
extern PROTO(PTR, malloc, (unsigned));
extern PROTO(PTR, realloc, (PTR, unsigned));
extern PROTO(void, free, (PTR));
extern PTR EXFUN( malloc, (unsigned));
extern PTR EXFUN( realloc, (PTR, unsigned));
extern void EXFUN( free, (PTR));
#define HAVE_STRERROR

View File

@ -44,9 +44,9 @@
*/
#ifndef DONTDECLARE_MALLOC
extern PROTO(PTR,malloc,(unsigned));
extern PROTO(PTR ,realloc, (PTR, unsigned));
extern PROTO(void, free,(PTR));
extern PTR EXFUN(malloc,(unsigned));
extern PTR EXFUN(realloc, (PTR, unsigned));
extern void EXFUN( free,(PTR));
#endif
/* EXACT TYPES */

View File

@ -19,18 +19,18 @@
#define POSIX_UTIME
#define HAVE_PROCFS /* This host has /proc support */
extern PROTO(void, abort,(void));
extern PROTO(int, close,(int));
extern PROTO(void, exit,(int));
extern PROTO(int, fclose,(FILE*));
extern PROTO(void, free,(PTR));
extern PROTO(int, fseek,(FILE*, long, int));
extern PROTO(int, getgid,());
extern PROTO(int, getuid,());
extern PROTO(PTR, malloc,(unsigned));
extern PROTO(void, perror,(CONST char *));
extern PROTO(int, qsort,(void *data,int els, int siz, int func()));
extern PROTO(PTR, realloc, (PTR, unsigned));
extern void EXFUN( abort,(void));
extern int EXFUN( close,(int));
extern void EXFUN( exit,(int));
extern int EXFUN( fclose,(FILE*));
extern void EXFUN( free,(PTR));
extern int EXFUN( fseek,(FILE*, long, int));
extern int EXFUN( getgid,());
extern int EXFUN( getuid,());
extern PTR EXFUN( malloc,(unsigned));
extern void EXFUN( perror,(CONST char *));
extern int EXFUN( qsort,(void *data,int els, int siz, int func()));
extern PTR EXFUN( realloc, (PTR, unsigned));
extern char *getenv();
extern int chmod();

View File

@ -18,29 +18,29 @@
/* Make the basic types 64-bit quantities on the host */
#define HOST_64_BIT long long
extern PROTO(int, abort,(void));
extern PROTO(int, close,(int));
extern PROTO(int, fcntl,(int des, int cmd, int e));
extern PROTO(int, fprintf,(FILE *,char *,...));
extern PROTO(int, printf,(char *,...));
extern PROTO(int, qsort,(void *data,int els, int siz, int func()));
extern PROTO(void, exit,(int));
extern PROTO(int, fseek,(FILE*, int, int));
extern PROTO(int, fclose,(FILE*));
extern PROTO(void, bcopy,(char*,char*,int));
extern PROTO(int, bcmp,(char *, char *, int));
extern PROTO(void, bzero,(char *, int));
extern PROTO(PTR,memset,(PTR, int,unsigned int));
extern int EXFUN( abort,(void));
extern int EXFUN( close,(int));
extern int EXFUN( fcntl,(int des, int cmd, int e));
extern int EXFUN( fprintf,(FILE *,char *,...));
extern int EXFUN( printf,(char *,...));
extern int EXFUN( qsort,(void *data,int els, int siz, int func()));
extern void EXFUN( exit,(int));
extern int EXFUN( fseek,(FILE*, int, int));
extern int EXFUN( fclose,(FILE*));
extern void EXFUN( bcopy,(char*,char*,int));
extern int EXFUN( bcmp,(char *, char *, int));
extern void EXFUN( bzero,(char *, int));
extern PTR EXFUN(memset,(PTR, int,unsigned int));
#ifndef __GNUC__
PROTO(PTR, memcpy,(PTR,CONST PTR,unsigned int));
PTR EXFUN( memcpy,(PTR,CONST PTR,unsigned int));
#else
/* PROTO(char *, memcpy,(char *,CONST char *,unsigned int)); */
/* char * EXFUN( memcpy,(char *,CONST char *,unsigned int)); */
#endif
extern PROTO(int,getuid,());
extern PROTO(int,getgid,());
extern int EXFUN(getuid,());
extern int EXFUN(getgid,());
extern char * strchr();
extern PROTO(void, perror,(CONST char *));
extern void EXFUN( perror,(CONST char *));
extern char *getenv();
extern char *memchr();
extern char *strrchr();
@ -52,11 +52,11 @@ extern int sscanf();
extern int stat();
extern int strtol();
#ifndef DONTDECLARE_MALLOC
extern PROTO(PTR,malloc,(unsigned));
extern PROTO(PTR ,realloc, (PTR, unsigned));
extern PTR EXFUN(malloc,(unsigned));
extern PTR EXFUN(realloc, (PTR, unsigned));
#endif
extern PROTO(int, free,(PTR));
extern int EXFUN( free,(PTR));
extern char *strrchr();

View File

@ -31,7 +31,7 @@ extern void EXFUN(bzero,(char *, int));
#ifndef __GNUC__
PTR EXFUN(memcpy,(PTR,CONST PTR,unsigned int));
#else
/* PROTO(char *, memcpy,(char *,CONST char *,unsigned int)); */
/* char * EXFUN( memcpy,(char *,CONST char *,unsigned int)); */
#endif
PTR EXFUN(memset,(PTR, int, int));

View File

@ -19,18 +19,18 @@
#define POSIX_UTIME
#define HAVE_PROCFS /* This host has /proc support */
extern PROTO(void, abort,(void));
extern PROTO(int, close,(int));
extern PROTO(void, exit,(int));
extern PROTO(int, fclose,(FILE*));
extern PROTO(void, free,(PTR));
extern PROTO(int, fseek,(FILE*, long, int));
extern PROTO(int, getgid,());
extern PROTO(int, getuid,());
extern PROTO(PTR, malloc,(unsigned));
extern PROTO(void, perror,(CONST char *));
extern PROTO(int, qsort,(void *data,int els, int siz, int func()));
extern PROTO(PTR, realloc, (PTR, unsigned));
extern void EXFUN( abort,(void));
extern int EXFUN( close,(int));
extern void EXFUN( exit,(int));
extern int EXFUN( fclose,(FILE*));
extern void EXFUN( free,(PTR));
extern int EXFUN( fseek,(FILE*, long, int));
extern int EXFUN( getgid,());
extern int EXFUN( getuid,());
extern PTR EXFUN( malloc,(unsigned));
extern void EXFUN( perror,(CONST char *));
extern int EXFUN( qsort,(void *data,int els, int siz, int func()));
extern PTR EXFUN( realloc, (PTR, unsigned));
extern char *getenv();
extern int chmod();

View File

@ -12,20 +12,20 @@
#define SEEK_SET 0
#define SEEK_CUR 1
extern PROTO(int, abort,(void));
extern PROTO(int, close,(int));
extern PROTO(int, fcntl,(int des, int cmd, int e));
extern PROTO(int, fprintf,(FILE *,char *,...));
extern PROTO(int, printf,(char *,...));
extern PROTO(int, qsort,(void *data,int els, int siz, int func()));
extern PROTO(int, exit,(int));
extern PROTO(int, fseek,(FILE*, int, int));
extern PROTO(int, fclose,(FILE*));
extern PROTO(void, bcopy,(char*,char*,int));
extern PROTO(int, bcmp,(char *, char *, int));
extern PROTO(void, bzero,(char *, int));
extern int EXFUN( abort,(void));
extern int EXFUN( close,(int));
extern int EXFUN( fcntl,(int des, int cmd, int e));
extern int EXFUN( fprintf,(FILE *,char *,...));
extern int EXFUN( printf,(char *,...));
extern int EXFUN( qsort,(void *data,int els, int siz, int func()));
extern int EXFUN( exit,(int));
extern int EXFUN( fseek,(FILE*, int, int));
extern int EXFUN( fclose,(FILE*));
extern void EXFUN( bcopy,(char*,char*,int));
extern int EXFUN( bcmp,(char *, char *, int));
extern void EXFUN( bzero,(char *, int));
extern char * strchr();
extern PROTO(void, perror,(CONST char *));
extern void EXFUN( perror,(CONST char *));
extern char *getenv();
extern char *memchr();
extern char *strrchr();