diff options
author | Ian Lance Taylor <ian@airs.com> | 2009-03-24 19:08:37 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2009-03-24 19:08:37 +0000 |
commit | afc06bb8287c9a5c81be4810fd0384e952dd19ea (patch) | |
tree | c3a8c77b95478d08bd7a76537647b7cea712cae9 /gold/script-c.h | |
parent | f6060a4d43e06a6ca5dd201b069ab9f29aae1b81 (diff) | |
download | gdb-afc06bb8287c9a5c81be4810fd0384e952dd19ea.zip gdb-afc06bb8287c9a5c81be4810fd0384e952dd19ea.tar.gz gdb-afc06bb8287c9a5c81be4810fd0384e952dd19ea.tar.bz2 |
* 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.
Diffstat (limited to 'gold/script-c.h')
-rw-r--r-- | gold/script-c.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gold/script-c.h b/gold/script-c.h index 13c789a..3da634f 100644 --- a/gold/script-c.h +++ b/gold/script-c.h @@ -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 |