Files called from SICServer should now compile under linux

This commit is contained in:
cvs
2000-07-21 13:01:55 +00:00
parent d782d43951
commit 5f5aface14
15 changed files with 401 additions and 115 deletions

View File

@@ -5,12 +5,13 @@
#include "fortify.h"
#endif
/* secure allocation stuff ---------------------------------- */
/* secure allocation stuff ----------------------------------
change these macros if you want to log dynamic memory access
*/
#define NEW(PTR) ERR_SP(PTR=my_malloc(sizeof(*PTR),#PTR))
void *my_malloc(size_t size, const char *text);
void my_free(void *ptr);
#define NEW(PTR) ERR_SP(PTR=calloc(1,sizeof(*PTR)))
#define MALLOC(SIZ) calloc(1,SIZ)
#define FREE(PTR) free(PTR)
/* fortran interface stuff ----------------------------------
@@ -35,7 +36,9 @@ typedef struct { short size, dummy; char *text; } SysVmsChar;
#define STR_TO_F(DST,SRC) str_npad(DST, SRC, DST##_len)
#else
#error this machine is not supported
/* other machines are not yet supported */
#endif
#endif /* _SYS_UTIL_H_ */