diff options
| author | Paul Buetow <paul@buetow.org> | 2008-10-14 22:05:16 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-10-14 22:05:16 +0000 |
| commit | a35ace22b374005c65bda8302761d24f75280170 (patch) | |
| tree | 87cdb9344b9c28fb6dd46cf7ea9d18325e18ec32 /src/core/scope.c | |
| parent | c25ba0d8ee9e4e6a0432fba2e8606c7e0a35d1cd (diff) | |
run astyle
still lots of debugging to do.
Diffstat (limited to 'src/core/scope.c')
| -rw-r--r-- | src/core/scope.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/core/scope.c b/src/core/scope.c index 1eaac8f..ecf5933 100644 --- a/src/core/scope.c +++ b/src/core/scope.c @@ -61,41 +61,41 @@ scope_delete(Scope *p_scope) { void scope_up(Scope *p_scope) { -#ifdef EXTRA_CHECKS +#ifdef EXTRA_CHECKS int i_before = (int) stack_size(p_scope->p_stack_scopes); #elif DEBUG_SCOPE_UPDOWN int i_before = (int) stack_size(p_scope->p_stack_scopes); #endif stack_push(p_scope->p_stack_scopes, hash_new(24)); #ifdef DEBUG_SCOPE_UPDOWN - printf("SCOPE UPPED %d => %d\n", - i_before, - (int) stack_size(p_scope->p_stack_scopes)); + printf("SCOPE UPPED %d => %d\n", + i_before, + (int) stack_size(p_scope->p_stack_scopes)); #endif /* DEBUG_SCOPE_UPDOWN */ #ifdef EXTRA_CHECKS if (i_before >= (int) stack_size(p_scope->p_stack_scopes)) - _SCOPE_ERROR("Scope should be higher"); + _SCOPE_ERROR("Scope should be higher"); #endif /* EXTRA_CHECKS */ } void scope_down(Scope *p_scope) { -#ifdef EXTRA_CHECKS +#ifdef EXTRA_CHECKS int i_before = (int) stack_size(p_scope->p_stack_scopes); #elif DEBUG_SCOPE_UPDOWN int i_before = (int) stack_size(p_scope->p_stack_scopes); -#endif +#endif Hash *p_hash_syms = stack_pop(p_scope->p_stack_scopes); hash_iterate(p_hash_syms, symbol_cleanup_hash_syms_cb); hash_delete(p_hash_syms); #ifdef DEBUG_SCOPE_UPDOWN - printf("SCOPE DOWNED %d => %d\n", - i_before, - (int) stack_size(p_scope->p_stack_scopes)); + printf("SCOPE DOWNED %d => %d\n", + i_before, + (int) stack_size(p_scope->p_stack_scopes)); #endif /* DEBUG_SCOPE_UPDOWN */ #ifdef EXTRA_CHECKS if (i_before <= (int) stack_size(p_scope->p_stack_scopes)) - _SCOPE_ERROR("Scope should be lower"); + _SCOPE_ERROR("Scope should be lower"); #endif /* EXTRA_CHECKS */ } |
