Update of /cvsroot/flexml/flexml
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv5268
Modified Files:
skel
Log Message:
Circumvent constentness warnings in produced flexers (I use -Werror)
Index: skel
===================================================================
RCS file: /cvsroot/flexml/flexml/skel,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- skel 24 Aug 2006 20:39:39 -0000 1.35
+++ skel 27 Aug 2006 20:46:36 -0000 1.36
@@ -123,9 +123,9 @@
}
#ifdef FLEXML_NEED_BUFFERLIT
-static void bufferliteral(char c, int* pp, char* text)
+static void bufferliteral(char c, int* pp, const char* text)
{
- char *s = (c ? strchr(text,c) : text-1), *e = strrchr(text,c);
+ char *s = (c ? strchr(text,c) : (char*)text-1), *e = strrchr(text,c);
assert(s <= e); BUFFERSET(*pp);
while (++s<e) {
if (isspace(*s) && c) { BUFFERPUTC(' '); while (isspace(*s)) ++s; }
|