aboutsummaryrefslogtreecommitdiff
path: root/tccpp.c
diff options
context:
space:
mode:
authorgrischka <grischka>2009-05-11 18:45:44 +0200
committergrischka <grischka>2009-05-11 18:45:44 +0200
commitf9181416f604c1c0715fc538316948a9f957a3c3 (patch)
tree44b516fd9c79bd470322480540feda94acb2c6d9 /tccpp.c
parent5c6509578e78db8978b19ab81c4f26398f13c82d (diff)
downloadtinycc-f9181416f604c1c0715fc538316948a9f957a3c3.tar.gz
tinycc-f9181416f604c1c0715fc538316948a9f957a3c3.tar.bz2
move some global variables into TCCState
Diffstat (limited to 'tccpp.c')
-rw-r--r--tccpp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tccpp.c b/tccpp.c
index 0c14c24..b327a64 100644
--- a/tccpp.c
+++ b/tccpp.c
@@ -440,7 +440,7 @@ static uint8_t *parse_comment(uint8_t *p)
#define cinp minp
/* space exlcuding newline */
-static inline int is_space(int ch)
+LIBTCCAPI static inline int is_space(int ch)
{
return ch == ' ' || ch == '\t' || ch == '\v' || ch == '\f' || ch == '\r';
}
@@ -1336,7 +1336,7 @@ static void preprocess(int is_bof)
pstrcpy(f->inc_filename, sizeof(f->inc_filename), buf);
file = f;
/* add include file debug info */
- if (do_debug) {
+ if (tcc_state->do_debug) {
put_stabs(file->filename, N_BINCL, 0, 0, 0);
}
tok_flags |= TOK_FLAG_BOF | TOK_FLAG_BOL;
@@ -1946,7 +1946,7 @@ static inline void next_nomacro1(void)
}
/* add end of include file debug info */
- if (do_debug) {
+ if (tcc_state->do_debug) {
put_stabd(N_EINCL, 0, 0);
}
/* pop include stack */