mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-17 05:20:08 +08:00
fix tccpp.c
This commit is contained in:
parent
857f7dbfa6
commit
deaee6c249
24
tccpp.c
24
tccpp.c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user