#include <unistd.h>#include "scv/scv_config.h"#include <stdio.h>#include <ctype.h>Include dependency graph for util.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | EXTERN extern |
| #define | ARGS(protos) () |
| #define | NULLARGS () |
| #define | const |
| #define | UTIL_INLINE |
| #define | UTIL_UNUSED |
| #define | SIZEOF_VOID_P 4 |
| #define | SIZEOF_INT 4 |
| #define | SIZEOF_LONG 4 |
| #define | strsav util_strsav |
| #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((char *) (obj)), (obj) = 0) : 0) |
| #define | VOID_OR_INT int |
| #define | VOID_OR_CHAR char |
| #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)) |
Typedefs | |
| typedef int | util_ptrint |
Functions | |
| FILE * | popen () |
| FILE ** | tmpfile () |
| int | pclose () |
| VOID_OR_INT | clearerr () |
| VOID_OR_INT | rewind () |
| VOID_OR_INT | abort () |
| VOID_OR_INT | exit () |
| VOID_OR_INT | perror () |
| char * | sprintf () |
| EXTERN VOID_OR_INT free | ARGS ((void *)) |
| VOID_OR_CHAR * | malloc () |
| VOID_OR_CHAR ** | realloc () |
| char * | getenv () |
| 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 () |
| EXTERN char *MMalloc | ARGS ((long)) |
| EXTERN char *MMrealloc | ARGS ((char *, long)) |
| EXTERN long util_cpu_time | ARGS ((void)) |
| EXTERN int util_getopt | ARGS ((int, char **, char *)) |
| EXTERN char *util_path_search | ARGS ((char *)) |
| EXTERN char *util_file_search | ARGS ((char *, char *, char *)) |
| EXTERN int util_pipefork | ARGS ((char **, FILE **, FILE **, int *)) |
| EXTERN void util_print_cpu_stats | ARGS ((FILE *)) |
| EXTERN char *util_print_time | ARGS ((unsigned long)) |
| EXTERN int util_save_image | ARGS ((char *, char *)) |
| EXTERN void util_restart | ARGS ((char *, char *, int)) |
Variables | |
| char * | optarg |
| int | optind |
| int | opterr |
| EXTERN int | util_optind |
| EXTERN char * | util_optarg |
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 28 of file util.h. Referenced by sc_lambda_ptr::sc_lambda_ptr(), and sc_module::sc_module(). |
|
|
|
|
|
Value: {\
(void) fprintf(stderr, "Fatal error: file %s, line %d\n%s\n",\
__FILE__, __LINE__, why);\
(void) fflush(stdout);\
abort();\
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Referenced by vcd_trace_file::vcd_trace_file(), and wif_trace_file::wif_trace_file(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Referenced by sc_pvector_base::operator=(), and sc_pvector_base::sc_pvector_base(). |
|
|
|
|
|
Referenced by _scv_CstructMethods< T >::_scv_CstructMethods(), sc_report_handler::add_msg_type(), and sc_phash_base::rehash(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Referenced by sc_object::basename(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.18