(file) Return to state.h CVS log (file) (dir) Up to [OMI] / omi / wql

 1 mike  1.1 /*
 2           **==============================================================================
 3           **
 4           ** Open Management Infrastructure (OMI)
 5           **
 6           ** Copyright (c) Microsoft Corporation
 7           ** 
 8           ** Licensed under the Apache License, Version 2.0 (the "License"); you may not 
 9           ** use this file except in compliance with the License. You may obtain a copy 
10           ** of the License at 
11           **
12           **     http://www.apache.org/licenses/LICENSE-2.0 
13           **
14           ** THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15           ** KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 
16           ** WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 
17           ** MERCHANTABLITY OR NON-INFRINGEMENT. 
18           **
19           ** See the Apache 2 License for the specific language governing permissions 
20           ** and limitations under the License.
21           **
22 mike  1.1 **==============================================================================
23           */
24           
25           #ifndef _wql_state_h
26           #define _wql_state_h
27           
28           #include "wql.h"
29           
30           /* Global parser state */
31           typedef struct _WQL_State
32           {
33               /* The input buffer */
34               const MI_Char* text;
35               int size;
36               int offset;
37           
38               /* Current lexer pointer within text */
39               const MI_Char* ptr;
40           
41               /* Error status (0=okay, -1=error) */
42               int status;
43 mike  1.1 
44               /* Parser output structure */
45               WQL* wql;
46           }
47           WQL_State;
48           
49           extern WQL_State wqlstate;
50           
51           #endif /* _wql_state_h */

ViewCVS 0.9.2