foralex / picoc

Automatically exported from code.google.com/p/picoc
0 stars 0 forks source link

Enhancement: making picoc reentrant #137

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. In some applications and usage scenarios it would be nice if picoc were 
re-entrant. One possibility would be to use PicocInitialize as a 'constructor', 
returning a picoc 'handle', and PicocCleanup as a 'destructor'. The API 
functions would need to have the 'handle' as a parameter (and then global 
variables could be made non-global).

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Version 2.2 from SVN (6th October 2011).

Please provide any additional information below.

Original issue reported on code.google.com by jjohans...@gmail.com on 6 Oct 2011 at 12:16

GoogleCodeExporter commented 8 years ago
Some examples where this may come in handy:

- Running more that one instance of picoc
- Calling picoc recursivly (running scripts in native functions called be 
scripts). See the suggested function 'executeFile' in issue 140. 

Original comment by jjohans...@gmail.com on 9 Oct 2011 at 12:57

GoogleCodeExporter commented 8 years ago
Implemented in revision 581.

Original comment by zik.sale...@gmail.com on 22 Sep 2012 at 5:12