mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
mathed compile fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2989 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f34e4919f7
commit
c090ca491f
@ -1,3 +1,10 @@
|
||||
2001-11-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||
|
||||
* math_arrayinset.C (MathArrayInset):
|
||||
* formula.C (pipeThroughMaple):
|
||||
(pipeThroughOctave): add ugly .c_str() to help compile
|
||||
with lyxstring
|
||||
|
||||
2001-11-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||
|
||||
* math_inset.C: compilation fix
|
||||
|
@ -100,7 +100,7 @@ namespace {
|
||||
ostringstream os;
|
||||
MapleStream ms(os);
|
||||
ms << ar;
|
||||
string expr = os.str();
|
||||
string expr = os.str().c_str();
|
||||
|
||||
for (int i = 0; i < 100; ++i) { // at most 100 attempts
|
||||
// try to fix missing '*' the hard way by using mint
|
||||
@ -114,7 +114,7 @@ namespace {
|
||||
string out = captureOutput("mint -i 1 -S -s -q -q", expr + ";");
|
||||
if (out.empty())
|
||||
break; // expression syntax is ok
|
||||
istringstream is(out);
|
||||
istringstream is(out.c_str());
|
||||
string line;
|
||||
getline(is, line);
|
||||
if (line.find("on line") != 0)
|
||||
@ -146,7 +146,7 @@ namespace {
|
||||
ostringstream os;
|
||||
OctaveStream vs(os);
|
||||
vs << ar;
|
||||
string expr = os.str();
|
||||
string expr = os.str().c_str();
|
||||
string out;
|
||||
|
||||
for (int i = 0; i < 100; ++i) { // at most 100 attempts
|
||||
@ -165,7 +165,7 @@ namespace {
|
||||
break;
|
||||
|
||||
// search line with single caret
|
||||
istringstream is(out);
|
||||
istringstream is(out.c_str());
|
||||
string line;
|
||||
while (is) {
|
||||
getline(is, line);
|
||||
|
@ -25,11 +25,11 @@ MathArrayInset::MathArrayInset(string const & str)
|
||||
: MathGridInset(1, 1)
|
||||
{
|
||||
vector< vector<string> > dat;
|
||||
istringstream is(str);
|
||||
istringstream is(str.c_str());
|
||||
while (is) {
|
||||
string line;
|
||||
getline(is, line);
|
||||
istringstream ls(line);
|
||||
istringstream ls(line.c_str());
|
||||
typedef std::istream_iterator<string> iter;
|
||||
vector<string> v = vector<string>(iter(ls), iter());
|
||||
if (v.size())
|
||||
|
Loading…
Reference in New Issue
Block a user