src/misc/espresso/util_old.h File Reference
#include "ansi.h"
#include <stdio.h>
#include <ctype.h>
#include <sys/types.h>
#include <signal.h>
#include <math.h>
#include <varargs.h>
Go to the source code of this file.
Defines |
#define | NIL(type) ((type *) 0) |
#define | ALLOC(type, num) ((type *) MMalloc((long) sizeof(type) * (long) (num))) |
#define | REALLOC(type, obj, num) ((type *) MMrealloc((char *) (obj), (long) sizeof(type) * (long) (num))) |
#define | FREE(obj) ((obj) ? (free((void *) (obj)), (obj) = 0) : 0) |
#define | VOID_HACK int |
#define | SIGNAL_FN int |
#define | assert(ex) |
#define | fail(why) |
#define | ABS(a) ((a) < 0 ? -(a) : (a)) |
#define | MAX(a, b) ((a) > (b) ? (a) : (b)) |
#define | MIN(a, b) ((a) < (b) ? (a) : (b)) |
#define | ptime() util_cpu_time() |
#define | print_time(t) util_print_time(t) |
#define | HUGE 8.9884656743115790e+307 |
#define | HUGE_VAL HUGE |
#define | MAXINT (1 << 30) |
Functions |
FILE * | popen () |
FILE ** | tmpfile () |
int | pclose () |
VOID_HACK | clearerr () |
VOID_HACK | rewind () |
VOID_HACK | abort () |
VOID_HACK | free () |
VOID_HACK | exit () |
VOID_HACK | perror () |
char * | getenv () |
char * | malloc () |
char ** | realloc () |
char *** | calloc () |
char * | sprintf () |
int | system () |
double | atof () |
char * | strcpy () |
char ** | strncpy () |
char *** | strcat () |
char **** | strncat () |
char ***** | strerror () |
char * | strpbrk () |
char ** | strtok () |
char *** | strchr () |
char **** | strrchr () |
char ***** | strstr () |
int | strcoll () |
int | strxfrm () |
int | strncmp () |
int | strlen () |
int | strspn () |
int | strcspn () |
char * | memmove () |
char ** | memccpy () |
char *** | memchr () |
char **** | memcpy () |
char ***** | memset () |
int | memcmp () |
int | strcmp () |
VOID_HACK | srandom () |
long | random () |
EXTERN void MMout_of_memory | ARGS ((long)) |
EXTERN char *MMrealloc | ARGS ((char *, long)) |
EXTERN void MMfree | ARGS ((char *)) |
EXTERN void util_print_cpu_stats | ARGS ((FILE *)) |
EXTERN long util_cpu_time | ARGS ((void)) |
EXTERN int util_getopt | ARGS ((int, char **, char *)) |
EXTERN char *util_file_search | ARGS ((char *, char *, char *)) |
EXTERN int util_pipefork | ARGS ((char **, FILE **, FILE **, int *)) |
EXTERN int util_save_image | ARGS ((char *, char *)) |
EXTERN long | getSoftDataLimit () |
Variables |
int | util_optind |
char * | util_optarg |
Define Documentation
#define ABS |
( |
a |
|
) |
((a) < 0 ? -(a) : (a)) |
#define ALLOC |
( |
type, |
|
|
num |
|
) |
((type *) MMalloc((long) sizeof(type) * (long) (num))) |
Value:{\
if (! (ex)) {\
(void) fprintf(stderr,\
"Assertion failed: file %s, line %d\n\"%s\"\n",\
__FILE__, __LINE__, "ex");\
(void) fflush(stdout);\
abort();\
}\
}
Definition at line 213 of file util_old.h.
Value:{\
(void) fprintf(stderr, "Fatal error: file %s, line %d\n%s\n",\
__FILE__, __LINE__, why);\
(void) fflush(stdout);\
abort();\
}
Definition at line 225 of file util_old.h.
#define FREE |
( |
obj |
|
) |
((obj) ? (free((void *) (obj)), (obj) = 0) : 0) |
#define HUGE 8.9884656743115790e+307 |
#define MAX |
( |
a, |
|
|
b |
|
) |
((a) > (b) ? (a) : (b)) |
#define MIN |
( |
a, |
|
|
b |
|
) |
((a) < (b) ? (a) : (b)) |
#define NIL |
( |
type |
|
) |
((type *) 0) |
#define print_time |
( |
t |
|
) |
util_print_time(t) |
#define ptime |
( |
|
) |
util_cpu_time() |
#define REALLOC |
( |
type, |
|
|
obj, |
|
|
num |
|
) |
((type *) MMrealloc((char *) (obj), (long) sizeof(type) * (long) (num))) |
Function Documentation
EXTERN int stmm_ptrcmp ARGS |
( |
(char *, char *) |
|
) |
|
EXTERN int util_pipefork ARGS |
( |
(char **, FILE **, FILE **, int *) |
|
) |
|
EXTERN char* util_file_search ARGS |
( |
(char *, char *, char *) |
|
) |
|
EXTERN int util_getopt ARGS |
( |
(int, char **, char *) |
|
) |
|
EXTERN FILE *util_tmpfile ARGS |
( |
(void) |
|
) |
|
EXTERN void util_print_cpu_stats ARGS |
( |
(FILE *) |
|
) |
|
EXTERN char *util_tilde_expand ARGS |
( |
(char *) |
|
) |
|
EXTERN char* MMrealloc ARGS |
( |
(char *, long) |
|
) |
|
EXTERN char *util_print_time ARGS |
( |
(long) |
|
) |
|
EXTERN long getSoftDataLimit |
( |
|
) |
|
char* * * * * strerror |
( |
|
) |
|
Variable Documentation