version 1.3, 2001/07/17 02:23:59 |
version 1.4, 2001/07/18 22:26:00 |
|
|
|
|
#define ARGNAME "arg" |
#define ARGNAME "arg" |
|
|
static void isdefined __P((definition *)); |
static isdefined __P((definition *)); |
static void def_struct __P((definition *)); |
static def_struct __P((definition *)); |
static void def_program __P((definition *)); |
static def_program __P((definition *)); |
static void def_enum __P((definition *)); |
static def_enum __P((definition *)); |
static void def_const __P((definition *)); |
static def_const __P((definition *)); |
static void def_union __P((definition *)); |
static def_union __P((definition *)); |
static void def_typedef __P((definition *)); |
static def_typedef __P((definition *)); |
static void get_declaration __P((declaration *, defkind)); |
static get_declaration __P((declaration *, defkind)); |
static void get_prog_declaration __P((declaration *, defkind, int)); |
static get_prog_declaration __P((declaration *, defkind, int)); |
static void get_type __P((char **, char **, defkind)); |
static get_type __P((char **, char **, defkind)); |
static void unsigned_dec __P((char **)); |
static unsigned_dec __P((char **)); |
|
|
/* |
/* |
* return the next definition you see |
* return the next definition you see |
|
|
return (defp); |
return (defp); |
} |
} |
|
|
static void |
static |
isdefined(defp) |
isdefined(defp) |
definition *defp; |
definition *defp; |
{ |
{ |
STOREVAL(&defined, defp); |
STOREVAL(&defined, defp); |
} |
} |
|
|
static void |
static |
def_struct(defp) |
def_struct(defp) |
definition *defp; |
definition *defp; |
{ |
{ |
|
|
*tailp = NULL; |
*tailp = NULL; |
} |
} |
|
|
static void |
static |
def_program(defp) |
def_program(defp) |
definition *defp; |
definition *defp; |
{ |
{ |
|
|
} |
} |
|
|
|
|
static void |
static |
def_enum(defp) |
def_enum(defp) |
definition *defp; |
definition *defp; |
{ |
{ |
|
|
*tailp = NULL; |
*tailp = NULL; |
} |
} |
|
|
static void |
static |
def_const(defp) |
def_const(defp) |
definition *defp; |
definition *defp; |
{ |
{ |
|
|
defp->def.co = tok.str; |
defp->def.co = tok.str; |
} |
} |
|
|
static void |
static |
def_union(defp) |
def_union(defp) |
definition *defp; |
definition *defp; |
{ |
{ |
token tok; |
token tok; |
declaration dec; |
declaration dec; |
case_list *cases; |
case_list *cases,*tcase; |
case_list **tailp; |
case_list **tailp; |
int flag; |
int flag; |
|
|
|
|
|
|
/* check that the given name is not one that would eventually result in |
/* check that the given name is not one that would eventually result in |
xdr routines that would conflict with internal XDR routines. */ |
xdr routines that would conflict with internal XDR routines. */ |
static void |
static check_type_name( name, new_type ) |
check_type_name( name, new_type ) |
int new_type; |
int new_type; |
char* name; |
char* name; |
|
{ |
{ |
int i; |
int i; |
char tmp[100]; |
char tmp[100]; |
|
|
} |
} |
} |
} |
|
|
static void |
static |
def_typedef(defp) |
def_typedef(defp) |
definition *defp; |
definition *defp; |
{ |
{ |
|
|
defp->def.ty.array_max = dec.array_max; |
defp->def.ty.array_max = dec.array_max; |
} |
} |
|
|
static void |
static |
get_declaration(dec, dkind) |
get_declaration(dec, dkind) |
declaration *dec; |
declaration *dec; |
defkind dkind; |
defkind dkind; |
|
|
} |
} |
} |
} |
|
|
static void |
static |
get_prog_declaration(dec, dkind, num) |
get_prog_declaration(dec, dkind, num) |
declaration *dec; |
declaration *dec; |
defkind dkind; |
defkind dkind; |
|
|
|
|
|
|
|
|
static void |
static |
get_type(prefixp, typep, dkind) |
get_type(prefixp, typep, dkind) |
char **prefixp; |
char **prefixp; |
char **typep; |
char **typep; |
|
|
} |
} |
} |
} |
|
|
static void |
static |
unsigned_dec(typep) |
unsigned_dec(typep) |
char **typep; |
char **typep; |
{ |
{ |