summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/runfile.cc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-04-19 23:59:33 +0000
committerKarl Berry <karl@freefriends.org>2010-04-19 23:59:33 +0000
commitdddce3148a2bc785603576b18ffcf72d39adbe47 (patch)
tree14f4c79ef11bcf0820a8d4ff2ab0c5ac009c365c /Build/source/utils/asymptote/runfile.cc
parenta01e51b01f5819b6091af48cdca581e9f2a9282e (diff)
asy 1.93
git-svn-id: svn://tug.org/texlive/trunk@17934 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/runfile.cc')
-rw-r--r--Build/source/utils/asymptote/runfile.cc36
1 files changed, 19 insertions, 17 deletions
diff --git a/Build/source/utils/asymptote/runfile.cc b/Build/source/utils/asymptote/runfile.cc
index 78afa6d0d85..c82d772eb4e 100644
--- a/Build/source/utils/asymptote/runfile.cc
+++ b/Build/source/utils/asymptote/runfile.cc
@@ -49,12 +49,14 @@ array *copyArray(array *a);
array *copyArray2(array *a);
array *copyArray3(array *a);
-double *copyArrayC(const array *a, size_t dim=0);
-double *copyArray2C(const array *a, bool square=true, size_t dim2=0);
+double *copyArrayC(const array *a, size_t dim=0, GCPlacement placement=NoGC);
+double *copyArray2C(const array *a, bool square=true, size_t dim2=0,
+ GCPlacement placement=NoGC);
triple *copyTripleArrayC(const array *a, size_t dim=0);
triple *copyTripleArray2C(const array *a, bool square=true, size_t dim2=0);
-double *copyTripleArray2Components(array *a, bool square=true, size_t dim2=0);
+double *copyTripleArray2Components(array *a, bool square=true, size_t dim2=0,
+ GCPlacement placement=NoGC);
}
function *realRealFunction();
@@ -560,31 +562,31 @@ void readSet(stack *Stack)
// Delete file named s.
#line 330 "runfile.in"
-// Int delete(string *s);
+// Int delete(string s);
void gen_runfile45(stack *Stack)
{
- string * s=vm::pop<string *>(Stack);
+ string s=vm::pop<string>(Stack);
#line 331 "runfile.in"
- checkLocal(*s);
- Int rc=unlink(s->c_str());
+ s=outpath(s);
+ Int rc=unlink(s.c_str());
if(rc == 0 && verbose > 0)
- cout << "Deleted " << *s << endl;
+ cout << "Deleted " << s << endl;
{Stack->push<Int>(rc); return;}
}
// Rename file "from" to file "to".
#line 340 "runfile.in"
-// Int rename(string *from, string *to);
+// Int rename(string from, string to);
void gen_runfile46(stack *Stack)
{
- string * to=vm::pop<string *>(Stack);
- string * from=vm::pop<string *>(Stack);
+ string to=vm::pop<string>(Stack);
+ string from=vm::pop<string>(Stack);
#line 341 "runfile.in"
- checkLocal(*from);
- checkLocal(*to);
- Int rc=rename(from->c_str(),to->c_str());
+ from=outpath(from);
+ to=outpath(to);
+ Int rc=rename(from.c_str(),to.c_str());
if(rc == 0 && verbose > 0)
- cout << "Renamed " << *from << " to " << *to << endl;
+ cout << "Renamed " << from << " to " << to << endl;
{Stack->push<Int>(rc); return;}
}
@@ -685,9 +687,9 @@ void gen_runfile_venv(venv &ve)
#line 324 "runfile.in"
REGISTER_BLTIN(run::readSet,"readSet");
#line 329 "runfile.in"
- addFunc(ve, run::gen_runfile45, primInt(), "delete", formal(primString(), "s", false, false));
+ addFunc(ve, run::gen_runfile45, primInt(), "delete", formal(primString() , "s", false, false));
#line 339 "runfile.in"
- addFunc(ve, run::gen_runfile46, primInt(), "rename", formal(primString(), "from", false, false), formal(primString(), "to", false, false));
+ addFunc(ve, run::gen_runfile46, primInt(), "rename", formal(primString() , "from", false, false), formal(primString() , "to", false, false));
}
} // namespace trans