bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Fix src/utils/tfmtodit/tfmtodit.cpp for GCC-3.5


From: Art Haas
Subject: [PATCH] Fix src/utils/tfmtodit/tfmtodit.cpp for GCC-3.5
Date: Thu, 8 Apr 2004 16:56:46 -0500
User-agent: Mutt/1.5.5.1+cvs20040105i

Hi.

This file still makes GCC-3.5 unhappy. The first 'struct' needs a type,
and calling it 'S' will produce an error if the second struct is also
type 'S', so I changed the second type to 'S2'. The file now compiles
with GCC-3.5.

Art Haas

Index: src/utils/tfmtodit/tfmtodit.cpp
===================================================================
RCS file: /var/cvs/groff/src/utils/tfmtodit/tfmtodit.cpp,v
retrieving revision 1.2
diff -u -r1.2 tfmtodit.cpp
--- src/utils/tfmtodit/tfmtodit.cpp     8 Apr 2004 20:43:28 -0000       1.2
+++ src/utils/tfmtodit/tfmtodit.cpp     8 Apr 2004 21:54:12 -0000
@@ -650,7 +650,7 @@
 gives the groff name of the character, `i' gives its index in
 the encoding, which is filled in later  (-1 if it does not appear). */
 
-struct {
+struct S {
   const char *ch;
   int i;
 } lig_chars[] = {
@@ -670,7 +670,7 @@
 
 // Each possible ligature appears in this table.
 
-struct S {
+struct S2 {
   unsigned char c1, c2, res;
   const char *ch;
 } lig_table[] = {
-- 
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.

-Thomas Jefferson to James Smith, 1822




reply via email to

[Prev in Thread] Current Thread [Next in Thread]