tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] TinyCC REPL


From: Sergey Korshunoff
Subject: Re: [Tinycc-devel] TinyCC REPL
Date: Mon, 18 May 2015 13:21:17 +0300

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 ?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]