Explorar o código

typo: 拼写错误

Enviroment -> Environment
SongZihuan %!s(int64=3) %!d(string=hai) anos
pai
achega
ca0a77f7a2
Modificáronse 4 ficheiros con 5 adicións e 5 borrados
  1. 1 1
      include/runtime/aFunlang.h
  2. 2 2
      src/main.c
  3. 1 1
      src/runtime/aFunlang.c
  4. 1 1
      test/src/run_code.c

+ 1 - 1
include/runtime/aFunlang.h

@@ -7,7 +7,7 @@
 
 AFUN_LANG_EXPORT bool aFunInit(char *log_dir, LogFactoryPrintConsole print_console, jmp_buf *buf, LogLevel level);
 
-AFUN_LANG_EXPORT af_Environment *creatAFunEnviroment(int argc, char **argv);
+AFUN_LANG_EXPORT af_Environment *creatAFunEnvironment(int argc, char **argv);
 AFUN_LANG_EXPORT void destructAFunEnvironment(af_Environment *env);
 
 /* 源文件运行 */

+ 2 - 2
src/main.c

@@ -164,7 +164,7 @@ static int mainRun(ff_FFlags *ff) {
         return 1;
     }
 
-    af_Environment *env = creatAFunEnviroment(argc - 1, argv + 1);
+    af_Environment *env = creatAFunEnvironment(argc - 1, argv + 1);
     exit_code = runCodeFromFile(argv[0], true, 0, env);
     destructAFunEnvironment(env);
     return exit_code;
@@ -244,7 +244,7 @@ static int mainCL(ff_FFlags *ff) {
     for (int i = 0; ff_getopt_wild_after(&text, ff); i++)
         argv[i] = text;
 
-    af_Environment *env = creatAFunEnviroment(argc, argv);
+    af_Environment *env = creatAFunEnvironment(argc, argv);
     if (rl != NULL)
         exit_code = runCodeFromRunList(rl, NULL, save_aub, env);
 

+ 1 - 1
src/runtime/aFunlang.c

@@ -15,7 +15,7 @@ bool aFunInit(char *log_dir, LogFactoryPrintConsole print_console, jmp_buf *buf,
     return aFunInit_mark;
 }
 
-af_Environment *creatAFunEnviroment(int argc, char **argv){
+af_Environment *creatAFunEnvironment(int argc, char **argv){
     if (!aFunInit_mark)
         return NULL;
 

+ 1 - 1
test/src/run_code.c

@@ -380,7 +380,7 @@ int main(int argc, char **argv) {
     if (!re)
         exit(EXIT_FAILURE);
 
-    af_Environment *env = creatAFunEnviroment(0, NULL);
+    af_Environment *env = creatAFunEnvironment(0, NULL);
     if(!pushLiteralRegex("data.*", "func", true, env)) {
         fprintf(stderr, "pushLiteralRegex Error\n");
         goto RETURN_1;