From a298e2c3a7b98ad5ad60f8d92561fab862de182e Mon Sep 17 00:00:00 2001 From: aystarik Date: Wed, 29 Jun 2005 18:09:24 +0000 Subject: [PATCH] Moved prototypes for "static" functions from headers into the defining C module. date 2005.03.31.23.13.00; author rmoore1; state Exp; --- source/components/parser/psparse.c | 19 ++++++++++++++++++- source/components/parser/pstree.c | 25 +++++++++++++++---------- 2 files changed, 33 insertions(+), 11 deletions(-) diff --git a/source/components/parser/psparse.c b/source/components/parser/psparse.c index dfac60514..ada0f0031 100644 --- a/source/components/parser/psparse.c +++ b/source/components/parser/psparse.c @@ -1,7 +1,7 @@ /****************************************************************************** * * Module Name: psparse - Parser top level AML parse routines - * $Revision: 1.151 $ + * $Revision: 1.152 $ * *****************************************************************************/ @@ -137,6 +137,23 @@ static UINT32 AcpiGbl_Depth = 0; +/* Local prototypes */ + +static void +AcpiPsCompleteThisOp ( + ACPI_WALK_STATE *WalkState, + ACPI_PARSE_OBJECT *Op); + +static ACPI_STATUS +AcpiPsNextParseState ( + ACPI_WALK_STATE *WalkState, + ACPI_PARSE_OBJECT *Op, + ACPI_STATUS CallbackStatus); + +static ACPI_STATUS +AcpiPsParseLoop ( + ACPI_WALK_STATE *WalkState); + /******************************************************************************* * diff --git a/source/components/parser/pstree.c b/source/components/parser/pstree.c index a53f81621..36815b1e6 100644 --- a/source/components/parser/pstree.c +++ b/source/components/parser/pstree.c @@ -1,7 +1,7 @@ /****************************************************************************** * * Module Name: pstree - Parser op tree manipulation/traversal/search - * $Revision: 1.44 $ + * $Revision: 1.46 $ * *****************************************************************************/ @@ -124,6 +124,14 @@ #define _COMPONENT ACPI_PARSER ACPI_MODULE_NAME ("pstree") +/* Local prototypes */ + +#ifdef ACPI_OBSOLETE_FUNCTIONS +ACPI_PARSE_OBJECT * +AcpiPsGetChild ( + ACPI_PARSE_OBJECT *op); +#endif + /******************************************************************************* * @@ -132,7 +140,7 @@ * PARAMETERS: Op - Get an argument for this op * Argn - Nth argument to get * - * RETURN: The argument (as an Op object). NULL if argument does not exist + * RETURN: The argument (as an Op object). NULL if argument does not exist * * DESCRIPTION: Get the specified op's argument. * @@ -233,7 +241,6 @@ AcpiPsAppendArg ( return; } - /* Append the argument to the linked argument list */ if (Op->Common.Value.Arg) @@ -247,7 +254,6 @@ AcpiPsAppendArg ( } PrevArg->Common.Next = Arg; } - else { /* No argument list, this will be the first argument */ @@ -255,7 +261,6 @@ AcpiPsAppendArg ( Op->Common.Value.Arg = Arg; } - /* Set the parent in this arg and any args linked after it */ while (Arg) @@ -298,7 +303,7 @@ AcpiPsGetDepthNext ( return (NULL); } - /* look for an argument or child */ + /* Look for an argument or child */ Next = AcpiPsGetArg (Op, 0); if (Next) @@ -306,7 +311,7 @@ AcpiPsGetDepthNext ( return (Next); } - /* look for a sibling */ + /* Look for a sibling */ Next = Op->Common.Next; if (Next) @@ -314,7 +319,7 @@ AcpiPsGetDepthNext ( return (Next); } - /* look for a sibling of parent */ + /* Look for a sibling of parent */ Parent = Op->Common.Parent; @@ -328,14 +333,14 @@ AcpiPsGetDepthNext ( if (Arg == Origin) { - /* reached parent of origin, end search */ + /* Reached parent of origin, end search */ return (NULL); } if (Parent->Common.Next) { - /* found sibling of parent */ + /* Found sibling of parent */ return (Parent->Common.Next); }