|
From: | David Mertens |
Subject: | Re: [Tinycc-devel] TinyCC REPL |
Date: | Mon, 18 May 2015 06:33:54 -0400 |
Hello all
A some question:
========
* push a given symbol on the symbol stack */
ST_FUNC Sym *sym_push(int v, CType *type, int r, int c)
{
Sym *s, **ps;
TokenSym *ts;
#ifdef CONFIG_TCC_EXSYMTAB
v &= ~SYM_EXTENDED;
#endif
if (local_stack)
ps = &local_stack;
else {
#ifdef CONFIG_TCC_EXSYMTAB
/* Global symbol stack. This is OK for the local symbol stack,
but don't allow
* this for symbols that are in the extended symbol stack. */
if (v >= SYM_EXTENDED) {
tcc_error("Cannot use name '%s' as a global variable, it
is already in the "
"extended symbol table.", get_tok_str(v, 0));
}
#endif
ps = &global_stack;
}
========
v is integer and SYM_EXTENDED=0x40000000
When (v >= SYM_EXTENDED) can be true ?
_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
[Prev in Thread] | Current Thread | [Next in Thread] |