diff options
author | Murray Cumming <murrayc@localhost.localdomain> | 2005-01-21 19:26:04 +0000 |
---|---|---|
committer | Murray Cumming <murrayc@src.gnome.org> | 2005-01-21 19:26:04 +0000 |
commit | 17ddd797c53c205fef4b155135caff6899a183f8 (patch) | |
tree | 2fcd531537700efdd8fc0759917ab3b6b0c81fdf /glib/glibmm/ustring.h | |
parent | a8e848b1f08e71f376ddfce775794c7056609f23 (diff) | |
download | glibmm-17ddd797c53c205fef4b155135caff6899a183f8.tar.gz |
Added new compiler tests. 1. To see whether it allows use of non extern C
2005-01-21 Murray Cumming <murrayc@localhost.localdomain>
* configure.in, scripts/cxx.m4, glibmm/glibmmconfig.h.in: Added new
compiler tests.
1. To see whether it allows use of non extern C functions
as extern C callbacks, because the Tru64 compiler does not
allow this, when using strict_ansi. We do not actually use this yet.
2. To see whether it allows us to define a template that uses an
undefined type, even if we do not use it before defining the type.
Tru64 does not allow this. That's probably correct.
* glib/glibmm/container.h: #ifdef out a dynamic_cast that Tru64
does not allow, and which I can not think of a better place to put.
See the comment in the code.
* glib/glibmm/containerhandler_helpers.h: When the compiler does not
alllow the GObject and GtkObject (dynamic_cast of) specializations
here, then put them in glib/glibmm/object.h and
gtkmm/gtk/src/object.hg instead.- needed by Tru64 compiler.
* glib/glibmm/value.h, value_custom.[h|cc]: Conditionally moved
the RefPtr Value specialization into object.h, as above.
* glib/src/ optiongroup.ccg, spawn.ccg, thread.ccg: Make C callacks
separate extern C.
* glib/src/optiongroup.ccg: Do not use the StringArrayHandle,
because the Tru64 compiler has problems with it - see comments
in code.
* glib/src/optionentry.hg: Remove the include of value.h, because
it is not used and it causes a Tru64 compile error in
optioncontext.cc because its templates are included before the
types that the template uses.
2005-01-19 Murray Cumming <murrayc@murrayc.com>
* configure.in, scripts/cxx.m4, glibmm/glibmmconfig.h.in: Added a
compiler test, because the IRIX MipsPro compiler does not allow the
inline initialization of ustring::npos.
* glib/glibmm/ustring.[h|cc]: When the compiler does not support the
inline initialization of npos, initialize it in the .cc file.
Declare partial specializations of the SequenceString inner class
inside the class - needed by IRIX MipsPro compiler.
Diffstat (limited to 'glib/glibmm/ustring.h')
-rw-r--r-- | glib/glibmm/ustring.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glib/glibmm/ustring.h b/glib/glibmm/ustring.h index 89d7e00a..86578b43 100644 --- a/glib/glibmm/ustring.h +++ b/glib/glibmm/ustring.h @@ -235,7 +235,7 @@ public: #ifdef GLIBMM_HAVE_ALLOWS_STATIC_INLINE_NPOS static const size_type npos = std::string::npos; #else - //The MipsPro compiler (IRIX) says "The indicated constant value is not known", + //The IRIX MipsPro compiler says "The indicated constant value is not known", //so we need to initalize the static member data elsewhere. static const size_type npos; #endif @@ -605,7 +605,7 @@ private: #endif struct SequenceToString; - //The MipsPro (IRIX) compiler needs these partial specializations to be declared here, + //The Tru64 compiler needs these partial specializations to be declared here, //as well as defined later. That's probably correct. murrayc. template <class In> struct SequenceToString<In, char>; |