~ruther/guix-local

ref: bc2e049af14cd9a25b9571e79f1c5e6c97c5f742 guix-local/gnu/packages/patches/doc++-gcc-14.patch -rw-r--r-- 4.3 KiB
bc2e049a — Sharlatan Hellseher gnu: Remove python-nose-exclude. 9 months ago
                                                                                
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
Upstream-status: Not presented upstream.

--- doc++-3.4.10/src/doc2dbxml.ll.orig	2025-01-02 19:35:28.284584323 +0100
+++ doc++-3.4.10/src/doc2dbxml.ll	2025-01-02 19:36:30.316732013 +0100
@@ -57,8 +57,8 @@
 static int	skip          = 0;
 static int	tab           = 0;
 static int	yyLineNr      = 0;
-static Entry*	ref           = 0;
-static Entry*	noref         = ref + 1;
+static Entry*	g_ref    = 0;
+static Entry*	noref         = g_ref + 1;
 static char	yyFileName[264];
 static bool		mathmode      = false;
 static int	tabFlag	      = 0;
@@ -147,28 +147,28 @@
 			}
 
 <Ref>[^}]*		{
-			if(ref == 0)
+			if(g_ref == 0)
 			    {
 			    McString tmp = yytext;
-			    ref = getRefEntry(tmp, current);
+			    g_ref = getRefEntry(tmp, current);
 			    }
 			REJECT;
 			}
 
 <Ref>"}"		{
-			if(ref && ref != noref)
+			if(g_ref && g_ref != noref)
 			    {
 			    fprintf(out, " ($\\rightarrow$ ");
-			    if(MAKE_DOC(ref))
+			    if(MAKE_DOC(g_ref))
 				{
-				ref->dumpNumber(out);
+				g_ref->dumpNumber(out);
 				fprintf(out, ",");
 				}
 			    fprintf(out, " {\\em page }\\pageref{cxx.");
-			    ref->dumpNumber(out);
+			    g_ref->dumpNumber(out);
 			    fprintf(out, "})");
 			    }
-			ref = 0;
+			g_ref = 0;
 			BEGIN(0);
 			}
 
--- doc++-3.4.10/src/doc2dbsgml.ll.orig	2025-01-02 19:39:08.061103757 +0100
+++ doc++-3.4.10/src/doc2dbsgml.ll	2025-01-02 19:39:52.201206812 +0100
@@ -54,8 +54,8 @@
 static int	skip          = 0;
 static int	tab           = 0;
 static int	yyLineNr      = 0;
-static Entry*	ref           = 0;
-static Entry*	noref         = ref + 1;
+static Entry*	g_ref           = 0;
+static Entry*	noref         = g_ref + 1;
 static char	yyFileName[264];
 static bool		mathmode      = false;
 static int	tabFlag	      = 0;
@@ -144,28 +144,28 @@
 			}
 
 <Ref>[^}]*		{
-			if(ref == 0)
+			if(g_ref == 0)
 			    {
 			    McString tmp = yytext;
-			    ref = getRefEntry(tmp, current);
+			    g_ref = getRefEntry(tmp, current);
 			    }
 			REJECT;
 			}
 
 <Ref>"}"		{
-			if(ref && ref != noref)
+			if(g_ref && g_ref != noref)
 			    {
 			    fprintf(out, " ($\\rightarrow$ ");
-			    if(MAKE_DOC(ref))
+			    if(MAKE_DOC(g_ref))
 				{
-				ref->dumpNumber(out);
+				g_ref->dumpNumber(out);
 				fprintf(out, ",");
 				}
 			    fprintf(out, " {\\em page }\\pageref{cxx.");
-			    ref->dumpNumber(out);
+			    g_ref->dumpNumber(out);
 			    fprintf(out, "})");
 			    }
-			ref = 0;
+			g_ref = 0;
 			BEGIN(0);
 			}
 
--- doc++-3.4.10/src/doc2tex.ll.orig	2025-01-02 19:40:11.785252404 +0100
+++ doc++-3.4.10/src/doc2tex.ll	2025-01-02 19:40:39.181316047 +0100
@@ -59,8 +59,8 @@
 static int	yyLineNr	= 0;
 static int	texBracketCount	= 0;
 static McString	refStr		= "";
-static Entry*	ref		= 0;
-static Entry*	noref		= ref + 1;
+static Entry*	g_ref		= 0;
+static Entry*	noref		= g_ref + 1;
 static char	yyFileName[264];
 bool		mathmode	= false;
 static int	tabFlag		= 0;
@@ -186,30 +186,30 @@
 			}
 
 <Ref>[^}]*		{
-			if(ref == 0)
+			if(g_ref == 0)
 			    {
 			    refStr = McString(yytext, 0, yyleng - 2);
-			    ref = getRefEntry(refStr, current);
+			    g_ref = getRefEntry(refStr, current);
 			    }
 			REJECT;
 			}
 
 <Ref>"}"		{
-			if(ref && ref != noref)
+			if(g_ref && g_ref != noref)
 			    {
 			    fprintf(out, " ($\\rightarrow$ ");
-			    if(MAKE_DOC(ref))
+			    if(MAKE_DOC(g_ref))
 				{
-				ref->dumpNumber(out);
+				g_ref->dumpNumber(out);
 				fprintf(out, ",");
 				}
 			    fprintf(out, " {\\em page }\\pageref{cxx.");
-			    ref->dumpNumber(out);
+			    g_ref->dumpNumber(out);
 			    fprintf(out, "})");
 			    }
 			else
 			    fprintf(out, refStr.c_str());
-			ref = 0;
+			g_ref = 0;
 			refStr.clear();
 			BEGIN(0);
 			}
@@ -246,28 +246,28 @@
 			}
 
 <Link>[^ ]*		{
-			if(ref == 0)
+			if(g_ref == 0)
 			    {
 			    McString tmp = yytext;
-			    ref = getRefEntry(tmp, current);
+			    g_ref = getRefEntry(tmp, current);
 			    }
 			REJECT;
 			}
 
 <Link>"}"		{
-			if(ref && ref != noref)
+			if(g_ref && g_ref != noref)
 			    {
 			    fprintf(out, " ($\\rightarrow$ ");
-			    if(MAKE_DOC(ref))
+			    if(MAKE_DOC(g_ref))
 				{
-				ref->dumpNumber(out);
+				g_ref->dumpNumber(out);
 				fprintf(out, ",");
 				}
 			    fprintf(out, " {\\em page }\\pageref{cxx.");
-			    ref->dumpNumber(out);
+			    g_ref->dumpNumber(out);
 			    fprintf(out, "})");
 			    }
-			ref = 0;
+			g_ref = 0;
 			BEGIN(0);
 			}