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