示例#1
0
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));
}
示例#2
0
文件: symbol.c 项目: rems4e/Compiler
void cleanSymbols() {
	resetSymbolTable();

	for(int i = 0; i < GLOBAL_COUNT; ++i) {
		if(!isTemp(&symbolTable.globals[i])) {
			free(symbolTable.globals[i].name);
		}
	}

	free(tempSymbol);
	freeFunctionTable();
}
示例#3
0
文件: symbol.c 项目: rems4e/Compiler
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()));
}
示例#5
0
文件: r1c.c 项目: ShaneRyanKelly/r1d
//-----------------------------------------
void freeTemp(int opndIndex)
{
   if (isTemp(opndIndex))
      tempIndex--;
}
示例#6
0
static BAT *
full_column(sql_column *c, BAT *d, BAT *s )
{
	return delta_full_bat(c, c->data, isTemp(c), d, s);
}