Changed types in core allocation routines, changed lint flags

This commit is contained in:
ceriel
1990-12-17 14:55:03 +00:00
parent 71ca9b484f
commit 668638dbc7
8 changed files with 42 additions and 38 deletions

View File

@@ -9,16 +9,16 @@
*/
#ifdef DEBUG
extern short *newcore();
extern char *newcore();
extern oldcore();
#else
extern short *myalloc();
extern char *myalloc();
#define newcore(size) myalloc(size)
#define oldcore(p,size) free(p)
#define oldcore(p,size) free((char *)p)
#endif
#define newstruct(t) (newcore (sizeof (struct t)))
#define oldstruct(t,p) oldcore((short *) p,sizeof (struct t))
#define newstruct(t) ((struct t *) newcore (sizeof (struct t)))
#define oldstruct(t,p) oldcore((char *) p,sizeof (struct t))
extern line_p newline(); /* (byte optype) */
extern arg_p newarg(); /* (byte argtype) */