aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-05-01 03:12:05 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-05-01 03:12:05 +0000
commitbf71e93c27db661f3596b1e781ea2d632c1680ba (patch)
treeb6836bbdae20cfb62218dc5420dd6e26e8fdc375 /externals/grill/flext
parent581838d0672e6c17136f661bcd4b48b20ef30199 (diff)
better c++ compliance
fixes for MSVC6 restructured TableMap type (doesn't own pointers any more) svn path=/trunk/; revision=2861
Diffstat (limited to 'externals/grill/flext')
-rw-r--r--externals/grill/flext/source/flattr_ed.cpp4
-rw-r--r--externals/grill/flext/source/flmap.h4
-rw-r--r--externals/grill/flext/source/flsupport.cpp1
3 files changed, 7 insertions, 2 deletions
diff --git a/externals/grill/flext/source/flattr_ed.cpp b/externals/grill/flext/source/flattr_ed.cpp
index dc2cc9d1..e499b9d7 100644
--- a/externals/grill/flext/source/flattr_ed.cpp
+++ b/externals/grill/flext/source/flattr_ed.cpp
@@ -88,7 +88,11 @@ static void tclscript()
"proc flext_escatoms {lst} {\n"
"set tmp {}\n"
"foreach a $lst {\n"
+// "set a [regsub {\\\\} $a \\\\\\\\]\n" // replace \ with \\ ... must be first
"set a [regsub {\\$} $a \\\\$]\n" // replace $ with \$
+// "set a [regsub {\\{} $a \\\\\\{]\n" // replace { with \{
+// "set a [regsub {\\}} $a \\\\\\}]\n" // replace } with \}
+// "set a [regsub {\\ } $a \\\\\\ ]\n" // replace space with \space
"set a [regsub {,} $a \\\\,]\n" // replace , with \,
"set a [regsub {;} $a \\\\\\;]\n" // replace ; with \;
"lappend tmp $a\n"
diff --git a/externals/grill/flext/source/flmap.h b/externals/grill/flext/source/flmap.h
index 52f6e030..8d249776 100644
--- a/externals/grill/flext/source/flmap.h
+++ b/externals/grill/flext/source/flmap.h
@@ -84,7 +84,7 @@ public:
public:
iterator(): map(0) {}
iterator(const TableAnyMap &m): map(&m),ix(0) { leftmost(); }
- iterator(iterator &it): map(it.map),ix(it.ix) {}
+ iterator(const iterator &it): map(it.map),ix(it.ix) {}
iterator &operator =(const iterator &it) { map = it.map,ix = it.ix; return *this; }
@@ -219,7 +219,7 @@ public:
public:
iterator() {}
iterator(const TablePtrMap &m): TableAnyMap::iterator(m) {}
- iterator(iterator &it): TableAnyMap::iterator(it) {}
+ iterator(const iterator &it): TableAnyMap::iterator(it) {}
// this ugly syntax (cast to parent class) is needed for MSVC6
diff --git a/externals/grill/flext/source/flsupport.cpp b/externals/grill/flext/source/flsupport.cpp
index 7a1c3045..d2a30e07 100644
--- a/externals/grill/flext/source/flsupport.cpp
+++ b/externals/grill/flext/source/flsupport.cpp
@@ -326,3 +326,4 @@ void flext_root::error(const char *fmt,...)
va_end(ap);
}
+