blob: 825c8beef7baf5a78de3fec9fdf94cb323a390e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
/**CFile****************************************************************
FileName [util_hack.h]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [This file is used to simulate the presence of "util.h".]
Synopsis [External declarations.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [$Id: util_hack.h,v 1.00 2005/06/20 00:00:00 alanmi Exp $]
***********************************************************************/
#ifndef __UTIL_HACK_H__
#define __UTIL_HACK_H__
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <time.h>
#include <math.h>
#include "abc_global.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifndef EXTERN
#define EXTERN extern
#endif
#define NIL(type) ((type *) 0)
#define random rand
#define srandom srand
#define util_cpu_time Extra_CpuTime
#define getSoftDataLimit Extra_GetSoftDataLimit
#define util_getopt_reset Extra_UtilGetoptReset
#define util_getopt Extra_UtilGetopt
#define util_print_time Extra_UtilPrintTime
#define util_strsav Extra_UtilStrsav
#define util_tilde_expand Extra_UtilTildeExpand
#define util_file_search Extra_UtilFileSearch
#define MMoutOfMemory Extra_UtilMMoutOfMemory
#define util_optarg globalUtilOptarg
#define util_optind globalUtilOptind
#ifndef ARGS
# ifdef __STDC__
# define ARGS(args) args
# else
# define ARGS(args) ()
# endif
#endif
extern long Extra_CpuTime();
extern int Extra_GetSoftDataLimit();
extern void Extra_UtilGetoptReset();
extern int Extra_UtilGetopt( int argc, char *argv[], char *optstring );
extern char * Extra_UtilPrintTime( long t );
extern char * Extra_UtilStrsav( char *s );
extern char * Extra_UtilTildeExpand( char *fname );
extern char * Extra_UtilFileSearch( char *file, char *path, char *mode );
extern char * globalUtilOptarg;
extern int globalUtilOptind;
#ifdef __cplusplus
}
#endif
#endif
|