Explorar o código

typo: 修复拼写错误

printGCByCode -> printGCByCore
SongZihuan %!s(int64=3) %!d(string=hai) anos
pai
achega
e2ec17a5c2
Modificáronse 3 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      src/core/__gc.h
  2. 1 1
      src/core/env.c
  3. 1 1
      src/core/gc.c

+ 1 - 1
src/core/__gc.h

@@ -120,7 +120,7 @@ AFUN_CORE_NO_EXPORT pgc_DestructList checkAllDestruct(af_Environment *env, pgc_D
 AFUN_CORE_NO_EXPORT void gc_freeAllValue(af_Environment *env);
 
 /* gc 信息函数 */
-AFUN_CORE_NO_EXPORT void printGCByCode(af_Core *core);
+AFUN_CORE_NO_EXPORT void printGCByCore(af_Core *core);
 
 /* gc_DestructList 释放函数*/
 AFUN_CORE_NO_EXPORT void freeAllDestructList(gc_DestructList *dl);

+ 1 - 1
src/core/env.c

@@ -95,7 +95,7 @@ static af_Core *makeCore(enum GcRunTime grt, af_Environment *env) {
  * 因为gc_freeAllValue需要env作为参数, 故使用env作为freeCore的参数
  */
 static void freeCore(af_Environment *env) {
-    printGCByCode(env->core);
+    printGCByCore(env->core);
     gc_freeAllValue(env);
     freeAllLiteralRegex(env->core->lr);
     free(env->core);

+ 1 - 1
src/core/gc.c

@@ -413,7 +413,7 @@ void gc_freeAllValue(af_Environment *env) {
     }
 }
 
-void printGCByCode(af_Core *core) {
+void printGCByCore(af_Core *core) {
     bool success = true;
     for (af_ObjectData *od = core->gc_ObjectData; od != NULL; od = od->gc.next) {
         if (od->gc.info.reference != 0) {