mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Bracket some #warning directives with WITH_WARNINGS
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@267 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
fe84004fbb
commit
8030b42ab0
@ -1,3 +1,12 @@
|
|||||||
|
1999-10-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||||
|
|
||||||
|
* src/support/syscall.C (Systemcalls::kill):
|
||||||
|
src/support/filetools.C (PutEnv, PutEnvPath):
|
||||||
|
src/lyx_cb.C (addNewlineAndDepth):
|
||||||
|
src/FontInfo.C (FontInfo::resize): condition some #warning
|
||||||
|
directives with WITH_WARNINGS.
|
||||||
|
|
||||||
|
|
||||||
1999-10-28 Lars Gullik Bjønnes <larsbj@lyx.org>
|
1999-10-28 Lars Gullik Bjønnes <larsbj@lyx.org>
|
||||||
|
|
||||||
* src/form1.C (create_form_Figure): added a couple fo "no-c-format"
|
* src/form1.C (create_form_Figure): added a couple fo "no-c-format"
|
||||||
|
3
INSTALL
3
INSTALL
@ -63,9 +63,6 @@ to compile LyX are gcc 2.8.1 and 2.95.x, the various versions of egcs
|
|||||||
and Digital C++ version 6.1. Please tell us your experience with other
|
and Digital C++ version 6.1. Please tell us your experience with other
|
||||||
compilers.
|
compilers.
|
||||||
|
|
||||||
If you compile LyX with gcc, you should not need to have libg++ installed
|
|
||||||
on most systems. However, see the note in the section `Problems'.
|
|
||||||
|
|
||||||
If you make modifications to files in src/ (for example by applying a
|
If you make modifications to files in src/ (for example by applying a
|
||||||
patch), you will need to have the GNU gettext package installed, due to
|
patch), you will need to have the GNU gettext package installed, due to
|
||||||
some dependencies in the makefiles. You can find the latest (alpha)
|
some dependencies in the makefiles. You can find the latest (alpha)
|
||||||
|
@ -70,7 +70,9 @@ string FontInfo::getFontname(int size)
|
|||||||
/// Build newly sized font string
|
/// Build newly sized font string
|
||||||
string FontInfo::resize(string const & font, int size) const {
|
string FontInfo::resize(string const & font, int size) const {
|
||||||
// Find the position of the size spec
|
// Find the position of the size spec
|
||||||
|
#ifdef WITH_WARNINGS
|
||||||
#warning rewrite to use std::string constructs
|
#warning rewrite to use std::string constructs
|
||||||
|
#endif
|
||||||
int cut = 0, before = 0, after = 0;
|
int cut = 0, before = 0, after = 0;
|
||||||
for (string::size_type i = 0; i < font.length(); ++i) {
|
for (string::size_type i = 0; i < font.length(); ++i) {
|
||||||
if (font[i] == '-') {
|
if (font[i] == '-') {
|
||||||
|
@ -4071,7 +4071,9 @@ void UpdateInsetUpdateList()
|
|||||||
InsetUpdateList = 0;
|
InsetUpdateList = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef WITH_WARNINGS
|
||||||
#warning UGLY!!
|
#warning UGLY!!
|
||||||
|
#endif
|
||||||
// I know we shouldn't put anything in here but this seems the fastest
|
// I know we shouldn't put anything in here but this seems the fastest
|
||||||
// way to do this (and the cleanest for now). This function just inserts
|
// way to do this (and the cleanest for now). This function just inserts
|
||||||
// a newline in the string and the inserts 'depth'-spaces so that the
|
// a newline in the string and the inserts 'depth'-spaces so that the
|
||||||
|
@ -307,7 +307,9 @@ string GetEnvPath(string const & name)
|
|||||||
|
|
||||||
bool PutEnv(string const & envstr)
|
bool PutEnv(string const & envstr)
|
||||||
{
|
{
|
||||||
|
#ifdef WITH_WARNINGS
|
||||||
#warning Look at and fix this.
|
#warning Look at and fix this.
|
||||||
|
#endif
|
||||||
// f.ex. what about error checking?
|
// f.ex. what about error checking?
|
||||||
int retval = 0;
|
int retval = 0;
|
||||||
#if HAVE_PUTENV
|
#if HAVE_PUTENV
|
||||||
@ -329,7 +331,9 @@ bool PutEnv(string const & envstr)
|
|||||||
bool PutEnvPath(string const & envstr)
|
bool PutEnvPath(string const & envstr)
|
||||||
{
|
{
|
||||||
string pathlist = envstr;
|
string pathlist = envstr;
|
||||||
|
#ifdef WITH_WARNINGS
|
||||||
#warning Verify that this is correct.
|
#warning Verify that this is correct.
|
||||||
|
#endif
|
||||||
#ifdef __EMX__
|
#ifdef __EMX__
|
||||||
pathlist = subst(pathlist, ':', ';');
|
pathlist = subst(pathlist, ':', ';');
|
||||||
pathlist = subst(pathlist, '/', '\\');
|
pathlist = subst(pathlist, '/', '\\');
|
||||||
|
@ -92,7 +92,9 @@ void Systemcalls::kill(int tolerance) {
|
|||||||
// Here, we should add the PID to a list of
|
// Here, we should add the PID to a list of
|
||||||
// waiting processes to kill if they are not
|
// waiting processes to kill if they are not
|
||||||
// dead without tolerance seconds
|
// dead without tolerance seconds
|
||||||
|
#ifdef WITH_WARNINGS
|
||||||
#warning Implement this using the timer of the singleton systemcontroller (Asger)
|
#warning Implement this using the timer of the singleton systemcontroller (Asger)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user