diff options
Diffstat (limited to 'graphics/asymptote/process.h')
-rw-r--r-- | graphics/asymptote/process.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/graphics/asymptote/process.h b/graphics/asymptote/process.h index 1a5189cdb5..3f3e739089 100644 --- a/graphics/asymptote/process.h +++ b/graphics/asymptote/process.h @@ -1,6 +1,6 @@ /***** * process.h - * Andy Hammerlindl 2006/08/19 + * Andy Hammerlindl 2006/08/19 * * Handles processing blocks of code (including files, strings, and the * interactive prompt, for listing and parse-only modes as well as actually @@ -46,10 +46,10 @@ void doUnrestrictedList(); template<class T> class terminator { -public: +public: typedef mem::vector<T *> Pointer; Pointer pointer; - + // Return first available index size_t available() { size_t index=0; @@ -60,17 +60,17 @@ public: pointer.push_back(NULL); return index; } - + size_t add(T *p) { size_t index=available(); pointer[index]=p; return index; } - + void remove(size_t index) { pointer[index]=NULL; } - + ~terminator() { for(typename Pointer::iterator p=pointer.begin(); p != pointer.end(); ++p) { if(*p != NULL) { @@ -100,21 +100,21 @@ struct processDataStruct { vm::callable *atBreakpointFunction; camp::pen defaultpen; camp::pen currentpen; - + // For xasy: string fileName; position topPos; string KEY; xkey_t xkey; xmap_t xmap; - + terminator<std::ofstream> ofile; terminator<std::fstream> ifile; #ifdef HAVE_RPC_RPC_H terminator<xdr::ioxstream> ixfile; terminator<xdr::oxstream> oxfile; -#endif - +#endif + processDataStruct() { atExitFunction=NULL; atUpdateFunction=NULL; @@ -122,7 +122,7 @@ struct processDataStruct { defaultpen=camp::pen::initialpen(); currentpen=camp::pen(); } - + }; processDataStruct &processData(); |