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>
Include dependency graph for util_old.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) < 0 ? -(a) : (a))

Definition at line 249 of file util_old.h.

#define ALLOC ( type,
num   )     ((type *) MMalloc((long) sizeof(type) * (long) (num)))

Definition at line 63 of file util_old.h.

#define assert ( ex   ) 
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.

#define fail ( why   ) 
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)

Definition at line 67 of file util_old.h.

#define HUGE   8.9884656743115790e+307

Definition at line 292 of file util_old.h.

#define HUGE_VAL   HUGE

Definition at line 294 of file util_old.h.

#define MAX ( a,
 )     ((a) > (b) ? (a) : (b))

Definition at line 252 of file util_old.h.

#define MAXINT   (1 << 30)

Definition at line 297 of file util_old.h.

#define MIN ( a,
 )     ((a) < (b) ? (a) : (b))

Definition at line 255 of file util_old.h.

#define NIL ( type   )     ((type *) 0)

Definition at line 42 of file util_old.h.

#define print_time (  )     util_print_time(t)

Definition at line 283 of file util_old.h.

 
#define ptime (  )     util_cpu_time()

Definition at line 282 of file util_old.h.

#define REALLOC ( type,
obj,
num   )     ((type *) MMrealloc((char *) (obj), (long) sizeof(type) * (long) (num)))

Definition at line 65 of file util_old.h.

#define SIGNAL_FN   int

Definition at line 143 of file util_old.h.

#define VOID_HACK   int

Definition at line 76 of file util_old.h.


Function Documentation

VOID_HACK abort ( void   ) 
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)   ) 
double atof (  ) 
char* * * calloc (  ) 
VOID_HACK clearerr (  ) 
VOID_HACK exit (  ) 
VOID_HACK free (  ) 
char* getenv (  ) 
EXTERN long getSoftDataLimit (  ) 
char* malloc (  ) 
char* * memccpy (  ) 
char* * * memchr (  ) 
int memcmp (  ) 
char* * * * memcpy (  ) 
char* memmove (  ) 
char* * * * * memset (  ) 
int pclose (  ) 
VOID_HACK perror (  ) 
FILE* popen (  ) 
long random (  ) 
char* * realloc (  ) 
VOID_HACK rewind (  ) 
char* sprintf (  ) 
VOID_HACK srandom (  ) 
char* * * strcat (  ) 
char* * * strchr (  ) 
int strcmp (  ) 
int strcoll (  ) 
char* strcpy (  ) 
int strcspn (  ) 
char* * * * * strerror (  ) 
int strlen (  ) 
char* * * * strncat (  ) 
int strncmp (  ) 
char* * strncpy (  ) 
char* strpbrk (  ) 
char* * * * strrchr (  ) 
int strspn (  ) 
char* * * * * strstr (  ) 
char* * strtok (  ) 
int strxfrm (  ) 
int system (  ) 
FILE* * tmpfile (  ) 

Variable Documentation

char* util_optarg

Generated on Tue Jan 5 12:19:13 2010 for abc70930 by  doxygen 1.6.1