@@ -251,11 +251,13 @@ push_scope_level(int sptr, SCOPEKIND kind)
251251 scope -> Private = FALSE;
252252 scope -> sym = 0 ;
253253 scope -> uplevel_sptr = 0 ;
254+ #if DEBUG
254255 if (DBGBIT (5 , 0x200 )) {
255256 fprintf (gbl .dbgfil , "\n++++++++ push_scope_level(%s) pass=%d line=%d\n" ,
256257 kind_to_string (kind ), sem .which_pass , gbl .lineno );
257258 dumpscope (gbl .dbgfil );
258259 }
260+ #endif
259261}
260262
261263/** \brief Push an interface entry on the scope stack and mark it closed.
@@ -330,11 +332,13 @@ pop_scope_level(SCOPEKIND kind)
330332 stb .curr_scope = sem .scope_stack [1 ].sptr ;
331333 }
332334 }
335+ #if DEBUG
333336 if (DBGBIT (5 , 0x200 )) {
334337 fprintf (gbl .dbgfil , "\n-------- pop_scope_level(%s) pass=%d line=%d\n" ,
335338 kind_to_string (kind ), sem .which_pass , gbl .lineno );
336339 dumpscope (gbl .dbgfil );
337340 }
341+ #endif
338342}
339343
340344static SCOPESTACK saved_scope_stack [1 ];
@@ -352,11 +356,13 @@ save_scope_level(void)
352356 saved_scope_stack [count_scope_saved ++ ] = * curr_scope ();
353357 pop_scope ();
354358 stb .curr_scope = curr_scope ()-> sptr ;
359+ #if DEBUG
355360 if (DBGBIT (5 , 0x200 )) {
356361 fprintf (gbl .dbgfil , "\n-------- save_scope_level pass=%d line=%d\n" ,
357362 sem .which_pass , gbl .lineno );
358363 dumpscope (gbl .dbgfil );
359364 }
365+ #endif
360366}
361367
362368/** \brief Restore the scope that was saved by save_scope_level() */
@@ -369,11 +375,13 @@ restore_scope_level(void)
369375 }
370376 * push_scope () = saved_scope_stack [-- count_scope_saved ];
371377 stb .curr_scope = curr_scope ()-> sptr ;
378+ #if DEBUG
372379 if (DBGBIT (5 , 0x200 )) {
373380 fprintf (gbl .dbgfil , "\n++++++++ restore_scope_level pass=%d line=%d\n" ,
374381 sem .which_pass , gbl .lineno );
375382 dumpscope (gbl .dbgfil );
376383 }
384+ #endif
377385}
378386
379387void
@@ -405,7 +413,7 @@ par_push_scope(LOGICAL bind_to_outer)
405413 scope -> di_par = sem .doif_depth ;
406414 scope -> shared_list = NULL ;
407415 scope -> prev_sc = prev_sc ;
408- ( void ) enter_lexical_block (flg .debug && !XBIT (123 , 0x400 ));
416+ enter_lexical_block (flg .debug && !XBIT (123 , 0x400 ));
409417}
410418
411419void
@@ -452,7 +460,6 @@ pop_scope(void)
452460}
453461
454462#if DEBUG
455-
456463void
457464dumpscope (FILE * f )
458465{
0 commit comments