Several changes for ANSI C
This commit is contained in:
@@ -17,11 +17,19 @@
|
||||
char *Srealloc(str, n) same as Realloc.
|
||||
*/
|
||||
|
||||
extern char *Salloc(), *Malloc(), *Srealloc(), *Realloc();
|
||||
#if __STDC__
|
||||
extern void *malloc(), *realloc();
|
||||
char *Malloc(unsigned int);
|
||||
char *Salloc(char *, unsigned int);
|
||||
char *Srealloc(char *, unsigned int);
|
||||
char *Realloc(char *, unsigned int);
|
||||
char *st_alloc(char **, unsigned int, int);
|
||||
char *std_alloc(char **, unsigned int, int, int *);
|
||||
int No_Mem(void);
|
||||
void clear(char *, unsigned int);
|
||||
void botch(char *, unsigned int);
|
||||
#else
|
||||
extern char *malloc(), *realloc();
|
||||
extern char *Salloc(), *Malloc(), *Srealloc(), *Realloc();
|
||||
extern char *st_alloc(), *std_alloc();
|
||||
#endif
|
||||
|
||||
/* S T R U C T U R E - S T O R A G E D E F I N I T I O N S */
|
||||
@@ -30,7 +38,6 @@ typedef struct _ALLOC_ {
|
||||
struct _ALLOC_ *_A_next;
|
||||
} *_PALLOC_;
|
||||
|
||||
extern char *st_alloc();
|
||||
|
||||
#define _A_st_free(ptr, phead, size) (((_PALLOC_)ptr)->_A_next = \
|
||||
(_PALLOC_)(*phead), \
|
||||
|
||||
Reference in New Issue
Block a user