version 1.9, 2003/06/03 02:56:07 |
version 1.10, 2003/06/12 20:58:09 |
|
|
* read .c and .h files and call appropriate routines |
* read .c and .h files and call appropriate routines |
*/ |
*/ |
void |
void |
c_entries() |
c_entries(void) |
{ |
{ |
int c; /* current character */ |
int c; /* current character */ |
int level; /* brace level */ |
int level; /* brace level */ |
|
|
* handle a function reference |
* handle a function reference |
*/ |
*/ |
static int |
static int |
func_entry() |
func_entry(void) |
{ |
{ |
int c; /* current character */ |
int c; /* current character */ |
int level = 0; /* for matching '()' */ |
int level = 0; /* for matching '()' */ |
|
|
* handle a line starting with a '#' |
* handle a line starting with a '#' |
*/ |
*/ |
static void |
static void |
hash_entry() |
hash_entry(void) |
{ |
{ |
int c; /* character read */ |
int c; /* character read */ |
int curline; /* line started on */ |
int curline; /* line started on */ |
|
|
* handle a struct, union or enum entry |
* handle a struct, union or enum entry |
*/ |
*/ |
static int |
static int |
str_entry(c) |
str_entry(int c) |
int c; /* current character */ |
|
{ |
{ |
int curline; /* line started on */ |
int curline; /* line started on */ |
char *sp; /* buffer pointer */ |
char *sp; /* buffer pointer */ |
|
|
* skip to the end of a string or character constant. |
* skip to the end of a string or character constant. |
*/ |
*/ |
void |
void |
skip_string(key) |
skip_string(int key) |
int key; |
|
{ |
{ |
int c, |
int c, |
skip; |
skip; |
|
|
* skip to next char "key" |
* skip to next char "key" |
*/ |
*/ |
int |
int |
skip_key(key) |
skip_key(int key) |
int key; |
|
{ |
{ |
int c, |
int c, |
skip, |
skip, |