Line
Link Here
|
0 |
-- a/dep.h |
0 |
++ b/dep.h |
Lines 134-140
Link Here
|
134 |
struct goaldep *read_all_makefiles (const char **makefiles); |
134 |
struct goaldep *read_all_makefiles (const char **makefiles); |
135 |
|
135 |
|
136 |
/*! The chain of makefiles read by read_makefile. */ |
136 |
/*! The chain of makefiles read by read_makefile. */ |
137 |
struct goaldep *read_makefiles; |
137 |
extern struct goaldep *read_makefiles; |
138 |
|
138 |
|
139 |
void eval_buffer (char *buffer, const gmk_floc *floc); |
139 |
void eval_buffer (char *buffer, const gmk_floc *floc); |
140 |
enum update_status update_goal_chain (struct goaldep *goals); |
140 |
enum update_status update_goal_chain (struct goaldep *goals); |
141 |
-- a/globals.c |
141 |
++ b/globals.c |
Lines 120-127
Link Here
|
120 |
of each job stay together. */ |
120 |
of each job stay together. */ |
121 |
int output_sync = OUTPUT_SYNC_NONE; |
121 |
int output_sync = OUTPUT_SYNC_NONE; |
122 |
|
122 |
|
123 |
const char *default_shell; |
|
|
124 |
|
125 |
char *remote_description = 0; |
123 |
char *remote_description = 0; |
126 |
|
124 |
|
127 |
/* Remember the original value of the SHELL variable, from the environment. */ |
125 |
/* Remember the original value of the SHELL variable, from the environment. */ |
128 |
-- a/globals.h |
126 |
++ b/globals.h |
Lines 85-90
Link Here
|
85 |
extern bool b_debugger_preread; |
85 |
extern bool b_debugger_preread; |
86 |
|
86 |
|
87 |
/* Remember the original value of the SHELL variable, from the environment. */ |
87 |
/* Remember the original value of the SHELL variable, from the environment. */ |
88 |
struct variable shell_var; |
88 |
extern struct variable shell_var; |
|
|
89 |
|
90 |
/**! The default value of SHELL and the shell that is used when issuing |
91 |
commands on targets. |
92 |
*/ |
93 |
extern const char *default_shell; |
94 |
|
89 |
|
95 |
|
90 |
#endif /*GLOBALS_H*/ |
96 |
#endif /*GLOBALS_H*/ |
91 |
-- a/main.c |
97 |
++ b/main.c |
Lines 40-45
Link Here
|
40 |
# include <fcntl.h> |
40 |
# include <fcntl.h> |
41 |
#endif |
41 |
#endif |
42 |
|
42 |
|
|
|
43 |
struct goaldep *read_makefiles; |
44 |
|
43 |
extern void initialize_stopchar_map (); |
45 |
extern void initialize_stopchar_map (); |
44 |
|
46 |
|
45 |
#if defined HAVE_WAITPID || defined HAVE_WAIT3 |
47 |
#if defined HAVE_WAITPID || defined HAVE_WAIT3 |
46 |
-- a/main.h |
48 |
++ b/main.h |
Lines 35-44
Link Here
|
35 |
/* is default_shell unixy? */ |
35 |
/* is default_shell unixy? */ |
36 |
extern int unixy_shell; |
36 |
extern int unixy_shell; |
37 |
|
37 |
|
38 |
/**! The default value of SHELL and the shell that is used when issuing |
|
|
39 |
commands on targets. |
40 |
*/ |
41 |
extern char *default_shell; |
42 |
|
43 |
/*! Print version information. */ |
38 |
/*! Print version information. */ |
44 |
extern void print_version (void); |
39 |
extern void print_version (void); |
45 |
-- a/make.h |
40 |
++ b/make.h |
Lines 333-339
Link Here
|
333 |
#endif |
333 |
#endif |
334 |
#ifdef SET_STACK_SIZE |
334 |
#ifdef SET_STACK_SIZE |
335 |
# include <sys/resource.h> |
335 |
# include <sys/resource.h> |
336 |
struct rlimit stack_limit; |
336 |
extern struct rlimit stack_limit; |
337 |
#endif |
337 |
#endif |
338 |
|
338 |
|
339 |
/* We have to have stdarg.h or varargs.h AND v*printf or doprnt to use |
339 |
/* We have to have stdarg.h or varargs.h AND v*printf or doprnt to use |
340 |
-- a/print.h |
340 |
++ b/print.h |
Lines 39-45
Link Here
|
39 |
|
39 |
|
40 |
/* Think of the below not as an enumeration but as #defines done in a |
40 |
/* Think of the below not as an enumeration but as #defines done in a |
41 |
way that we'll be able to use the value in a gdb. */ |
41 |
way that we'll be able to use the value in a gdb. */ |
42 |
enum debug_print_enums_e { |
42 |
extern enum debug_print_enums_e { |
43 |
MAX_STACK_SHOW = 1000, |
43 |
MAX_STACK_SHOW = 1000, |
44 |
} debug_print_enums1; |
44 |
} debug_print_enums1; |
45 |
|
45 |
|
46 |
-- a/variable.c |
46 |
++ b/variable.c |
Lines 29-34
Link Here
|
29 |
#endif |
29 |
#endif |
30 |
#include "hash.h" |
30 |
#include "hash.h" |
31 |
#include "main.h" |
31 |
#include "main.h" |
|
|
32 |
#include "globals.h" |
32 |
|
33 |
|
33 |
/* Incremented every time we add or remove a global variable. */ |
34 |
/* Incremented every time we add or remove a global variable. */ |
34 |
static unsigned long variable_changenum; |
35 |
static unsigned long variable_changenum; |
35 |
-- a/variable.h |
36 |
++ b/variable.h |
Lines 115-121
Link Here
|
115 |
extern char *variable_buffer; |
115 |
extern char *variable_buffer; |
116 |
extern struct variable_set_list *current_variable_set_list; |
116 |
extern struct variable_set_list *current_variable_set_list; |
117 |
extern struct variable *default_goal_var; |
117 |
extern struct variable *default_goal_var; |
118 |
extern struct variable shell_var; |
|
|
119 |
|
118 |
|
120 |
/* expand.c */ |
119 |
/* expand.c */ |
121 |
char *variable_buffer_output (char *ptr, const char *string, unsigned int length); |
120 |
char *variable_buffer_output (char *ptr, const char *string, unsigned int length); |
122 |
-- a/debugger/file2line.h |
121 |
++ b/debugger/file2line.h |
Lines 19-25
Link Here
|
19 |
Boston, MA 02111-1307, USA. */ |
19 |
Boston, MA 02111-1307, USA. */ |
20 |
#ifndef REMAKE_FILE2LINE |
20 |
#ifndef REMAKE_FILE2LINE |
21 |
#define REMAKE_FILE2LINE |
21 |
#define REMAKE_FILE2LINE |
22 |
struct hash_table file2lines; |
22 |
extern struct hash_table file2lines; |
23 |
|
23 |
|
24 |
typedef enum { |
24 |
typedef enum { |
25 |
F2L_TARGET, |
25 |
F2L_TARGET, |
26 |
-- a/debugger/file2line.c |
26 |
++ b/debugger/file2line.c |
Lines 26-31
Link Here
|
26 |
#include "../rule.h" |
26 |
#include "../rule.h" |
27 |
#include "./file2line.h" |
27 |
#include "./file2line.h" |
28 |
|
28 |
|
|
|
29 |
struct hash_table file2lines; |
30 |
|
29 |
unsigned long |
31 |
unsigned long |
30 |
file2lines_hash_1 (const void *key) |
32 |
file2lines_hash_1 (const void *key) |
31 |
{ |
33 |
{ |