abc-master
|
Go to the source code of this file.
Data Structures | |
struct | Extra_FileReader_t_ |
Macros | |
#define | EXTRA_BUFFER_SIZE 4*1048576 |
DECLARATIONS ///. More... | |
#define | EXTRA_OFFSET_SIZE 4096 |
#define | EXTRA_MINIMUM(a, b) (((a) < (b))? (a) : (b)) |
Enumerations | |
enum | Extra_CharType_t { EXTRA_CHAR_COMMENT, EXTRA_CHAR_NORMAL, EXTRA_CHAR_STOP, EXTRA_CHAR_CLEAN } |
Functions | |
static void * | Extra_FileReaderGetTokens_int (Extra_FileReader_t *p) |
static void | Extra_FileReaderReload (Extra_FileReader_t *p) |
Extra_FileReader_t * | Extra_FileReaderAlloc (char *pFileName, char *pCharsComment, char *pCharsStop, char *pCharsClean) |
FUNCTION DEFINITIONS ///. More... | |
void | Extra_FileReaderFree (Extra_FileReader_t *p) |
char * | Extra_FileReaderGetFileName (Extra_FileReader_t *p) |
int | Extra_FileReaderGetFileSize (Extra_FileReader_t *p) |
int | Extra_FileReaderGetCurPosition (Extra_FileReader_t *p) |
int | Extra_FileReaderGetLineNumber (Extra_FileReader_t *p, int iToken) |
void * | Extra_FileReaderGetTokens (Extra_FileReader_t *p) |
#define EXTRA_BUFFER_SIZE 4*1048576 |
DECLARATIONS ///.
CFile****************************************************************
FileName [extraUtilReader.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [extra]
Synopsis [File reading utilities.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
]
Definition at line 32 of file extraUtilReader.c.
#define EXTRA_MINIMUM | ( | a, | |
b | |||
) | (((a) < (b))? (a) : (b)) |
Definition at line 35 of file extraUtilReader.c.
#define EXTRA_OFFSET_SIZE 4096 |
Definition at line 33 of file extraUtilReader.c.
enum Extra_CharType_t |
Enumerator | |
---|---|
EXTRA_CHAR_COMMENT | |
EXTRA_CHAR_NORMAL | |
EXTRA_CHAR_STOP | |
EXTRA_CHAR_CLEAN |
Definition at line 61 of file extraUtilReader.c.
Extra_FileReader_t* Extra_FileReaderAlloc | ( | char * | pFileName, |
char * | pCharsComment, | ||
char * | pCharsStop, | ||
char * | pCharsClean | ||
) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Starts the file reader.]
Description []
SideEffects []
SeeAlso []
Definition at line 87 of file extraUtilReader.c.
void Extra_FileReaderFree | ( | Extra_FileReader_t * | p | ) |
Function*************************************************************
Synopsis [Stops the file reader.]
Description []
SideEffects []
SeeAlso []
Definition at line 149 of file extraUtilReader.c.
int Extra_FileReaderGetCurPosition | ( | Extra_FileReader_t * | p | ) |
Function*************************************************************
Synopsis [Returns the current reading position.]
Description []
SideEffects []
SeeAlso []
Definition at line 202 of file extraUtilReader.c.
char* Extra_FileReaderGetFileName | ( | Extra_FileReader_t * | p | ) |
Function*************************************************************
Synopsis [Returns the file size.]
Description []
SideEffects []
SeeAlso []
Definition at line 170 of file extraUtilReader.c.
int Extra_FileReaderGetFileSize | ( | Extra_FileReader_t * | p | ) |
Function*************************************************************
Synopsis [Returns the file size.]
Description []
SideEffects []
SeeAlso []
Definition at line 186 of file extraUtilReader.c.
int Extra_FileReaderGetLineNumber | ( | Extra_FileReader_t * | p, |
int | iToken | ||
) |
Function*************************************************************
Synopsis [Returns the line number for the given token.]
Description []
SideEffects []
SeeAlso []
Definition at line 218 of file extraUtilReader.c.
void* Extra_FileReaderGetTokens | ( | Extra_FileReader_t * | p | ) |
Function*************************************************************
Synopsis [Returns the next set of tokens.]
Description []
SideEffects []
SeeAlso []
Definition at line 236 of file extraUtilReader.c.
|
static |
Function*************************************************************
Synopsis [Returns the next set of tokens.]
Description []
SideEffects []
SeeAlso []
Definition at line 256 of file extraUtilReader.c.
|
static |
Function*************************************************************
Synopsis [Loads new data into the file reader.]
Description []
SideEffects []
SeeAlso []
Definition at line 362 of file extraUtilReader.c.