[Home] [ToC] [Up] [Prev] [Next]
The language scripting services provide control of a language modules applet and document scripting (or data type handling) implementation.
void*
(This is an opaque
type that is defined by the language's internal
implementation.)
This type encapsulates the language module's information about a single piece of code that is in one of its environments. This may include such things as the symbol table it is executing in, current status, and the compiled code itself.
IHEmbeddedInfo*
AllocEmbedded(IHEmbeddedInfo* ei)
(IHEmbeddedInfo*)
ei
(IHEmbeddedInfo*)
The same
embedded object that was handed in, or NULL if there was an
error.
Add the given embedded object to its
environment. This
may involve, for example, compiling the code and creating a new
symbol table for it; this program state information can be kept by
allocating an IHCodeInfo structure at this point, and assigning
it to the code.code
field of the
IHEmbeddedInfo.
IHModuleInfo* AllocModule(IHModuleInfo*
mi)
(IHModuleInfo*)
mi
(IHModuleInfo*)
The same
module that was handed in, or NULL if there was an error.
Add the given module to its environment. This
may involve, for example, compiling the code and creating a new
symbol table for it; this program state information can be kept by
allocating an IHCodeInfo structure at this point, and assigning
it to the code.code
field of the IHModuleInfo. Be
sure to check the program
field, as this function
is called
for both "real" modules, and the module representing the main
document program.
void FreeEmbedded(IHEmbeddedInfo*
ei)
(IHEmbeddedInfo*)
ei
Remove the given embedded object from its environment, and deallocate any IHCodeInfo resources associated with it.
void FreeModule(IHModuleInfo* mi)
(IHModuleInfo*)
mi
Remove the given module from its environment, and deallocate any IHCodeInfo resources associated with it.
void StartEmbedded(IHEmbeddedInfo*
ei)
(IHEmbeddedInfo*)
ei
Start execution of the given embedded object. This is called after the language environment it is in has been started.
void StopEmbedded(IHEmbeddedInfo*
ei)
(IHEmbeddedInfo*)
ei
Stop execution of the given embedded object. The language should be prepared to have this function called even if the object isn't currently executing.
[Home] [ToC] [Up] [Prev] [Next]
Dianne Kyra Hackborn <hackbod@angryredplanet.com> | Last modified: Tue Oct 8 04:47:45 PDT 1996 |