* yyscript.y (file_cmd): Recognize EXTERN.

(extern_name_list, extern_name_list_body): New nonterminals.
	* script.cc (script_add_extern): Define.
	* script-c.h (script_add_extern): Declare.
This commit is contained in:
Ian Lance Taylor
2009-03-24 19:08:37 +00:00
parent f6060a4d43
commit afc06bb828
4 changed files with 47 additions and 1 deletions

View File

@@ -211,6 +211,12 @@ yylex(YYSTYPE*, void* closure);
extern void
yyerror(void* closure, const char*);
/* Called by the bison parser to add an external symbol (a symbol in
an EXTERN declaration) to the link. */
extern void
script_add_extern(void* closure, const char*, size_t);
/* Called by the bison parser to add a file to the link. */
extern void