summaryrefslogtreecommitdiff
path: root/dev-libs/slice-parser/0002-Fix-line-numbers-in-generated-code.patch
blob: fde791b019a02c9e904d2a2f275d54f3b0652f18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
From 2f673c4f9f2808a40dc0c29097ea60e3d3117a50 Mon Sep 17 00:00:00 2001
From: Dan Goodliffe <dan@randomdan.homeip.net>
Date: Mon, 14 Dec 2020 02:28:14 +0000
Subject: [PATCH 2/2] Fix #line numbers in generated code

---
 cpp/src/Slice/Grammar.cpp |  6 +++---
 cpp/src/Slice/Scanner.cpp | 10 +++++-----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/ice/cpp/src/Slice/Grammar.cpp b/ice/cpp/src/Slice/Grammar.cpp
index 3cb7c833df..063e632d58 100644
--- a/ice/cpp/src/Slice/Grammar.cpp
+++ b/ice/cpp/src/Slice/Grammar.cpp
@@ -127,7 +127,7 @@ slice_error(const char* s)
 
 
 /* Line 371 of yacc.c  */
-#line 128 "src/Slice/Grammar.cpp"
+#line 131 "src/Slice/Grammar.cpp"
 
 # ifndef YY_NULL
 #  if defined __cplusplus && 201103L <= __cplusplus
@@ -237,7 +237,7 @@ int slice_parse ();
 /* Copy the second part of user declarations.  */
 
 /* Line 390 of yacc.c  */
-#line 238 "src/Slice/Grammar.cpp"
+#line 241 "src/Slice/Grammar.cpp"
 
 #ifdef short
 # undef short
@@ -4556,7 +4556,7 @@ yyreduce:
 
 
 /* Line 1792 of yacc.c  */
-#line 4557 "src/Slice/Grammar.cpp"
+#line 4560 "src/Slice/Grammar.cpp"
       default: break;
     }
   /* User semantic actions sometimes alter yychar, and that requires
diff --git a/ice/cpp/src/Slice/Scanner.cpp b/ice/cpp/src/Slice/Scanner.cpp
index f9bb314f51..9f2aee79e7 100644
--- a/ice/cpp/src/Slice/Scanner.cpp
+++ b/ice/cpp/src/Slice/Scanner.cpp
@@ -1,7 +1,7 @@
 #include <IceUtil/ScannerConfig.h>
-#line 2 "src/Slice/Scanner.cpp"
+#line 3 "src/Slice/Scanner.cpp"
 
-#line 4 "src/Slice/Scanner.cpp"
+#line 5 "src/Slice/Scanner.cpp"
 
 #define  YY_INT_ALIGNED short int
 
@@ -626,7 +626,7 @@ int checkIdentifier(string&);
 
 
 
-#line 626 "src/Slice/Scanner.cpp"
+#line 630 "src/Slice/Scanner.cpp"
 
 #define INITIAL 0
 #define BOMSCAN 1
@@ -816,7 +816,7 @@ YY_DECL
 #line 93 "src/Slice/Scanner.l"
 
 
-#line 816 "src/Slice/Scanner.cpp"
+#line 820 "src/Slice/Scanner.cpp"
 
 	if ( !(yy_init) )
 		{
@@ -1403,7 +1403,7 @@ YY_RULE_SETUP
 #line 527 "src/Slice/Scanner.l"
 ECHO;
 	YY_BREAK
-#line 1403 "src/Slice/Scanner.cpp"
+#line 1407 "src/Slice/Scanner.cpp"
 case YY_STATE_EOF(INITIAL):
 case YY_STATE_EOF(BOMSCAN):
 case YY_STATE_EOF(MAINSCAN):
-- 
2.29.2