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
|
27 mike 1.1 #if defined(_MSC_VER)
28
29 /* warning C4127: conditional expression is constant */
30 # pragma warning( disable : 4127 )
31
32 /* warning C4244: '=' : conversion from '?' to '?', possible loss of data */
33 # pragma warning( disable : 4244 )
34 # pragma warning( disable : 4242 )
35
36 /* warning C4102: 'yyerrlab' : unreferenced label */
37 # pragma warning( disable : 4102)
38
39 /* warning C4706: assignment within conditional expression */
40 # pragma warning( disable : 4706 )
41
42 /* Old-style declarator */
43 # pragma warning( disable : 4131)
44
45 /* PreFast - reviewed and believed to be false-positive*/
46
47 /* warning C6385: Invalid data: accessing '??', the readable size is 'x' bytes, but 'y' bytes might be read: Lines: ... */
48 mike 1.1 # pragma warning(disable : 6385)
49 # pragma warning(disable : 6011)
50
51 #ifdef _PREFAST_
52 #pragma prefast (disable: 26014)
53 #pragma prefast (disable: 26001)
54 #endif
55
56 #endif /* _MSC_VER */
57
58 #include "wqlyaccinc.c"
|
59 krisbash 1.3
60 void WQL_ResetParser()
61 {
62 yydebug = 0;
63 yynerrs = 0;
64 yyerrflag = 0;
65 yychar = 0;
66 yyssp = 0;
67 yyvsp = 0;
68
69 memset(&yyval, 0, sizeof(yyval));
70 memset(&yylval, 0, sizeof(yylval));
71
72 if (yyss)
73 {
74 PAL_Free(yyss);
75 yyss = 0;
76 }
77 yysslim = 0;
78
79 if (yyvs)
80 krisbash 1.3 {
81 PAL_Free(yyvs);
82 yyvs = 0;
83 }
84 yystacksize = 0;
85 }
86
|