summaryrefslogtreecommitdiff
blob: 15847a52c480cc22d2ac9a0e2f2f4b792b758eb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--- a/src/address_parser.c
+++ b/src/address_parser.c
@@ -83,6 +83,8 @@
 #include "enode.h"
 #include "address_parser_status.h"
 
+enum address_parser_status_type address_parser_status;
+
 extern int adslex (void);
 
 /* The root of the expression (when represented as a parse tree) */
--- a/src/address_parser_status.h
+++ b/src/address_parser_status.h
@@ -13,4 +13,4 @@
  * returns either \c NULL or the top-level enode of the address, so we need to
  * use an extern variable to convey its status. */
 
-enum address_parser_status_type address_parser_status;
+extern enum address_parser_status_type address_parser_status;
--- a/tests/test_newick_parser.c
+++ b/tests/test_newick_parser.c
@@ -11,7 +11,7 @@
 int nwslex (void);
 struct rnode *root;
 struct llist *nodes_in_order;
-enum parser_status_type newick_parser_status;
+extern enum parser_status_type newick_parser_status;
 void newick_scanner_set_string_input(char *);
 
 /* NOTE: we can use to_newick() to check the parser's output because this
--- a/tests/test_newick_scanner.c
+++ b/tests/test_newick_scanner.c
@@ -20,7 +20,7 @@
 int nwslex (void);
 struct rnode *root;
 struct llist *nodes_in_order;
-enum parser_status_type newick_parser_status;
+extern enum parser_status_type newick_parser_status;
 void newick_scanner_set_string_input(char *);
 void newick_scanner_set_file_input(FILE *);