extern void
script_add_file(void* closure, const char*, size_t);
+/* Called by the bison parser to add a library to the link. */
+
+extern void
+script_add_library(void* closure, const char*, size_t);
+
/* Called by the bison parser to start and stop a group. */
extern void
extern void
script_pop_lex_mode(void* closure);
+/* Called by the bison parser to get the value of a symbol. This is
+ called for a reference to a symbol, but is not called for something
+ like "sym += 10". Uses of the special symbol "." can just call
+ script_exp_string. */
+
+extern Expression_ptr
+script_symbol(void* closure, const char*, size_t);
+
/* Called by the bison parser to set a symbol to a value. PROVIDE is
non-zero if the symbol should be provided--only defined if there is
an undefined reference. HIDDEN is non-zero if the symbol should be
script_register_vers_node(void* closure,
const char* tag,
int taglen,
- struct Version_tree *,
- struct Version_dependency_list *);
+ struct Version_tree*,
+ struct Version_dependency_list*);
-extern struct Version_dependency_list *
+extern struct Version_dependency_list*
script_add_vers_depend(void* closure,
- struct Version_dependency_list *existing_dependencies,
- const char *depend_to_add, int deplen);
+ struct Version_dependency_list* existing_dependencies,
+ const char* depend_to_add, int deplen);
-extern struct Version_expression_list *
+extern struct Version_expression_list*
script_new_vers_pattern(void* closure,
- struct Version_expression_list *,
- const char *, int, int);
+ struct Version_expression_list*,
+ const char*, int, int);
-extern struct Version_expression_list *
-script_merge_expressions(struct Version_expression_list *a,
- struct Version_expression_list *b);
+extern struct Version_expression_list*
+script_merge_expressions(struct Version_expression_list* a,
+ struct Version_expression_list* b);
-extern struct Version_tree *
+extern struct Version_tree*
script_new_vers_node(void* closure,
- struct Version_expression_list *global,
- struct Version_expression_list *local);
+ struct Version_expression_list* global,
+ struct Version_expression_list* local);
extern void
version_script_push_lang(void* closure, const char* lang, int langlen);