generate scope info for functions
This commit is contained in:
parent
131d4d9454
commit
093a970d7f
1 changed files with 5 additions and 0 deletions
|
@ -364,6 +364,11 @@ code_declaration(idf, expr, lvl, sc)
|
|||
return;
|
||||
if (sc == EXTERN && expr && !is_anon_idf(idf))
|
||||
error("%s is extern; cannot initialize", idf->id_text);
|
||||
#ifndef USE_TMP
|
||||
if (def->df_type->tp_fund == FUNCTION) {
|
||||
code_scope(idf->id_text, def);
|
||||
}
|
||||
#endif
|
||||
if (lvl == L_GLOBAL) { /* global variable */
|
||||
/* is this an allocating declaration? */
|
||||
if ( (sc == 0 || sc == STATIC)
|
||||
|
|
Loading…
Reference in a new issue