--- stardict/tools/src/tabfile.cpp +++ stardict/tools/src/tabfile.cpp @@ -24,11 +24,13 @@ int main(int argc,char * argv []) { if (argc<2) { printf("please type this:\n./tabfile Chinese-idiom-quick.pdb.tab.utf8\n"); - return FALSE; + return 1; } setlocale(LC_ALL, ""); + int res = 0; for (int i=1; i< argc; i++) - convert_tabfile (argv[i]); - return FALSE; + if (!convert_tabfile (argv[i])) + res = 1; + return res; }