]>
git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Sample/Tools/Source/ProcessDsc/DscFile.h
3 Copyright (c) 2004, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Defines and function prototypes for the ProcessDsc utility.
25 typedef struct _SECTION_LINE
{
26 struct _SECTION_LINE
*Next
;
33 // Use this structure to keep track of parsed file names. Then
34 // if we get a parse error we can figure out the file/line of
35 // the error and print a useful message.
37 typedef struct _DSC_FILE_NAME
{
38 struct _DSC_FILE_NAME
*Next
;
43 // We create a list of section names when we pre-parse a description file.
44 // Use this structure.
46 typedef struct _SECTION
{
47 struct _SECTION
*Next
;
49 SECTION_LINE
*FirstLine
;
55 SECTION_LINE
*SavedPosition
[MAX_SAVES
];
56 int SavedPositionIndex
;
60 SECTION_LINE
*LastLine
;
61 SECTION_LINE
*CurrentLine
;
62 DSC_FILE_NAME
*FileName
;
63 DSC_FILE_NAME
*LastFileName
;
67 // Function prototypes
87 DSCFileRestorePosition (
109 #endif // ifndef _DSC_FILE_H_