static BAT * full_column(sql_trans *tr, sql_column *c) { if (!c->data) { sql_column *oc = tr_find_column(tr->parent, c); c->data = timestamp_delta(oc->data, tr->stime); } return delta_full_bat(c, c->data, isTemp(c)); }
void cleanSymbols() { resetSymbolTable(); for(int i = 0; i < GLOBAL_COUNT; ++i) { if(!isTemp(&symbolTable.globals[i])) { free(symbolTable.globals[i].name); } } free(tempSymbol); freeFunctionTable(); }
void resetSymbolTable() { symbolTable.stackSize = 0; for(int i = 0; i < SYM_COUNT; ++i) { symbolTable.symbols[i].initialized = false; if(!isTemp(&symbolTable.symbols[i])) { free(symbolTable.symbols[i].name); } symbolTable.symbols[i].name = NULL; symbolTable.symbols[i].address = i + ADDRESS_SHIFT; symbolTable.symbols[i].type.constMask = 0; symbolTable.symbols[i].type.indirectionCount = 0; symbolTable.symbols[i].type.baseType = BT_INT; symbolTable.symbolsStack[i] = NULL; } for(int i = 1; i < symbolTable.nestingLevel; ++i) { for(int j = 0; j < SYM_COUNT; ++j) { symbolTable.nestedSymbols[i][j] = NULL; } } symbolTable.nestingLevel = 0; }
bool AstVar::isSigPublic() const { return (m_sigPublic || (v3Global.opt.allPublic() && !isTemp() && !isGenVar())); }
//----------------------------------------- void freeTemp(int opndIndex) { if (isTemp(opndIndex)) tempIndex--; }
static BAT * full_column(sql_column *c, BAT *d, BAT *s ) { return delta_full_bat(c, c->data, isTemp(c), d, s); }