Le jeudi 30 mars 2006 à 21:27 +0100, Joe Orton a écrit : > On Fri, Mar 24, 2006 at 02:02:54PM +0100, Benoît Dejean wrote: > > Here's simple patch to move some data to .text > > Please CC me as i'm not subscribe to the list. > > Hi, thanks for the patch. 0.26.0 had these fixes in already.
I've updated my svn copy and download 0.26.0 tarball and it looks like
it hasn't.
--- src/ne_xml.c (révision 1024)
+++ src/ne_xml.c (copie de travail)
@@ -170,7 +170,7 @@
};
/* empty attributes array to mimic expat behaviour */
-static const char *empty_atts[] = {NULL, NULL};
+static const char * const empty_atts[] = {NULL, NULL};
missing.
--- src/ne_dates.c (révision 1024)
+++ src/ne_dates.c (copie de travail)
@@ -56,10 +56,10 @@
/* asctime: Wed Jun 30 21:49:08 1993 */
#define ASCTIME_FORMAT "%3s %3s %2d %2d:%2d:%2d %4d"
-static const char *const rfc1123_weekdays[7] = {
+static const char rfc1123_weekdays[7][4] = {
"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
};
-static const char *const short_months[12] = {
+static const char short_months[12][4] = {
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
};
OK, you've added extra const, but that's useless because "Sun" address
is not known at compile time and has to be resolved at runtime. That's
why day and month names are not shareable.
Ciao.
--
GNOME http://www.gnomefr.org/
LibGTop http://directory.fsf.org/libgtop.html
signature.asc
Description: Ceci est une partie de message numériquement signée
_______________________________________________ neon mailing list [email protected] http://mailman.webdav.org/mailman/listinfo/neon
