summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/arrayop.h
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-03-14 22:52:10 +0000
committerKarl Berry <karl@freefriends.org>2016-03-14 22:52:10 +0000
commit355bf72b81c6931539dd365430e78ebc10bcd0a2 (patch)
treeff9e855fb9eeb6cbc286d58e6cfe07bdb9cdf4ba /Build/source/utils/asymptote/arrayop.h
parent1cdee1080e0ad8f88624629e00039d9fe89c1b54 (diff)
asy 2.37 sources
git-svn-id: svn://tug.org/texlive/trunk@40025 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/arrayop.h')
-rw-r--r--Build/source/utils/asymptote/arrayop.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Build/source/utils/asymptote/arrayop.h b/Build/source/utils/asymptote/arrayop.h
index 98f10e7b248..a4d2abdad83 100644
--- a/Build/source/utils/asymptote/arrayop.h
+++ b/Build/source/utils/asymptote/arrayop.h
@@ -323,10 +323,10 @@ void write(vm::stack *s)
string S=pop<string>(s,emptystring);
vm::item it=pop(s);
bool defaultfile=isdefault(it);
- camp::file *f=defaultfile ? &camp::Stdout : vm::get<camp::file*>(it);
+ camp::ofile *f=defaultfile ? &camp::Stdout : vm::get<camp::ofile*>(it);
+ if(!f->isOpen() || !f->enabled()) return;
size_t size=checkArray(a);
- if(!f->isOpen()) return;
if(S != "") f->write(S);
f->write(first);
for(size_t i=0; i < size; ++i) {
@@ -354,7 +354,8 @@ void writeArray(vm::stack *s)
string S=pop<string>(s,emptystring);
vm::item it=pop(s);
bool defaultfile=isdefault(it);
- camp::file *f=defaultfile ? &camp::Stdout : vm::get<camp::file*>(it);
+ camp::ofile *f=defaultfile ? &camp::Stdout : vm::get<camp::ofile*>(it);
+ if(!f->enabled()) return;
size_t asize=checkArray(a);
size_t Asize=checkArray(A);