More dynamic object support, initial scripting support.
[deliverable/binutils-gdb.git] / gold / script-c.h
1 /* script-c.h -- C interface for linker scripts in gold. */
2
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. */
5
6 #ifndef GOLD_SCRIPT_C_H
7 #define GOLD_SCRIPT_C_H
8
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12
13 #include "yyscript.h"
14
15 /* The bison parser function. */
16
17 extern int
18 yyparse(void* closure);
19
20 /* Called by the bison parser skeleton to return the next token. */
21
22 extern int
23 yylex(YYSTYPE*, void* closure);
24
25 /* Called by the bison parser skeleton to report an error. */
26
27 extern void
28 yyerror(void* closure, const char*);
29
30 /* Called by the bison parser to add a file to the link. */
31
32 extern void
33 script_add_file(void* closure, const char*);
34
35 /* Called by the bison parser to start and stop a group. */
36
37 extern void
38 script_start_group(void* closure);
39 extern void
40 script_end_group(void* closure);
41
42 /* Called by the bison parser to start and end an AS_NEEDED list. */
43
44 extern void
45 script_start_as_needed(void* closure);
46 extern void
47 script_end_as_needed(void* closure);
48
49 #ifdef __cplusplus
50 }
51 #endif
52
53 #endif /* !defined(GOLD_SCRIPT_C_H) */
This page took 0.030926 seconds and 5 git commands to generate.