* mipsread.c: Fix many invocations of complain. Use enum
type_code where appropriate.
This commit is contained in:
parent
41bd448eaa
commit
e5578a31ee
2 changed files with 9 additions and 7 deletions
|
@ -1,6 +1,7 @@
|
||||||
Mon Apr 6 15:25:03 1992 Stu Grossman (grossman at cygnus.com)
|
Mon Apr 6 15:25:03 1992 Stu Grossman (grossman at cygnus.com)
|
||||||
|
|
||||||
* mipsread.c: Fix many invocations of complain.
|
* mipsread.c: Fix many invocations of complain. Use enum
|
||||||
|
type_code where appropriate.
|
||||||
|
|
||||||
* xm-vaxult.h: Add decl for strdup().
|
* xm-vaxult.h: Add decl for strdup().
|
||||||
|
|
||||||
|
|
|
@ -218,7 +218,8 @@ static void
|
||||||
parse_partial_symbols PARAMS ((int, struct objfile *));
|
parse_partial_symbols PARAMS ((int, struct objfile *));
|
||||||
|
|
||||||
static int
|
static int
|
||||||
cross_ref PARAMS ((union aux_ext *, struct type **, int, char **, int));
|
cross_ref PARAMS ((union aux_ext *, struct type **, enum type_code, char **,
|
||||||
|
int));
|
||||||
|
|
||||||
static void
|
static void
|
||||||
fixup_sigtramp PARAMS ((void));
|
fixup_sigtramp PARAMS ((void));
|
||||||
|
@ -843,7 +844,7 @@ free_pending(f_idx)
|
||||||
static char *
|
static char *
|
||||||
prepend_tag_kind(tag_name, type_code)
|
prepend_tag_kind(tag_name, type_code)
|
||||||
char *tag_name;
|
char *tag_name;
|
||||||
int type_code;
|
enum type_code type_code;
|
||||||
{
|
{
|
||||||
char *prefix;
|
char *prefix;
|
||||||
char *result;
|
char *result;
|
||||||
|
@ -1054,7 +1055,7 @@ data: /* Common code for symbols describing data */
|
||||||
push_parse_stack();
|
push_parse_stack();
|
||||||
top_stack->blocktype = stBlock;
|
top_stack->blocktype = stBlock;
|
||||||
if (sh->sc == scInfo) { /* structure/union/enum def */
|
if (sh->sc == scInfo) { /* structure/union/enum def */
|
||||||
int type_code =
|
enum type_code type_code =
|
||||||
sh->st == stStruct ? TYPE_CODE_STRUCT
|
sh->st == stStruct ? TYPE_CODE_STRUCT
|
||||||
: sh->st == stUnion ? TYPE_CODE_UNION
|
: sh->st == stUnion ? TYPE_CODE_UNION
|
||||||
: sh->st == stEnum ? TYPE_CODE_ENUM
|
: sh->st == stEnum ? TYPE_CODE_ENUM
|
||||||
|
@ -1332,7 +1333,7 @@ parse_type(ax, bs, bigend)
|
||||||
struct type *tp = 0;
|
struct type *tp = 0;
|
||||||
char *fmt;
|
char *fmt;
|
||||||
union aux_ext *tax;
|
union aux_ext *tax;
|
||||||
int type_code;
|
enum type_code type_code;
|
||||||
|
|
||||||
/* Use aux as a type information record, map its basic type. */
|
/* Use aux as a type information record, map its basic type. */
|
||||||
tax = ax;
|
tax = ax;
|
||||||
|
@ -1966,7 +1967,7 @@ parse_partial_symbols(end_of_text_seg, objfile)
|
||||||
register struct partial_symbol *psym;
|
register struct partial_symbol *psym;
|
||||||
for (cur_sdx = 0; cur_sdx < fh->csym; ) {
|
for (cur_sdx = 0; cur_sdx < fh->csym; ) {
|
||||||
char *name;
|
char *name;
|
||||||
int class;
|
enum address_class class;
|
||||||
sh = cur_sdx + (SYMR *) fh->isymBase;
|
sh = cur_sdx + (SYMR *) fh->isymBase;
|
||||||
|
|
||||||
if (MIPS_IS_STAB(sh)) {
|
if (MIPS_IS_STAB(sh)) {
|
||||||
|
@ -2416,7 +2417,7 @@ static int
|
||||||
cross_ref(ax, tpp, type_code, pname, bigend)
|
cross_ref(ax, tpp, type_code, pname, bigend)
|
||||||
union aux_ext *ax;
|
union aux_ext *ax;
|
||||||
struct type **tpp;
|
struct type **tpp;
|
||||||
int type_code; /* Use to alloc new type if none is found. */
|
enum type_code type_code; /* Use to alloc new type if none is found. */
|
||||||
char **pname;
|
char **pname;
|
||||||
int bigend;
|
int bigend;
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue