diff options
| author | jiang <30155751@qq.com> | 2014-04-28 12:53:18 +0800 |
|---|---|---|
| committer | jiang <30155751@qq.com> | 2014-04-28 12:53:18 +0800 |
| commit | deaee6c2496ecb25858290405fef8ef79aece979 (patch) | |
| tree | 0deefcdaae79b1b3a85b149ca79818fe3b28d223 | |
| parent | 857f7dbfa65179e6690dbee7ab915fb4458cee11 (diff) | |
| download | tinycc-deaee6c2496ecb25858290405fef8ef79aece979.tar.gz tinycc-deaee6c2496ecb25858290405fef8ef79aece979.tar.bz2 | |
fix tccpp.c
| -rw-r--r-- | tccpp.c | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -58,7 +58,6 @@ static const int *unget_saved_macro_ptr; static int unget_saved_buffer[TOK_MAX_SIZE + 1]; static int unget_buffer_enabled; static TokenSym *hash_ident[TOK_HASH_SIZE]; -static char token_buf[STRING_MAX_SIZE + 1]; /* true if isid(c) || isnum(c) */ static unsigned char isidnum_table[256-CH_EOF]; @@ -1790,29 +1789,6 @@ static void parse_escape_string(CString *outstr, const uint8_t *buf, int is_long cstr_wccat(outstr, '\0'); } -/* we use 64 bit numbers */ -#define BN_SIZE 2 - -/* bn = (bn << shift) | or_val */ -static void bn_lshift(unsigned int *bn, int shift, int or_val) -{ - int i; - unsigned int v; - for(i=0;i<BN_SIZE;i++) { - v = bn[i]; - bn[i] = (v << shift) | or_val; - or_val = v >> (32 - shift); - } -} - -static void bn_zero(unsigned int *bn) -{ - int i; - for(i=0;i<BN_SIZE;i++) { - bn[i] = 0; - } -} - /* parse number in null terminated string 'p' and return it in the current token */ static void parse_number(const char *p) |
