Re: [AD] Allegro 4.1.10 WIP |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> docs\src\makedoc\makehtml.c(155) : error C2026: string too big, trailing
> characters truncated
> make.exe[1]: *** [obj/msvc/alleg/makehtml.obj] Error 2
> make.exe[1]: Leaving directory `c:/allegro'
> make.exe: *** [all] Error 2
>
> I already warned...
Oh My God(tm)! I managed to let it slip through... what a pity :-(
Does the attached patch cure it?
--
Eric Botcazou
--- /home/eric/cvs/allegro/docs/src/makedoc/makehtml.c Mon May 5 18:44:03 2003
+++ allegro/docs/src/makedoc/makehtml.c Tue Jun 24 09:12:33 2003
@@ -62,7 +62,9 @@
static char *_xref[256], *_eref[256];
static int _xrefs, _erefs;
static int _empty_count;
-static const char *_css_data = "\
+
+/* MSVC doesn't like long strings. */
+static const char *_css_data1 = "\
A.xref:link {\n\
\tcolor: blue;\n\
\ttext-decoration: none;\n\
@@ -118,6 +120,9 @@
\ttext-decoration: underline;\n\
\tbackground: transparent;\n\
}\n\
+";
+
+static const char *_css_data2 = "\
A.autotype:active {\n\
\tcolor: red;\n\
\ttext-decoration: none;\n\
@@ -521,8 +526,9 @@
free(full_path);
return;
}
-
- fprintf(file, "%s", _css_data);
+
+ fputs(_css_data1, file);
+ fputs(_css_data2, file);
fclose(file);
free(full_path);
@@ -813,8 +819,9 @@
}
else {
fputs("<style type=\"text/css\" title=\"Default\"><!--\n", _file);
- fprintf(_file, "%s\n", _css_data);
- fputs("\n--></style>\n", _file);
+ fputs(_css_data1, _file);
+ fputs(_css_data2, _file);
+ fputs("\n\n--></style>\n", _file);
}
}