File tree 5 files changed +40
-0
lines changed 5 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
%{
6
6
7
+ #if defined _MSC_VER
8
+ // signed/unsigned mismatch
9
+ #pragma warning(disable:4365)
10
+ // macro re-definition: flex conditonally defines INT32_MAX et al. and thus
11
+ // they are set before library headers get to define them
12
+ #pragma warning(disable:4005)
13
+ #endif
14
+
7
15
/*
8
16
* This scanner is based on:
9
17
*
Original file line number Diff line number Diff line change 5
5
6
6
%{
7
7
8
+ #if defined _MSC_VER
9
+ // signed/unsigned mismatch
10
+ #pragma warning(disable:4365)
11
+ // macro re-definition: flex conditonally defines INT32_MAX et al. and thus
12
+ // they are set before library headers get to define them
13
+ #pragma warning(disable:4005)
14
+ #endif
15
+
8
16
#define PARSER assembler_parser
9
17
#define YYSTYPE unsigned
10
18
#undef ECHO
Original file line number Diff line number Diff line change 6
6
7
7
%{
8
8
9
+ #if defined _MSC_VER
10
+ // signed/unsigned mismatch
11
+ #pragma warning(disable:4365)
12
+ // macro re-definition: flex conditonally defines INT32_MAX et al. and thus
13
+ // they are set before library headers get to define them
14
+ #pragma warning(disable:4005)
15
+ #endif
16
+
9
17
#include < util/expr.h>
10
18
11
19
#include < ansi-c/literals/convert_float_literal.h>
Original file line number Diff line number Diff line change 12
12
13
13
%{
14
14
15
+ #if defined _MSC_VER
16
+ // signed/unsigned mismatch
17
+ #pragma warning(disable:4365)
18
+ // macro re-definition: flex conditonally defines INT32_MAX et al. and thus
19
+ // they are set before library headers get to define them
20
+ #pragma warning(disable:4005)
21
+ #endif
22
+
15
23
#define PARSER json_parser
16
24
17
25
#include " json_parser.h"
Original file line number Diff line number Diff line change 6
6
7
7
%{
8
8
9
+ #if defined _MSC_VER
10
+ // signed/unsigned mismatch
11
+ #pragma warning(disable:4365)
12
+ // macro re-definition: flex conditonally defines INT32_MAX et al. and thus
13
+ // they are set before library headers get to define them
14
+ #pragma warning(disable:4005)
15
+ #endif
16
+
9
17
#include < cctype>
10
18
#include < cstring>
11
19
#include < cstdlib>
You can’t perform that action at this time.
0 commit comments