mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
lyxstring compile fixes ; small stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2159 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c21c01ce34
commit
ab254289c8
@ -1,3 +1,7 @@
|
|||||||
|
2001-06-29 John Levon <moz@compsoc.man.ac.uk>
|
||||||
|
|
||||||
|
* INSTALL: change RedHat stuff to insist on updating gcc
|
||||||
|
|
||||||
2001-06-14 John Levon <moz@compsoc.man.ac.uk>
|
2001-06-14 John Levon <moz@compsoc.man.ac.uk>
|
||||||
|
|
||||||
* Makefile.am: no point in including 200k historical
|
* Makefile.am: no point in including 200k historical
|
||||||
|
11
INSTALL
11
INSTALL
@ -308,14 +308,9 @@ notify us.
|
|||||||
are needed for compilation). A 'make symlinks' in linux kernel
|
are needed for compilation). A 'make symlinks' in linux kernel
|
||||||
sources fixes that.
|
sources fixes that.
|
||||||
|
|
||||||
o if you are using the standard compiler that comes with RedHat Linux 7.0
|
o if you are using RedHat Linux 7.x, you must make sure you have the
|
||||||
(rpm versions 69 or below), it is known to miscompile LyX under some
|
latest updated gcc and related packages installed (at least -85),
|
||||||
circumstances. Compiling without optimisation seems to work :
|
or LyX will not compile or will be mis-compiled.
|
||||||
|
|
||||||
CXXFLAGS="-g"
|
|
||||||
./configure ...
|
|
||||||
|
|
||||||
You must use at least gcc 2.96-69 to compile LyX (check "rpm -q gcc").
|
|
||||||
|
|
||||||
o if you get an error message when compiling LyX that looks like this :
|
o if you get an error message when compiling LyX that looks like this :
|
||||||
|
|
||||||
|
@ -2598,7 +2598,7 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
|
|||||||
cur_value = par->params().spacing().getValue();
|
cur_value = par->params().spacing().getValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
istringstream istr(argument);
|
istringstream istr(argument.c_str());
|
||||||
|
|
||||||
string tmp;
|
string tmp;
|
||||||
istr >> tmp;
|
istr >> tmp;
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2001-06-29 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||||
|
|
||||||
|
* lyxfunc.C (Dispatch):
|
||||||
|
* Spacing.C (set):
|
||||||
|
* BufferView_pimpl.C (Dispatch): use .c_str() on istringstream
|
||||||
|
constructor argument.
|
||||||
|
|
||||||
2001-06-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
|
2001-06-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
|
||||||
|
|
||||||
* paragraph.C (Paragraph): dont't clear, and just set layout.
|
* paragraph.C (Paragraph): dont't clear, and just set layout.
|
||||||
|
@ -59,7 +59,7 @@ void Spacing::set(Spacing::Space sp, float val)
|
|||||||
void Spacing::set(Spacing::Space sp, string const & val)
|
void Spacing::set(Spacing::Space sp, string const & val)
|
||||||
{
|
{
|
||||||
float fval;
|
float fval;
|
||||||
istringstream istr(val);
|
istringstream istr(val.c_str());
|
||||||
istr >> fval;
|
istr >> fval;
|
||||||
set(sp, fval);
|
set(sp, fval);
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-06-29 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||||
|
|
||||||
|
* insettext.C (localDispatch): use .c_str() on istringstream
|
||||||
|
constructor argument.
|
||||||
|
|
||||||
2001-06-29 John Levon <moz@compsoc.man.ac.uk>
|
2001-06-29 John Levon <moz@compsoc.man.ac.uk>
|
||||||
|
|
||||||
* insettoc.h:
|
* insettoc.h:
|
||||||
|
@ -1056,7 +1056,7 @@ InsetText::localDispatch(BufferView * bv,
|
|||||||
cur_value = par->params().spacing().getValue();
|
cur_value = par->params().spacing().getValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::istringstream istr(arg);
|
std::istringstream istr(arg.c_str());
|
||||||
string tmp;
|
string tmp;
|
||||||
istr >> tmp;
|
istr >> tmp;
|
||||||
Spacing::Space new_spacing = cur_spacing;
|
Spacing::Space new_spacing = cur_spacing;
|
||||||
|
@ -1264,7 +1264,7 @@ string const LyXFunc::Dispatch(int ac,
|
|||||||
#else
|
#else
|
||||||
string file_name;
|
string file_name;
|
||||||
int row;
|
int row;
|
||||||
istringstream istr(argument);
|
istringstream istr(argument.c_str());
|
||||||
istr >> file_name >> row;
|
istr >> file_name >> row;
|
||||||
#endif
|
#endif
|
||||||
// Must replace extension of the file to be .lyx and get full path
|
// Must replace extension of the file to be .lyx and get full path
|
||||||
@ -1287,7 +1287,7 @@ string const LyXFunc::Dispatch(int ac,
|
|||||||
|
|
||||||
case LFUN_GOTO_PARAGRAPH:
|
case LFUN_GOTO_PARAGRAPH:
|
||||||
{
|
{
|
||||||
istringstream istr(argument);
|
istringstream istr(argument.c_str());
|
||||||
|
|
||||||
int id;
|
int id;
|
||||||
istr >> id;
|
istr >> id;
|
||||||
|
@ -278,7 +278,7 @@ int LyXRC::read(string const & filename)
|
|||||||
lexrc.setFile(filename);
|
lexrc.setFile(filename);
|
||||||
if (!lexrc.IsOK()) return -2;
|
if (!lexrc.IsOK()) return -2;
|
||||||
|
|
||||||
lyxerr[Debug::INIT] << "Reading '" << filename << "'..." << endl;
|
lyxerr[Debug::LYXRC] << "Reading '" << filename << "'..." << endl;
|
||||||
|
|
||||||
while (lexrc.IsOK()) {
|
while (lexrc.IsOK()) {
|
||||||
// By using two switches we take advantage of the compiler
|
// By using two switches we take advantage of the compiler
|
||||||
@ -707,7 +707,7 @@ int LyXRC::read(string const & filename)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((action = lyxaction.LookupFunc(cmd))>= 0) {
|
if ((action = lyxaction.LookupFunc(cmd))>= 0) {
|
||||||
if (lyxerr.debugging(Debug::KBMAP)) {
|
if (lyxerr.debugging(Debug::LYXRC)) {
|
||||||
lyxerr << "RC_BIND: Sequence `"
|
lyxerr << "RC_BIND: Sequence `"
|
||||||
<< seq << "' Command `"
|
<< seq << "' Command `"
|
||||||
<< cmd << "' Action `"
|
<< cmd << "' Action `"
|
||||||
@ -715,7 +715,7 @@ int LyXRC::read(string const & filename)
|
|||||||
}
|
}
|
||||||
res = toplevel_keymap->bind(seq, action);
|
res = toplevel_keymap->bind(seq, action);
|
||||||
if (res != 0
|
if (res != 0
|
||||||
&& lyxerr.debugging(Debug::KBMAP)) {
|
&& lyxerr.debugging(Debug::LYXRC)) {
|
||||||
lexrc.printError(
|
lexrc.printError(
|
||||||
"RC_BIND: "
|
"RC_BIND: "
|
||||||
"Invalid key sequence `"
|
"Invalid key sequence `"
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-06-29 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||||
|
|
||||||
|
* formulabase.C (localDispatch): use .c_str() on istringstream
|
||||||
|
constructor argument.
|
||||||
|
|
||||||
2001-06-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
2001-06-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||||
|
|
||||||
* math_grid.C (addCol): add second argument to cellinfo_.insert.
|
* math_grid.C (addCol): add second argument to cellinfo_.insert.
|
||||||
|
@ -553,7 +553,7 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
|
|||||||
int y;
|
int y;
|
||||||
int x1;
|
int x1;
|
||||||
int y1;
|
int y1;
|
||||||
istringstream is(arg);
|
istringstream is(arg.c_str());
|
||||||
is >> x >> y;
|
is >> x >> y;
|
||||||
lyxerr << "LFUN_SETXY: x: " << x << " y: " << y << "\n";
|
lyxerr << "LFUN_SETXY: x: " << x << " y: " << y << "\n";
|
||||||
par_->GetXY(x1, y1);
|
par_->GetXY(x1, y1);
|
||||||
@ -667,7 +667,7 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
|
|||||||
int n = 1;
|
int n = 1;
|
||||||
string v_align;
|
string v_align;
|
||||||
string h_align;
|
string h_align;
|
||||||
istringstream is(arg);
|
istringstream is(arg.c_str());
|
||||||
is >> m >> n >> v_align >> h_align;
|
is >> m >> n >> v_align >> h_align;
|
||||||
MathArrayInset * p = new MathArrayInset(m, n);
|
MathArrayInset * p = new MathArrayInset(m, n);
|
||||||
p->valign(v_align[0]);
|
p->valign(v_align[0]);
|
||||||
@ -688,7 +688,7 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
|
|||||||
if (arg.empty())
|
if (arg.empty())
|
||||||
break;
|
break;
|
||||||
|
|
||||||
istringstream is(arg);
|
istringstream is(arg.c_str());
|
||||||
string lt;
|
string lt;
|
||||||
string rt;
|
string rt;
|
||||||
is >> lt >> rt;
|
is >> lt >> rt;
|
||||||
|
Loading…
Reference in New Issue
Block a user