Revisión | 407905e97006597bf63c9807f04c469ff9dd4d76 (tree) |
---|---|
Tiempo | 2019-03-18 20:41:45 |
Autor | dhrname <dhrname@user...> |
Commiter | dhrname |
Modify the ST_readFile function
@@ -1,4 +1,4 @@ | ||
1 | -CC = gcc | |
1 | +CC = clang | |
2 | 2 | DEBUGMODE = -Wall -std=c11 -O0 -g -pg |
3 | 3 | NODEBUGMODE = -Wall -std=c11 -O2 |
4 | 4 | SHELL = /bin/sh |
@@ -1431,7 +1431,7 @@ void ST_main(ST_Char* name, ST_Char* s, uint_fast64_t filelength) | ||
1431 | 1431 | |
1432 | 1432 | /*解放用のツリー*/ |
1433 | 1433 | ST_Node freetree = ST_createNode(ST_EMPTY_NODE); |
1434 | - ST_Node btr = ST_parse(freetree, tokens, sizeof(tokens) / sizeof(tokens[0]), varlist); | |
1434 | + ST_Node btr = ST_parse(freetree, tokens, filelength, varlist); | |
1435 | 1435 | free(tokens); |
1436 | 1436 | ST_Node evalresult = ST_eval(varlist, btr); |
1437 | 1437 |