utils

grenum.h File Reference

#include <stdio.h>
Include dependency graph for grenum.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  refdes_

Defines

#define GRVERSION   "24052006"
#define COMP_DATE   __DATE__
#define COMP_TIME   __TIME__
#define MAX_PREFIX_COUNT   50
#define PAGE_JMP   100
#define COUNT_START   0
#define MAX_PREFIX_SIZE   10
#define BUFFSIZE   256
#define FILENAMESIZE   100
#define PAGEJUMP   0x01
#define GAP_DETECTED   0x02
#define OK   0
#define NO_INPUT_FILE   1
#define FILE_OP_ERROR   2
#define PARSE_ERROR   3
#define OUT_OF_MEMORY   4
#define END_OF_FILE   2
#define NOT_REFDES_LINE   3
#define REFDES_WITH_VALUE   0
#define REFDES_WITHOUT_VALUE   1
#define REFDES_ERROR   -1
#define REFDES_NOT_FOUND   -1
#define VALUE_FOUND   1
#define VALUE_NOT_FOUND   0

Functions

int main (int argc, char *argv[])
int get_refdes_from_file (FILE *fp, struct refdes_ *refdes, char *buff)
int seek_value (int prefix, FILE *fp, unsigned int value, struct refdes_ *db)
int parse_refdes (struct refdes_ *refdes, char *ref_str)
int refdes_lookup (struct refdes_ *db, struct refdes_ *ref)
void printhelp (void)
void printver (void)

Define Documentation

#define GRVERSION   "24052006"

Definition at line 3 of file grenum.h.

#define COMP_DATE   __DATE__

Definition at line 4 of file grenum.h.

#define COMP_TIME   __TIME__

Definition at line 5 of file grenum.h.

#define MAX_PREFIX_COUNT   50

Definition at line 6 of file grenum.h.

#define PAGE_JMP   100

Definition at line 7 of file grenum.h.

#define COUNT_START   0

Definition at line 8 of file grenum.h.

#define MAX_PREFIX_SIZE   10

Definition at line 9 of file grenum.h.

#define BUFFSIZE   256

Definition at line 10 of file grenum.h.

#define FILENAMESIZE   100

Definition at line 11 of file grenum.h.

#define PAGEJUMP   0x01

Definition at line 29 of file grenum.h.

#define GAP_DETECTED   0x02

Definition at line 30 of file grenum.h.

#define OK   0

Definition at line 33 of file grenum.h.

#define NO_INPUT_FILE   1

Definition at line 34 of file grenum.h.

#define FILE_OP_ERROR   2

Definition at line 35 of file grenum.h.

#define PARSE_ERROR   3

Definition at line 36 of file grenum.h.

#define OUT_OF_MEMORY   4

Definition at line 37 of file grenum.h.

#define END_OF_FILE   2

Definition at line 40 of file grenum.h.

#define NOT_REFDES_LINE   3

Definition at line 41 of file grenum.h.

#define REFDES_WITH_VALUE   0

Definition at line 44 of file grenum.h.

#define REFDES_WITHOUT_VALUE   1

Definition at line 45 of file grenum.h.

#define REFDES_ERROR   -1

Definition at line 46 of file grenum.h.

#define REFDES_NOT_FOUND   -1

Definition at line 49 of file grenum.h.

#define VALUE_FOUND   1

Definition at line 52 of file grenum.h.

#define VALUE_NOT_FOUND   0

Definition at line 53 of file grenum.h.


Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 52 of file grenum.c.

int get_refdes_from_file ( FILE *  fp,
struct refdes_ refdes,
char *  buff 
)

Definition at line 252 of file grenum.c.

Here is the call graph for this function:

int seek_value ( int  prefix,
FILE *  fp,
unsigned int  value,
struct refdes_ db 
)

Definition at line 272 of file grenum.c.

Here is the call graph for this function:

int parse_refdes ( struct refdes_ refdes,
char *  ref_str 
)

Definition at line 293 of file grenum.c.

int refdes_lookup ( struct refdes_ db,
struct refdes_ ref 
)

Definition at line 355 of file grenum.c.

void printhelp ( void  )

Definition at line 372 of file grenum.c.

Here is the call graph for this function:

void printver ( void  )

Definition at line 393 of file grenum.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines