@@ -1474,20 +1474,20 @@ proc registerModuleToMain(g: BModuleList; m: BModule) =
14741474 datInit = m.getDatInitName
14751475
14761476 if m.hcrOn:
1477- var hcr_module_meta = " $nN_LIB_PRIVATE const char* hcr_module_list[] = {$n" % []
1477+ var hcrModuleMeta = " $nN_LIB_PRIVATE const char* hcr_module_list[] = {$n" % []
14781478 let systemModulePath = getModuleDllPath (m, g.modules[g.graph.config.m.systemFileIdx.int ].module)
14791479 let mainModulePath = getModuleDllPath (m, m.module)
14801480 if sfMainModule in m.module.flags:
1481- addf (hcr_module_meta , " \t $1,$n" , [systemModulePath])
1481+ addf (hcrModuleMeta , " \t $1,$n" , [systemModulePath])
14821482 g.graph.importDeps.withValue (FileIndex (m.module.position), deps):
14831483 for curr in deps[]:
1484- addf (hcr_module_meta , " \t $1,$n" , [getModuleDllPath (m, g.modules[curr.int ].module)])
1485- addf (hcr_module_meta , " \t\"\" };$n" , [])
1486- addf (hcr_module_meta , " $nN_LIB_EXPORT N_NIMCALL(void**, HcrGetImportedModules)() { return (void**)hcr_module_list; }$n" , [])
1487- addf (hcr_module_meta , " $nN_LIB_EXPORT N_NIMCALL(char*, HcrGetSigHash)() { return \" $1\" ; }$n$n" ,
1484+ addf (hcrModuleMeta , " \t $1,$n" , [getModuleDllPath (m, g.modules[curr.int ].module)])
1485+ addf (hcrModuleMeta , " \t\"\" };$n" , [])
1486+ addf (hcrModuleMeta , " $nN_LIB_EXPORT N_NIMCALL(void**, HcrGetImportedModules)() { return (void**)hcr_module_list; }$n" , [])
1487+ addf (hcrModuleMeta , " $nN_LIB_EXPORT N_NIMCALL(char*, HcrGetSigHash)() { return \" $1\" ; }$n$n" ,
14881488 [($ sigHash (m.module)).rope])
14891489 if sfMainModule in m.module.flags:
1490- add (g.mainModProcs, hcr_module_meta )
1490+ add (g.mainModProcs, hcrModuleMeta )
14911491 addf (g.mainModProcs, " static void* hcr_handle;$N" , [])
14921492 addf (g.mainModProcs, " N_LIB_EXPORT N_NIMCALL(void, $1)(void);$N" , [init])
14931493 addf (g.mainModProcs, " N_LIB_EXPORT N_NIMCALL(void, $1)(void);$N" , [datInit])
@@ -1511,7 +1511,7 @@ proc registerModuleToMain(g: BModuleList; m: BModule) =
15111511 add (g.mainDatInit, " \t *cmd_count = cmdCount;\n " )
15121512 add (g.mainDatInit, " \t *cmd_line = cmdLine;\n " )
15131513 else :
1514- add (m.s[cfsInitProc], hcr_module_meta )
1514+ add (m.s[cfsInitProc], hcrModuleMeta )
15151515 return
15161516
15171517 if m.s[cfsDatInitProc].len > 0 :
@@ -1876,11 +1876,11 @@ proc myProcess(b: PPassContext, n: PNode): PNode =
18761876 m.initProc.options = initProcOptions (m)
18771877 # softRnl = if optLineDir in m.config.options: noRnl else: rnl
18781878 # XXX replicate this logic!
1879- let transformed_n = transformStmt (m.g.graph, m.module, n)
1879+ let transformedN = transformStmt (m.g.graph, m.module, n)
18801880 if m.hcrOn:
1881- addHcrInitGuards (m.initProc, transformed_n , m.inHcrInitGuard)
1881+ addHcrInitGuards (m.initProc, transformedN , m.inHcrInitGuard)
18821882 else :
1883- genStmts (m.initProc, transformed_n )
1883+ genStmts (m.initProc, transformedN )
18841884
18851885proc shouldRecompile (m: BModule ; code: Rope , cfile: Cfile ): bool =
18861886 result = true
@@ -2020,7 +2020,7 @@ proc myClose(graph: ModuleGraph; b: PPassContext, n: PNode): PNode =
20202020 let disp = generateMethodDispatchers (graph)
20212021 for x in disp: genProcAux (m, x.sym)
20222022
2023- m.g.modules_closed .add m
2023+ m.g.modulesClosed .add m
20242024
20252025proc genForwardedProcs (g: BModuleList ) =
20262026 # Forward declared proc:s lack bodies when first encountered, so they're given
0 commit comments