From 1bd1fa2ddb01ac4e2b6bd176723c11037e1858c4 Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Thu, 16 Apr 1992 18:03:51 +0000 Subject: [PATCH] Lint found by Rich and gcc --- ld/ldlang.c | 4 ++-- ld/ldlang.h | 11 ++++++++--- ld/ldlex.l | 9 +++++++++ 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/ld/ldlang.c b/ld/ldlang.c index 9483a774ab1..191dd484814 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -302,9 +302,9 @@ DEFUN(new_afile, (name, file_type, target), lang_input_statement_type * DEFUN(lang_add_input_file,(name, file_type, target), - char *name AND + CONST char *name AND lang_input_file_enum_type file_type AND - char *target) + CONST char *target) { /* Look it up or build a new one */ lang_has_input_file = true; diff --git a/ld/ldlang.h b/ld/ldlang.h index acd039d7d20..d5dc21ba213 100644 --- a/ld/ldlang.h +++ b/ld/ldlang.h @@ -43,6 +43,8 @@ typedef struct memory_region_struct { bfd_offset length; bfd_vma current; int flags; + boolean had_full_message; + } lang_memory_region_type ; typedef struct lang_statement_header_struct @@ -256,7 +258,7 @@ PROTO(struct memory_region_struct , char *CONST)); -PROTO(void ,lang_map,(FILE *)); +PROTO(void ,lang_map,(void)); PROTO(void,lang_set_flags,(int *, CONST char *)); PROTO(void,lang_add_output,(CONST char *)); @@ -321,9 +323,9 @@ PROTO(lang_output_section_statement_type *,lang_output_section_find,(CONST char * CONST)); PROTO(lang_input_statement_type *, - lang_add_input_file,(char *name, + lang_add_input_file,(CONST char *name, lang_input_file_enum_type file_type, - char *target)); + CONST char *target)); PROTO(lang_output_section_statement_type *, lang_output_section_statement_lookup,(CONST char * CONST name)); @@ -334,3 +336,6 @@ PROTO(void, lang_add_output_format,(CONST char *)); void EXFUN(lang_list_init,( lang_statement_list_type*)); void EXFUN(lang_add_data,(int type, union etree_union *)); + +void EXFUN(lang_for_each_statement,(void (*func)())); + diff --git a/ld/ldlex.l b/ld/ldlex.l index f4ffc4ce635..28e067b92fd 100644 --- a/ld/ldlex.l +++ b/ld/ldlex.l @@ -288,6 +288,15 @@ WHITE [ \t\n]+ "LIST".* { RTOKEN(LIST); /* LIST and ignore to end of line */ } "SECT" { RTOKEN(SECT); } "ABSOLUTE" { RTOKEN(ABSOLUTE); } +"end" { RTOKEN(ENDWORD); } +"chip" { RTOKEN(CHIP); } +"load" { RTOKEN(LOAD); } +"order" { RTOKEN(ORDER); } +"name" { RTOKEN(NAMEWORD); } +"format" { RTOKEN(FORMAT); } +"list".* { RTOKEN(LIST); /* LIST and ignore to end of line */ } +"sect" { RTOKEN(SECT); } +"absolute" { RTOKEN(ABSOLUTE); } {FILENAMECHAR1}{FILENAMECHAR}* { yylval.name = buystring(yytext); -- 2.30.2