@@ -111,8 +111,8 @@ private sub hProcFlush _
111111 byval doemit as integer _
112112 )
113113
114- dim as ASTNODE ptr n = any, nxt = any
115- dim as FBSYMBOL ptr sym = any
114+ dim as ASTNODE ptr n = any, nxt = any
115+ dim as FBSYMBOL ptr sym = any
116116
117117 sym = p->sym
118118
@@ -153,19 +153,19 @@ private sub hProcFlush _
153153 n = nxt
154154 loop
155155
156- '' emit footer
157- if ( ast.doemit ) then
158- irEmitPROCEND( sym, p->block.initlabel, p->block.exitlabel )
156+ '' emit footer
157+ if ( ast.doemit ) then
158+ irEmitPROCEND( sym, p->block.initlabel, p->block.exitlabel )
159159
160160 '' Emit static local variables
161161 irProcAllocStaticVars( symbGetProcSymbTbHead( sym ) )
162- end if
162+ end if
163163
164- '' del symbols from hash and symbol tb's
165- symbDelSymbolTb( @sym->proc.symtb, FALSE )
164+ '' del symbols from hash and symbol tb's
165+ symbDelSymbolTb( @sym->proc.symtb, FALSE )
166166
167- ''
168- symbNestEnd( FALSE )
167+ ''
168+ symbNestEnd( FALSE )
169169
170170 hDelProcNode( p )
171171
@@ -179,9 +179,9 @@ private sub hProcFlushAll _
179179 _
180180 )
181181
182- dim as ASTNODE ptr n = any
183- dim as integer doemit = any
184- dim as FBSYMBOL ptr sym = any
182+ dim as ASTNODE ptr n = any
183+ dim as integer doemit = any
184+ dim as FBSYMBOL ptr sym = any
185185
186186 '' procs should be sorted by include file
187187
@@ -634,9 +634,9 @@ private function hCallProfiler _
634634end function
635635
636636function astProcEnd( byval callrtexit as integer ) as integer
637- static as integer rec_cnt = 0
637+ static as integer rec_cnt = 0
638638 dim as integer res = any, do_flush = any, enable_implicit_code = any
639- dim as FBSYMBOL ptr sym = any
639+ dim as FBSYMBOL ptr sym = any
640640 dim as ASTNODE ptr n = any
641641
642642 n = ast.proc.curr
@@ -770,7 +770,7 @@ function astProcEnd( byval callrtexit as integer ) as integer
770770
771771 ''
772772 if ( do_flush ) then
773- if ( n->block.proc.ismain = FALSE ) then
773+ if ( n->block.proc.ismain = FALSE ) then
774774 hProcFlush( n, TRUE )
775775 else
776776 hProcFlushAll( )
@@ -781,20 +781,20 @@ function astProcEnd( byval callrtexit as integer ) as integer
781781 ast.proc.curr = ast.proc.head
782782 ast.currblock = ast.proc.head
783783
784- parser.scope = FB_MAINSCOPE
785- parser.currproc = env.main.proc
786- parser.currblock = env.main.proc
784+ parser.scope = FB_MAINSCOPE
785+ parser.currproc = env.main.proc
786+ parser.currblock = env.main.proc
787787
788- ''
789- rec_cnt -= 1
788+ ''
789+ rec_cnt -= 1
790790
791791 function = res
792792
793793end function
794794
795795private function hDeclVarsForProcParams( byval proc as FBSYMBOL ptr ) as integer
796- dim as integer i = any
797- dim as FBSYMBOL ptr p = any
796+ dim as integer i = any
797+ dim as FBSYMBOL ptr p = any
798798
799799 function = FALSE
800800
@@ -825,8 +825,8 @@ private function hDeclVarsForProcParams( byval proc as FBSYMBOL ptr ) as integer
825825end function
826826
827827private sub hLoadProcResult( byval proc as FBSYMBOL ptr )
828- dim as FBSYMBOL ptr s = any
829- dim as ASTNODE ptr n = any
828+ dim as FBSYMBOL ptr s = any
829+ dim as ASTNODE ptr n = any
830830
831831 s = symbGetProcResult( proc )
832832
@@ -851,7 +851,7 @@ private sub hLoadProcResult( byval proc as FBSYMBOL ptr )
851851end sub
852852
853853private function hModLevelIsEmpty( byval p as ASTNODE ptr ) as integer
854- dim as ASTNODE ptr n = any, nxt = any
854+ dim as ASTNODE ptr n = any, nxt = any
855855
856856 '' an empty module-level proc will have just the
857857 '' initial and final labels as nodes and nothing else
@@ -1351,7 +1351,7 @@ private sub hCallDtors( byval proc as FBSYMBOL ptr )
13511351 parent = symbGetNamespace( proc )
13521352
13531353 '' 1st) fields dtors
1354- hCallFieldDtors( parent, proc )
1354+ hCallFieldDtors( parent, proc )
13551355
13561356 '' 2nd) base dtor
13571357 hCallBaseDtor( parent, proc )
@@ -1396,9 +1396,9 @@ private sub hGenStaticInstancesDtors( byval proc as FBSYMBOL ptr )
13961396 exit sub
13971397 end if
13981398
1399- '' for each node..
1400- wrap = listGetHead( dtorlist )
1401- do while ( wrap <> NULL )
1399+ '' for each node..
1400+ wrap = listGetHead( dtorlist )
1401+ do while ( wrap <> NULL )
14021402 astProcBegin( wrap->proc, FALSE )
14031403 n = ast.proc.curr
14041404
@@ -1412,13 +1412,13 @@ private sub hGenStaticInstancesDtors( byval proc as FBSYMBOL ptr )
14121412 '' proc is flushed
14131413 hProcFlush( n, TRUE )
14141414
1415- wrap = listGetNext( wrap )
1416- loop
1415+ wrap = listGetNext( wrap )
1416+ loop
14171417
1418- '' destroy list
1419- listEnd( dtorlist )
1420- deallocate( proc->proc.ext->statdtor )
1421- proc->proc.ext->statdtor = NULL
1418+ '' destroy list
1419+ listEnd( dtorlist )
1420+ deallocate( proc->proc.ext->statdtor )
1421+ proc->proc.ext->statdtor = NULL
14221422end sub
14231423
14241424'':::::
@@ -1443,16 +1443,16 @@ function astProcAddStaticInstance _
14431443 listInit( dtorlist, 16 , len( FB_DTORWRAPPER ), LIST_FLAGS_NOCLEAR )
14441444 end if
14451445
1446- ''
1447- wrap = listNewNode( dtorlist )
1446+ ''
1447+ wrap = listNewNode( dtorlist )
14481448
14491449 proc = symbAddProc( symbPreAddProc( NULL ), symbUniqueLabel( ), NULL, FB_DATATYPE_VOID, NULL, _
14501450 FB_SYMBATTRIB_PRIVATE, FB_PROCATTRIB_NONE, FB_FUNCMODE_CDECL, FB_SYMBOPT_DECLARING )
14511451
1452- wrap->proc = proc
1453- wrap->sym = sym
1452+ wrap->proc = proc
1453+ wrap->sym = sym
14541454
1455- '' can't be undefined
1455+ '' can't be undefined
14561456 symbSetCantUndef( sym )
14571457
14581458 function = proc
@@ -1467,16 +1467,16 @@ sub astProcAddGlobalInstance _
14671467 byval call_dtor as integer _
14681468 )
14691469
1470- dim as FB_GLOBINSTANCE ptr wrap = any
1470+ dim as FB_GLOBINSTANCE ptr wrap = any
14711471
1472- ''
1473- wrap = listNewNode( @ast.globinst.list )
1472+ ''
1473+ wrap = listNewNode( @ast.globinst.list )
14741474
1475- wrap->sym = sym
1476- wrap->initree = initree
1475+ wrap->sym = sym
1476+ wrap->initree = initree
14771477 wrap->call_dtor = call_dtor
14781478
1479- '' can't be undefined
1479+ '' can't be undefined
14801480 symbSetCantUndef( sym )
14811481
14821482 if ( initree <> NULL ) then
@@ -1554,5 +1554,5 @@ private sub hGenGlobalInstancesCtor( )
15541554 astProcEnd( FALSE )
15551555 end if
15561556
1557- '' list will be deleted by astProcListEnd( )
1557+ '' list will be deleted by astProcListEnd( )
15581558end sub
0 commit comments