예제 #1
0
static void initKeywordsTable(void) {
    int i;
    char **table = g_tlang.keywordsTable;
    keywordsTable = createHTable(512, (pHashFunc)stringiHashFunc, (pHashElemCmp)stricmp);
    for (i = 0; table[i] != NULL; i++) {
        addHTableElem(keywordsTable, table[i]);
    }
}
예제 #2
0
char* initTokenizer(char *fname)
{
    char *retName;
    currLineIsInclude = 0;
    orderLineNum = 1;
    currTokF = -1;
    g_fileTable = createHTable(32,  FDReadIndHashFunc, FDReadIndCmpFunc);
    retName = pushTokFile(fname);
    if (retName == NULL) {
        wicExit(-1);
        return  NULL; // avoid warning
    }
    return retName;
}