aboutsummaryrefslogtreecommitdiff
path: root/tccpp.c
diff options
context:
space:
mode:
authorgrischka <grischka>2009-05-11 18:45:56 +0200
committergrischka <grischka>2009-05-11 18:45:56 +0200
commit0a35f9d66e15e7daadc329e7fc34b2fe5a8cbce1 (patch)
treefbf633decbb5cf0ddd23dfcfeff523fa63d588b2 /tccpp.c
parentf9181416f604c1c0715fc538316948a9f957a3c3 (diff)
downloadtinycc-0a35f9d66e15e7daadc329e7fc34b2fe5a8cbce1.tar.gz
tinycc-0a35f9d66e15e7daadc329e7fc34b2fe5a8cbce1.tar.bz2
move static prototypes to libtcc.c
Diffstat (limited to 'tccpp.c')
-rw-r--r--tccpp.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/tccpp.c b/tccpp.c
index b327a64..d00897c 100644
--- a/tccpp.c
+++ b/tccpp.c
@@ -32,6 +32,17 @@ static char tok_two_chars[] = "<=\236>=\235!=\225&&\240||\241++\244--\242==\224<
static unsigned char isidnum_table[256-CH_EOF];
+struct macro_level {
+ struct macro_level *prev;
+ int *p;
+};
+
+static void next_nomacro(void);
+static void next_nomacro_spc(void);
+static void macro_subst(TokenString *tok_str, Sym **nested_list,
+ const int *macro_str, struct macro_level **can_read_stream);
+
+
/* allocate a new token */
static TokenSym *tok_alloc_new(TokenSym **pts, const char *str, int len)
{
@@ -439,12 +450,6 @@ static uint8_t *parse_comment(uint8_t *p)
#define cinp minp
-/* space exlcuding newline */
-LIBTCCAPI static inline int is_space(int ch)
-{
- return ch == ' ' || ch == '\t' || ch == '\v' || ch == '\f' || ch == '\r';
-}
-
static inline void skip_spaces(void)
{
while (is_space(ch))