1 /******************************************************************************
3 * Module Name: asloptions - compiler command line processing
5 *****************************************************************************/
7 /******************************************************************************
11 * Some or all of this work - Copyright (c) 1999 - 2018, Intel Corp.
12 * All rights reserved.
16 * 2.1. This is your license from Intel Corp. under its intellectual property
17 * rights. You may have additional license terms from the party that provided
18 * you this software, covering your right to use that party's intellectual
21 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22 * copy of the source code appearing in this file ("Covered Code") an
23 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24 * base code distributed originally by Intel ("Original Intel Code") to copy,
25 * make derivatives, distribute, use and display any portion of the Covered
26 * Code in any form, with the right to sublicense such rights; and
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29 * license (with the right to sublicense), under only those claims of Intel
30 * patents that are infringed by the Original Intel Code, to make, use, sell,
31 * offer to sell, and import the Covered Code and derivative works thereof
32 * solely to the minimum extent necessary to exercise the above copyright
33 * license, and in no event shall the patent license extend to any additions
34 * to or modifications of the Original Intel Code. No other license or right
35 * is granted directly or by implication, estoppel or otherwise;
37 * The above copyright and patent license is granted only if the following
42 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43 * Redistribution of source code of any substantial portion of the Covered
44 * Code or modification with rights to further distribute source must include
45 * the above Copyright Notice, the above License, this list of Conditions,
46 * and the following Disclaimer and Export Compliance provision. In addition,
47 * Licensee must cause all Covered Code to which Licensee contributes to
48 * contain a file documenting the changes Licensee made to create that Covered
49 * Code and the date of any change. Licensee must include in that file the
50 * documentation of any changes made by any predecessor Licensee. Licensee
51 * must include a prominent statement that the modification is derived,
52 * directly or indirectly, from Original Intel Code.
54 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55 * Redistribution of source code of any substantial portion of the Covered
56 * Code or modification without rights to further distribute source must
57 * include the following Disclaimer and Export Compliance provision in the
58 * documentation and/or other materials provided with distribution. In
59 * addition, Licensee may not authorize further sublicense of source of any
60 * portion of the Covered Code, and must include terms to the effect that the
61 * license from Licensee to its licensee is limited to the intellectual
62 * property embodied in the software Licensee provides to its licensee, and
63 * not to intellectual property embodied in modifications its licensee may
66 * 3.3. Redistribution of Executable. Redistribution in executable form of any
67 * substantial portion of the Covered Code or modification must reproduce the
68 * above Copyright Notice, and the following Disclaimer and Export Compliance
69 * provision in the documentation and/or other materials provided with the
72 * 3.4. Intel retains all right, title, and interest in and to the Original
75 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76 * Intel shall be used in advertising or otherwise to promote the sale, use or
77 * other dealings in products derived from or relating to the Covered Code
78 * without prior written authorization from Intel.
80 * 4. Disclaimer and Export Compliance
82 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
86 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
87 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
90 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
96 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
99 * 4.3. Licensee shall not export, either directly or indirectly, any of this
100 * software or system incorporating such software without first obtaining any
101 * required license or other approval from the U. S. Department of Commerce or
102 * any other agency or department of the United States Government. In the
103 * event Licensee exports any such software from the United States or
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
106 * compliance with all laws, regulations, orders, or other restrictions of the
107 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108 * any of its subsidiaries will export/re-export any technical data, process,
109 * software, or service, directly or indirectly, to any country for which the
110 * United States government or any agency thereof requires an export license,
111 * other governmental approval, or letter of assurance, without first obtaining
112 * such license, approval or letter.
114 *****************************************************************************
116 * Alternatively, you may choose to be licensed under the terms of the
119 * Redistribution and use in source and binary forms, with or without
120 * modification, are permitted provided that the following conditions
122 * 1. Redistributions of source code must retain the above copyright
123 * notice, this list of conditions, and the following disclaimer,
124 * without modification.
125 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
126 * substantially similar to the "NO WARRANTY" disclaimer below
127 * ("Disclaimer") and any redistribution must be conditioned upon
128 * including a substantially similar Disclaimer requirement for further
129 * binary redistribution.
130 * 3. Neither the names of the above-listed copyright holders nor the names
131 * of any contributors may be used to endorse or promote products derived
132 * from this software without specific prior written permission.
134 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
135 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
136 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
137 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
138 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
139 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
140 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
141 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
142 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
143 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
144 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
146 * Alternatively, you may choose to be licensed under the terms of the
147 * GNU General Public License ("GPL") version 2 as published by the Free
148 * Software Foundation.
150 *****************************************************************************/
152 #include <contrib/dev/acpica/compiler/aslcompiler.h>
153 #include <contrib/dev/acpica/include/acapps.h>
154 #include <contrib/dev/acpica/include/acdisasm.h>
156 #define _COMPONENT ACPI_COMPILER
157 ACPI_MODULE_NAME ("asloption")
160 /* Local prototypes */
166 BOOLEAN IsResponseFile);
169 AslMergeOptionTokens (
178 #define ASL_TOKEN_SEPARATORS " \t\n"
179 #define ASL_SUPPORTED_OPTIONS "@:a:b|c|d^D:e:f^gh^i|I:l^m:no|p:P^q^r:s|t|T+G^v^w|x:z"
182 /*******************************************************************************
184 * FUNCTION: AslCommandLine
186 * PARAMETERS: argc/argv
188 * RETURN: Last argv index
190 * DESCRIPTION: Command line processing
192 ******************************************************************************/
199 int BadCommandLine = 0;
203 /* Minimum command line contains at least the command and an input file */
211 /* Process all command line options */
213 BadCommandLine = AslDoOptions (argc, argv, FALSE);
215 if (AslGbl_DoTemplates)
217 Status = DtCreateTemplates (argv);
218 if (ACPI_FAILURE (Status))
225 /* Next parameter must be the input filename */
227 if (!argv[AcpiGbl_Optind] &&
230 printf ("Missing input filename\n");
231 BadCommandLine = TRUE;
236 printf (ACPI_COMMON_SIGNON (ASL_COMPILER_NAME));
237 if (AslGbl_IgnoreErrors)
239 printf ("Ignoring all errors, forcing AML file generation\n\n");
245 printf ("Use -h option for help information\n");
249 return (AcpiGbl_Optind);
253 /*******************************************************************************
255 * FUNCTION: AslDoOptions
257 * PARAMETERS: argc/argv - Standard argc/argv
258 * IsResponseFile - TRUE if executing a response file.
262 * DESCRIPTION: Command line option processing
264 ******************************************************************************/
270 BOOLEAN IsResponseFile)
276 /* Get the command line options */
278 while ((j = AcpiGetopt (argc, argv, ASL_SUPPORTED_OPTIONS)) != ACPI_OPT_END) switch (j)
280 case '@': /* Begin a response file */
284 printf ("Nested command files are not supported\n");
288 if (AslDoResponseFile (AcpiGbl_Optarg))
294 case 'a': /* Debug options */
296 switch (AcpiGbl_Optarg[0])
300 AslGbl_EnableReferenceTypechecking = TRUE;
305 printf ("Unknown option: -a%s\n", AcpiGbl_Optarg);
312 case 'b': /* Debug options */
314 switch (AcpiGbl_Optarg[0])
319 printf ("Debug ASL to ASL+ conversion\n");
321 AslGbl_DoAslConversion = TRUE;
322 AslGbl_FoldConstants = FALSE;
323 AslGbl_IntegerOptimizationFlag = FALSE;
324 AslGbl_ReferenceOptimizationFlag = FALSE;
325 AslGbl_OptimizeTrivialParseNodes = FALSE;
326 AcpiGbl_CaptureComments = TRUE;
327 AcpiGbl_DoDisassemblerOptimizations = FALSE;
328 AcpiGbl_DebugAslConversion = TRUE;
329 AcpiGbl_DmEmitExternalOpcodes = TRUE;
330 AslGbl_DoExternalsInPlace = TRUE;
336 AslCompilerdebug = 1; /* same as yydebug */
339 AslGbl_DebugFlag = TRUE;
340 AslGbl_KeepPreprocessorTempFile = TRUE;
343 case 'p': /* Prune ASL parse tree */
345 /* Get the required argument */
347 if (AcpiGetoptArgument (argc, argv))
352 AslGbl_PruneParseTree = TRUE;
353 AslGbl_PruneDepth = (UINT8) strtoul (AcpiGbl_Optarg, NULL, 0);
358 AslGbl_DebugFlag = TRUE;
363 /* Get the required argument */
365 if (AcpiGetoptArgument (argc, argv))
370 AslGbl_PruneType = (UINT8) strtoul (AcpiGbl_Optarg, NULL, 0);
375 printf ("Unknown option: -b%s\n", AcpiGbl_Optarg);
383 switch (AcpiGbl_Optarg[0])
388 printf ("Convert ASL to ASL+ with comments\n");
389 AslGbl_DoAslConversion = TRUE;
390 AslGbl_FoldConstants = FALSE;
391 AslGbl_IntegerOptimizationFlag = FALSE;
392 AslGbl_ReferenceOptimizationFlag = FALSE;
393 AslGbl_OptimizeTrivialParseNodes = FALSE;
394 AcpiGbl_CaptureComments = TRUE;
395 AcpiGbl_DoDisassemblerOptimizations = FALSE;
396 AcpiGbl_DmEmitExternalOpcodes = TRUE;
397 AslGbl_DoExternalsInPlace = TRUE;
403 AslGbl_NoResourceChecking = TRUE;
408 printf ("Unknown option: -c%s\n", AcpiGbl_Optarg);
413 case 'd': /* Disassembler */
415 switch (AcpiGbl_Optarg[0])
419 AslGbl_DoCompile = FALSE;
424 AslGbl_DoCompile = FALSE;
425 AslGbl_DisassembleAll = TRUE;
428 case 'b': /* Do not convert buffers to resource descriptors */
430 AcpiGbl_NoResourceDisassembly = TRUE;
439 AcpiGbl_ForceAmlDisassembly = TRUE;
442 case 'l': /* Use legacy ASL code (not ASL+) for disassembly */
444 AslGbl_DoCompile = FALSE;
445 AcpiGbl_CstyleDisassembly = FALSE;
450 printf ("Unknown option: -d%s\n", AcpiGbl_Optarg);
454 AcpiGbl_DisasmFlag = TRUE;
457 case 'D': /* Define a symbol */
459 PrAddDefine (AcpiGbl_Optarg, NULL, TRUE);
462 case 'e': /* External files for disassembler */
464 /* Get entire list of external files */
467 argv[AcpiGbl_Optind] = AcpiGbl_Optarg;
469 while (argv[AcpiGbl_Optind] &&
470 (argv[AcpiGbl_Optind][0] != '-'))
472 Status = AcpiDmAddToExternalFileList (argv[AcpiGbl_Optind]);
473 if (ACPI_FAILURE (Status))
475 printf ("Could not add %s to external list\n",
476 argv[AcpiGbl_Optind]);
486 switch (AcpiGbl_Optarg[0])
488 case '^': /* Ignore errors and force creation of aml file */
490 AslGbl_IgnoreErrors = TRUE;
493 case 'e': /* Disassembler: Get external declaration file */
495 if (AcpiGetoptArgument (argc, argv))
500 AslGbl_ExternalRefFilename = AcpiGbl_Optarg;
505 printf ("Unknown option: -f%s\n", AcpiGbl_Optarg);
512 AslGbl_CompileGeneric = TRUE;
515 case 'g': /* Get all ACPI tables */
517 printf ("-g option is deprecated, use acpidump utility instead\n");
522 switch (AcpiGbl_Optarg[0])
531 UtDisplayConstantOpcodes ();
536 AslDisassemblyHelp ();
548 ApDisplayReservedNames ();
553 UtDisplaySupportedTables ();
558 printf ("Unknown option: -h%s\n", AcpiGbl_Optarg);
562 case 'I': /* Add an include file search directory */
564 FlAddIncludeDirectory (AcpiGbl_Optarg);
567 case 'i': /* Output AML as an include file */
569 switch (AcpiGbl_Optarg[0])
573 /* Produce assembly code include file */
575 AslGbl_AsmIncludeOutputFlag = TRUE;
580 /* Produce C include file */
582 AslGbl_C_IncludeOutputFlag = TRUE;
587 /* Compiler/Disassembler: Ignore the NOOP operator */
589 AcpiGbl_IgnoreNoopOperator = TRUE;
594 printf ("Unknown option: -i%s\n", AcpiGbl_Optarg);
599 case 'l': /* Listing files */
601 switch (AcpiGbl_Optarg[0])
605 /* Produce listing file (Mixed source/aml) */
607 AslGbl_ListingFlag = TRUE;
608 AcpiGbl_DmOpt_Listing = TRUE;
613 /* Produce preprocessor output file */
615 AslGbl_PreprocessorOutputFlag = TRUE;
620 /* Produce hardware map summary file */
622 AslGbl_MapfileFlag = TRUE;
627 /* Produce namespace file */
629 AslGbl_NsOutputFlag = TRUE;
634 /* Produce combined source file */
636 AslGbl_SourceOutputFlag = TRUE;
641 /* Produce cross-reference file */
643 AslGbl_CrossReferenceOutput = TRUE;
648 printf ("Unknown option: -l%s\n", AcpiGbl_Optarg);
653 case 'm': /* Set line buffer size */
655 AslGbl_LineBufferSize = (UINT32) strtoul (AcpiGbl_Optarg, NULL, 0) * 1024;
656 if (AslGbl_LineBufferSize < ASL_DEFAULT_LINE_BUFFER_SIZE)
658 AslGbl_LineBufferSize = ASL_DEFAULT_LINE_BUFFER_SIZE;
660 printf ("Line Buffer Size: %u\n", AslGbl_LineBufferSize);
663 case 'n': /* Parse only */
665 AslGbl_ParseOnlyFlag = TRUE;
668 case 'o': /* Control compiler AML optimizations */
670 switch (AcpiGbl_Optarg[0])
674 /* Disable all optimizations */
676 AslGbl_FoldConstants = FALSE;
677 AslGbl_IntegerOptimizationFlag = FALSE;
678 AslGbl_ReferenceOptimizationFlag = FALSE;
679 AslGbl_OptimizeTrivialParseNodes = FALSE;
685 /* Display compile time(s) */
687 AslGbl_CompileTimesFlag = TRUE;
692 /* Disable disassembler code optimizations */
694 AcpiGbl_DoDisassemblerOptimizations = FALSE;
699 /* Disassembler: Emit embedded external operators */
701 AcpiGbl_DmEmitExternalOpcodes = TRUE;
707 * iASL: keep External opcodes in place.
708 * No affect if Gbl_DoExternals is false.
711 AslGbl_DoExternalsInPlace = TRUE;
716 /* Disable folding on "normal" expressions */
718 AslGbl_FoldConstants = FALSE;
723 /* Disable integer optimization to constants */
725 AslGbl_IntegerOptimizationFlag = FALSE;
730 /* Disable named reference optimization */
732 AslGbl_ReferenceOptimizationFlag = FALSE;
737 /* Disable heavy typechecking */
739 AslGbl_DoTypechecking = FALSE;
744 printf ("Unknown option: -c%s\n", AcpiGbl_Optarg);
749 case 'P': /* Preprocessor options */
751 switch (AcpiGbl_Optarg[0])
753 case '^': /* Proprocess only, emit (.i) file */
755 AslGbl_PreprocessOnly = TRUE;
756 AslGbl_PreprocessorOutputFlag = TRUE;
759 case 'n': /* Disable preprocessor */
761 AslGbl_PreprocessFlag = FALSE;
766 printf ("Unknown option: -P%s\n", AcpiGbl_Optarg);
771 case 'p': /* Override default AML output filename */
773 AslGbl_OutputFilenamePrefix = AcpiGbl_Optarg;
774 UtConvertBackslashes (AslGbl_OutputFilenamePrefix);
775 AslGbl_UseDefaultAmlFilename = FALSE;
778 case 'q': /* ASL/ASl+ converter: compile only and leave badaml. */
780 printf ("Convert ASL to ASL+ with comments\n");
781 AslGbl_FoldConstants = FALSE;
782 AslGbl_IntegerOptimizationFlag = FALSE;
783 AslGbl_ReferenceOptimizationFlag = FALSE;
784 AslGbl_OptimizeTrivialParseNodes = FALSE;
785 AslGbl_DoExternalsInPlace = TRUE;
786 AcpiGbl_CaptureComments = TRUE;
789 case 'r': /* Override revision found in table header */
791 AslGbl_RevisionOverride = (UINT8) strtoul (AcpiGbl_Optarg, NULL, 0);
794 case 's': /* Create AML in a source code file */
796 switch (AcpiGbl_Optarg[0])
800 /* Produce assembly code output file */
802 AslGbl_AsmOutputFlag = TRUE;
807 /* Produce C hex output file */
809 AslGbl_C_OutputFlag = TRUE;
814 /* Produce AML offset table in C */
816 AslGbl_C_OffsetTableFlag = TRUE;
821 printf ("Unknown option: -s%s\n", AcpiGbl_Optarg);
826 case 't': /* Produce hex table output file */
828 switch (AcpiGbl_Optarg[0])
832 AslGbl_HexOutputFlag = HEX_OUTPUT_ASM;
837 AslGbl_HexOutputFlag = HEX_OUTPUT_C;
842 AslGbl_HexOutputFlag = HEX_OUTPUT_ASL;
847 printf ("Unknown option: -t%s\n", AcpiGbl_Optarg);
852 case 'T': /* Create a ACPI table template file */
854 AslGbl_DoTemplates = TRUE;
857 case 'v': /* Version and verbosity settings */
859 switch (AcpiGbl_Optarg[0])
863 printf (ACPI_COMMON_SIGNON (ASL_COMPILER_NAME));
868 /* Disable all error/warning/remark messages */
870 AslGbl_NoErrors = TRUE;
875 /* Disable all warning/remark messages (errors only) */
877 AslGbl_DisplayRemarks = FALSE;
878 AslGbl_DisplayWarnings = FALSE;
883 * Support for integrated development environment(s).
885 * 1) No compiler signon
886 * 2) Send stderr messages to stdout
887 * 3) Less verbose error messages (single line only for each)
888 * 4) Error/warning messages are formatted appropriately to
889 * be recognized by MS Visual Studio
891 AslGbl_VerboseErrors = FALSE;
892 AslGbl_DoSignon = FALSE;
893 AslGbl_Files[ASL_FILE_STDERR].Handle = stdout;
898 AslGbl_DisplayOptimizations = TRUE;
903 AslGbl_DisplayRemarks = FALSE;
908 AslGbl_DoSignon = FALSE;
913 AslGbl_VerboseTemplates = TRUE;
918 /* Get the required argument */
920 if (AcpiGetoptArgument (argc, argv))
925 Status = AslDisableException (AcpiGbl_Optarg);
926 if (ACPI_FAILURE (Status))
934 /* Get the required argument */
936 if (AcpiGetoptArgument (argc, argv))
941 Status = AslExpectException (AcpiGbl_Optarg);
942 if (ACPI_FAILURE (Status))
950 printf ("Unknown option: -v%s\n", AcpiGbl_Optarg);
955 case 'w': /* Set warning levels */
957 switch (AcpiGbl_Optarg[0])
961 AslGbl_WarningLevel = ASL_WARNING;
966 AslGbl_WarningLevel = ASL_WARNING2;
971 AslGbl_WarningLevel = ASL_WARNING3;
976 AslGbl_WarningsAsErrors = TRUE;
981 printf ("Unknown option: -w%s\n", AcpiGbl_Optarg);
986 case 'x': /* Set debug print output level */
988 AcpiDbgLevel = strtoul (AcpiGbl_Optarg, NULL, 16);
993 AslGbl_UseOriginalCompilerId = TRUE;
1005 /*******************************************************************************
1007 * FUNCTION: AslMergeOptionTokens
1009 * PARAMETERS: InBuffer - Input containing an option string
1010 * OutBuffer - Merged output buffer
1014 * DESCRIPTION: Remove all whitespace from an option string.
1016 ******************************************************************************/
1019 AslMergeOptionTokens (
1028 Token = strtok (InBuffer, ASL_TOKEN_SEPARATORS);
1031 strcat (OutBuffer, Token);
1032 Token = strtok (NULL, ASL_TOKEN_SEPARATORS);
1037 /*******************************************************************************
1039 * FUNCTION: AslDoResponseFile
1041 * PARAMETERS: Filename - Name of the response file
1045 * DESCRIPTION: Open a response file and process all options within.
1047 ******************************************************************************/
1053 char *argv = AslGbl_StringBuffer2;
1060 ResponseFile = fopen (Filename, "r");
1063 printf ("Could not open command file %s, %s\n",
1064 Filename, strerror (errno));
1068 /* Must save the current GetOpt globals */
1070 Opterr = AcpiGbl_Opterr;
1071 Optind = AcpiGbl_Optind;
1074 * Process all lines in the response file. There must be one complete
1077 while (fgets (AslGbl_StringBuffer, ASL_STRING_BUFFER_SIZE, ResponseFile))
1079 /* Compress all tokens, allowing us to use a single argv entry */
1081 AslMergeOptionTokens (AslGbl_StringBuffer, AslGbl_StringBuffer2);
1083 /* Process the option */
1088 OptStatus = AslDoOptions (1, &argv, TRUE);
1091 printf ("Invalid option in command file %s: %s\n",
1092 Filename, AslGbl_StringBuffer);
1097 /* Restore the GetOpt globals */
1099 AcpiGbl_Opterr = Opterr;
1100 AcpiGbl_Optind = Optind;
1102 fclose (ResponseFile);