+2003-07-18 Lars Gullik Bjønnes <larsbj@gullik.net>
+
+ * libs/regex/src/cpp_regex_traits.cpp (message_data): cast to safe
+ types
+
+ * libs/regex/src/c_regex_traits.cpp (do_update_ctype): cast to
+ safe types.
+
+ * boost/config/compiler/gcc.hpp: allow for gcc 2.4
+
2003-05-01 Lars Gullik Bjønnes <larsbj@gullik.net>
* boost/type_traits/detail/wrap.hpp: add file
#endif
//
// last known and checked version is 3.2:
-#if (__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ > 3))
+#if (__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ > 4))
# if defined(BOOST_ASSERT_CONFIG)
# error "Unknown compiler version - please run the configure tests and report the results"
# else
* provided that the above copyright notice appear in all copies and
* that both that copyright notice and this permission notice appear
* in supporting documentation. Dr John Maddock makes no representations
- * about the suitability of this software for any purpose.
+ * about the suitability of this software for any purpose.
* It is provided "as is" without express or implied warranty.
*
*/
-
+
/*
* LOCATION: see http://www.boost.org for most recent version.
* FILE c_regex_traits.cpp
if(std::isxdigit(i))
class_map[i] |= char_class_xdigit;
}
- class_map['_'] |= char_class_underscore;
- class_map[' '] |= char_class_blank;
- class_map['\t'] |= char_class_blank;
+ class_map[(unsigned char)('_')] |= char_class_underscore;
+ class_map[(unsigned char)(' ')] |= char_class_blank;
+ class_map[(unsigned char)('\t')] |= char_class_blank;
for(i = 0; i < map_size; ++i)
{
lower_case_map[i] = (char)std::tolower(i);
#endif // BOOST_NO_WREGEX
} // namespace boost
-
-
-
* provided that the above copyright notice appear in all copies and
* that both that copyright notice and this permission notice appear
* in supporting documentation. Dr John Maddock makes no representations
- * about the suitability of this software for any purpose.
+ * about the suitability of this software for any purpose.
* It is provided "as is" without express or implied warranty.
*
*/
-
+
/*
* LOCATION: see http://www.boost.org for most recent version.
* FILE: c_regex_traits.cpp
#else
BOOST_REGEX_NOEH_ASSERT(cat >= 0);
#endif
- }
+ }
#endif
std::memset(syntax_map, cpp_regex_traits<char>::syntax_char, 256);
unsigned i;
#endif
for(std::size_t j = 0; j < s.size(); ++j)
{
- syntax_map[s[j]] = (unsigned char)(i);
+ syntax_map[(unsigned char)s[j]] = (unsigned char)(i);
}
}
if((int)cat >= 0)
msgs.close(cat);
-#endif
+#endif
}
} // namespace re_detail
} // namespace boost
#endif
-
-
+2003-07-18 Lars Gullik Bjønnes <larsbj@gullik.net>
+
+ * lyxinclude.m4: add gcc 3.4
+
2003-07-15 Angus Leeming <leeming@lyx.org>
* lyxinclude.m4: Do not pass the -Winline option to gcc.
3.1*) CXXFLAGS="$lyx_opt -finline-limit=500 -fno-exceptions";;
3.2*) CXXFLAGS="$lyx_opt -fno-exceptions";;
3.3*) CXXFLAGS="$lyx_opt -fno-exceptions";;
+ 3.4*) CXXFLAGS="$lyx_opt -fno-exceptions";;
*) CXXFLAGS="$lyx_opt";;
esac
if test x$enable_debug = xyes ; then
+2003-07-18 Lars Gullik Bjønnes <larsbj@gullik.net>
+
+ * ControlGraphics.C (dispatchParams): avoid some variable/function
+ shadowing.
+
+ * ControlDialog.tmpl (show): follow C++ rules more closely
+ (update): ditto
+ (hide): ditto
+
2003-07-17 Angus Leeming <leeming@lyx.org>
* ControlChanges.h:
template <class Base>
void ControlDialog<Base>::show()
{
- if (isBufferDependent() && !bufferIsAvailable())
+ if (this->isBufferDependent() && !this->bufferIsAvailable())
return;
- connect();
+ this->connect();
if (!dialog_built_) {
- view().build();
+ this->view().build();
dialog_built_ = true;
}
return;
}
- bc().readOnly(bufferIsReadonly());
- view().show();
+ this->bc().readOnly(this->bufferIsReadonly());
+ this->view().show();
// The widgets may not be valid, so refresh the button controller
- bc().refresh();
+ this->bc().refresh();
}
+
template <class Base>
void ControlDialog<Base>::update()
{
- if (isBufferDependent() && !bufferIsAvailable())
+ if (this->isBufferDependent() && !this->bufferIsAvailable())
return;
setParams();
return;
}
- bc().readOnly(bufferIsReadonly());
- view().update();
+ this->bc().readOnly(this->bufferIsReadonly());
+ this->view().update();
// The widgets may not be valid, so refresh the button controller
- bc().refresh();
+ this->bc().refresh();
}
+
template <class Base>
void ControlDialog<Base>::hide()
{
this->emergency_exit_ = false;
clearParams();
- disconnect();
- view().hide();
+ this->disconnect();
+ this->view().hide();
}
void ControlGraphics::dispatchParams()
{
- InsetGraphicsParams params(params());
+ InsetGraphicsParams tmp_params(params());
// core requires absolute path during runtime
- params.filename = MakeAbsPath(params.filename,
+ tmp_params.filename = MakeAbsPath(tmp_params.filename,
kernel().buffer()->filePath());
- string const lfun = InsetGraphicsMailer::params2string(params);
+ string const lfun = InsetGraphicsMailer::params2string(tmp_params);
kernel().dispatch(FuncRequest(LFUN_INSET_APPLY, lfun));
}
+2003-07-18 Lars Gullik Bjønnes <larsbj@gullik.net>
+
+ * Qt2Base.h (controller): ditto
+
+ * QDialogView.h (controller): follow C++ rules more closely.
+
2003-07-15 Juergen Spitzmueller <j.spitzmueller@gmx.de>
* QTabular.C:
template <class Controller, class Base>
Controller & QController<Controller, Base>::controller()
{
- return static_cast<Controller &>(getController());
+ return static_cast<Controller &>(this->getController());
}
template <class Controller, class Base>
Controller const & QController<Controller, Base>::controller() const
{
- return static_cast<Controller const &>(getController());
+ return static_cast<Controller const &>(this->getController());
}
template <class Controller, class Base>
Controller & Qt2CB<Controller, Base>::controller()
{
- return static_cast<Controller &>(getController());
+ return static_cast<Controller &>(this->getController());
}
template <class Controller, class Base>
Controller const & Qt2CB<Controller, Base>::controller() const
{
- return static_cast<Controller const &>(getController());
+ return static_cast<Controller const &>(this->getController());
}
+2003-07-18 Lars Gullik Bjønnes <larsbj@gullik.net>
+
+ * FormDialogView.h (controller): ditto
+
+ * FormBase.h (controller): follow C++ rules more closely.
+
2003-07-16 Angus Leeming <angus@localhost.localdomain>
* FormDialogView.C (postMessage): remove preprocessor warning.
template <class Controller, class Base>
Controller & FormCB<Controller, Base>::controller()
{
- return static_cast<Controller &>(getController());
+ return static_cast<Controller &>(this->getController());
}
template <class Controller, class Base>
Controller const & FormCB<Controller, Base>::controller() const
{
- return static_cast<Controller const &>(getController());
+ return static_cast<Controller const &>(this->getController());
}
template <class Controller, class Base>
Controller & FormController<Controller, Base>::controller()
{
- return static_cast<Controller &>(getController());
+ return static_cast<Controller &>(this->getController());
}
template <class Controller, class Base>
Controller const & FormController<Controller, Base>::controller() const
{
- return static_cast<Controller const &>(getController());
+ return static_cast<Controller const &>(this->getController());
}
+2003-07-18 Lars Gullik Bjønnes <larsbj@gullik.net>
+
+ * math_parser.C (catInit): dont use unprintable control chars in
+ source.
+
2003-07-17 Angus Leeming <leeming@lyx.org>
* formulabase.C (localDispatch): return UNDISPATCHED for all
theCatcode[int('#')] = catParameter;
theCatcode[int('^')] = catSuper;
theCatcode[int('_')] = catSub;
- theCatcode[int('\7f')] = catIgnore;
+ theCatcode[int(0x7f)] = catIgnore;
theCatcode[int(' ')] = catSpace;
theCatcode[int('\t')] = catSpace;
theCatcode[int('\r')] = catNewline;
namespace boost
{
-extern
-template basic_format<char>;
-
extern template
std::ostream &
operator<< <char, std::char_traits<char> >(std::ostream &,
+2003-07-18 Lars Gullik Bjønnes <larsbj@gullik.net>
+
+ * BoostFormat.h (boost): remove one extern template. Gcc 3.4. does
+ not allow it (at least not in this form.)
+
2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
* os_win32.C: put namespace os in lyx::support.
+2003-07-18 Lars Gullik Bjønnes <larsbj@gullik.net>
+
+ * texparser.C (catInit): same warning avoidance as in math_parser.C
+ (setCatCode): cast to safe type
+ (getCatCode): ditto
+
2003-05-17 Joao Luis M. Assirati <assirati@fma.if.usp.br>
* texparser.C: fix paragraph parsing after comment
2003-04-29 André Pönitz <poenitz@gmx.net>
-
+
* Makefile.am:
texparser.h: whitespace
versions of gcc to compile the code.
2003-04-17 André Pönitz <poenitz@gmx.net>
-
+
* math.C:
preamble.C:
table.C:
* Makefile.am: empty, dummy file so that autogen.sh and configure
are happy.
-
-
#include <config.h>
#include "texparser.h"
fill(theCatcode + 'a', theCatcode + 'z' + 1, catLetter);
fill(theCatcode + 'A', theCatcode + 'Z' + 1, catLetter);
- theCatcode['\\'] = catEscape;
- theCatcode['{'] = catBegin;
- theCatcode['}'] = catEnd;
- theCatcode['$'] = catMath;
- theCatcode['&'] = catAlign;
+ theCatcode[int('\\')] = catEscape;
+ theCatcode[int('{')] = catBegin;
+ theCatcode[int('}')] = catEnd;
+ theCatcode[int('$')] = catMath;
+ theCatcode[int('&')] = catAlign;
theCatcode[10] = catNewline;
- theCatcode['#'] = catParameter;
- theCatcode['^'] = catSuper;
- theCatcode['_'] = catSub;
- theCatcode['\7f'] = catIgnore;
- theCatcode[' '] = catSpace;
- theCatcode['\t'] = catSpace;
+ theCatcode[int('#')] = catParameter;
+ theCatcode[int('^')] = catSuper;
+ theCatcode[int('_')] = catSub;
+ theCatcode[0x7f] = catIgnore;
+ theCatcode[int(' ')] = catSpace;
+ theCatcode[int('\t')] = catSpace;
theCatcode[13] = catIgnore;
- theCatcode['~'] = catActive;
- theCatcode['%'] = catComment;
+ theCatcode[int('~')] = catActive;
+ theCatcode[int('%')] = catComment;
// This is wrong!
- theCatcode['@'] = catLetter;
+ theCatcode[int('@')] = catLetter;
}
}
-//
+//
// catcodes
//
while (1) {
if (next_token().cat() == catSpace || next_token().cat() == catNewline)
get_token();
- else if (next_token().cat() == catComment)
+ else if (next_token().cat() == catComment)
while (next_token().cat() != catNewline)
get_token();
else
void Parser::setCatCode(char c, CatCode cat)
{
- theCatcode[c] = cat;
+ theCatcode[(unsigned char)c] = cat;
}
CatCode Parser::getCatCode(char c) const
{
- return theCatcode[c];
+ return theCatcode[(unsigned char)c];
}