[prev in list] [next in list] [prev in thread] [next in thread]
List: mutt-dev
Subject: Re: patch to mutt-1.0.1-us (docs)
From: Arnaud Launay <asl () launay ! org>
Date: 2000-04-30 14:12:11
[Download RAW message or body]
Le Tue, Apr 25, 2000 at 10:07:56AM -0700, O'Shaughnessy Evans a écrit:
> > Btw, Mutt uses Sgmltools version 1. The WWW presentation doesn't sound
> > like it is currently maintained, so I think it isn't worth of moving
> > to dokbook (sgmltools 2) format.
>
> When I try to build sgmltools (v1.07 - v1.09) I get a failure and messages
> about C++ errors. What version are people using for the mutt docs?
It's a normal thing, you're using a post gcc 2.7.2.3 compiler.
Please use the attached patch if you want them to compile
properly.
Arnaud.
["sgml-tools-1.0.9-egcs.patch" (text/plain)]
--- sgml-tools-1.0.9/rtf-fix/rtf2rtf.l.egcs Wed Mar 17 16:48:10 1999
+++ sgml-tools-1.0.9/rtf-fix/rtf2rtf.l Wed Mar 17 16:49:56 1999
@@ -53,8 +53,8 @@
int section_id = 0; /* used for TOC hyperlinks */
int in_appendix = 0;
-FILE *out = stdout;
-FILE *idx_fp = stdout;
+FILE *out;
+FILE *idx_fp;
char buf[2048], sectname[256], labeltxt[256];
char firstname[256], outname[256];
@@ -380,11 +380,13 @@
%%
-void
+int
main( int argc, char **argv )
{
int i;
+ out = idx_fp = stdout;
+
strcpy( firstname, "RTF" );
for (i = 1; i < argc; i++)
@@ -420,7 +422,7 @@
fputs ("\n}\n", idx_fp);
fclose( idx_fp );
- exit( 0 );
+ return 0;
}
/* Use the existing indentation style:
--- sgml-tools-1.0.9/sp/include/config.h.egcs Tue Oct 13 07:34:03 1998
+++ sgml-tools-1.0.9/sp/include/config.h Wed Mar 17 16:39:57 1999
@@ -9,9 +9,11 @@
#ifdef __GNUG__
// It's not missing, but it pulls in libg++
-#define SP_NEW_H_MISSING
+// NOT GOOD WITH EGCS 1.1.2!!!
+// #define SP_NEW_H_MISSING
// set_new_handler() has to be declared extern "C"
-#define SP_SET_NEW_HANDLER_EXTERN_C
+// THE FOLLOWING IS NOT NEEDED WITH EGCS 1.1.2 EITHER...
+//#define SP_SET_NEW_HANDLER_EXTERN_C
#ifndef SP_MANUAL_INST
#define SP_MANUAL_INST
#endif
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic