@@ -28,7 +28,6 @@ int main(int argc, char *argv[]) {
if (args.run_commandLine)
runCodeStdin(inter, HelloString); // 从stdin中运行代码
freeInter(inter, true);
-
- system("pause"); // 按任意键继续...
+ fgetwc(stdin); // 按任意键继续...
return 0;
}
@@ -50,7 +50,7 @@ char *splitDir(char * dir){
char *findPath(char **path, char *env, bool need_free) { // env 必须以 SEP 结尾
#ifdef __linux
- if (**path == SEP_CH) {
+ if (**path != SEP_CH) {
#else
if (!(isupper(**path) && (*path)[1] == ':')) {
#endif