Deleted Added
full compact
dswscope.c (77424) dswscope.c (82367)
1/******************************************************************************
2 *
3 * Module Name: dswscope - Scope stack manipulation
1/******************************************************************************
2 *
3 * Module Name: dswscope - Scope stack manipulation
4 * $Revision: 45 $
4 * $Revision: 46 $
5 *
6 *****************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp.

--- 127 unchanged lines hidden (view full) ---

140 ***************************************************************************/
141
142void
143AcpiDsScopeStackClear (
144 ACPI_WALK_STATE *WalkState)
145{
146 ACPI_GENERIC_STATE *ScopeInfo;
147
5 *
6 *****************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp.

--- 127 unchanged lines hidden (view full) ---

140 ***************************************************************************/
141
142void
143AcpiDsScopeStackClear (
144 ACPI_WALK_STATE *WalkState)
145{
146 ACPI_GENERIC_STATE *ScopeInfo;
147
148 PROC_NAME ("AcpiDsScopeStackClear");
148
149
150
149 while (WalkState->ScopeInfo)
150 {
151 /* Pop a scope off the stack */
152
153 ScopeInfo = WalkState->ScopeInfo;
154 WalkState->ScopeInfo = ScopeInfo->Scope.Next;
155
151 while (WalkState->ScopeInfo)
152 {
153 /* Pop a scope off the stack */
154
155 ScopeInfo = WalkState->ScopeInfo;
156 WalkState->ScopeInfo = ScopeInfo->Scope.Next;
157
156 DEBUG_PRINT (TRACE_EXEC,
157 ("Popped object type %X\n", ScopeInfo->Common.Value));
158 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
159 "Popped object type %X\n", ScopeInfo->Common.Value));
158 AcpiUtDeleteGenericState (ScopeInfo);
159 }
160}
161
162
163/****************************************************************************
164 *
165 * FUNCTION: AcpiDsScopeStackPush

--- 86 unchanged lines hidden (view full) ---

252 */
253
254 ScopeInfo = AcpiUtPopGenericState (&WalkState->ScopeInfo);
255 if (!ScopeInfo)
256 {
257 return_ACPI_STATUS (AE_STACK_UNDERFLOW);
258 }
259
160 AcpiUtDeleteGenericState (ScopeInfo);
161 }
162}
163
164
165/****************************************************************************
166 *
167 * FUNCTION: AcpiDsScopeStackPush

--- 86 unchanged lines hidden (view full) ---

254 */
255
256 ScopeInfo = AcpiUtPopGenericState (&WalkState->ScopeInfo);
257 if (!ScopeInfo)
258 {
259 return_ACPI_STATUS (AE_STACK_UNDERFLOW);
260 }
261
260 DEBUG_PRINT (TRACE_EXEC,
261 ("Popped object type %X\n", ScopeInfo->Common.Value));
262 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
263 "Popped object type %X\n", ScopeInfo->Common.Value));
262
263 AcpiUtDeleteGenericState (ScopeInfo);
264
265 return_ACPI_STATUS (AE_OK);
266}
267
268
264
265 AcpiUtDeleteGenericState (ScopeInfo);
266
267 return_ACPI_STATUS (AE_OK);
268}
269
270