1 /* script-c.h -- C interface for linker scripts in gold. */
3 /* This file exists so that both the bison parser and script.cc can
4 include it, so that they can communicate back and forth. */
6 #ifndef GOLD_SCRIPT_C_H
7 #define GOLD_SCRIPT_C_H
15 /* The bison parser function. */
18 yyparse(void* closure
);
20 /* Called by the bison parser skeleton to return the next token. */
23 yylex(YYSTYPE
*, void* closure
);
25 /* Called by the bison parser skeleton to report an error. */
28 yyerror(void* closure
, const char*);
30 /* Called by the bison parser to add a file to the link. */
33 script_add_file(void* closure
, const char*);
35 /* Called by the bison parser to start and stop a group. */
38 script_start_group(void* closure
);
40 script_end_group(void* closure
);
42 /* Called by the bison parser to start and end an AS_NEEDED list. */
45 script_start_as_needed(void* closure
);
47 script_end_as_needed(void* closure
);
53 #endif /* !defined(GOLD_SCRIPT_C_H) */