abc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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.

Macros

#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
 

Macro Definition Documentation

#define ABS (   a)    ((a) < 0 ? -(a) : (a))

Definition at line 250 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();\
}\
}
if(last==0)
Definition: sparse_int.h:34
VOID_HACK 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();\
}
VOID_HACK 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 293 of file util_old.h.

#define HUGE_VAL   HUGE

Definition at line 295 of file util_old.h.

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

Definition at line 253 of file util_old.h.

#define MAXINT   (1 << 30)

Definition at line 298 of file util_old.h.

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

Definition at line 256 of file util_old.h.

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

Definition at line 42 of file util_old.h.

#define print_time (   t)    util_print_time(t)

Definition at line 284 of file util_old.h.

#define ptime ( )    util_cpu_time()

Definition at line 283 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 ( )
EXTERN char *util_print_time ARGS ( (long)  )
EXTERN char* MMrealloc ARGS ( (char *, long)  )
EXTERN char *util_tilde_expand ARGS ( (char *)  )
EXTERN void util_print_cpu_stats ARGS ( (FILE *)  )
EXTERN FILE *util_tmpfile 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 *)  )
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
int util_optind