group Script Helpers

Description

Various functions for creating, loading and deleting script objects

group attributes
function ferite_new_script() - This will allocate a new script and set it up ready for use.
function ferite_script_load() - Load the text of a script so that it may be compiled.
function ferite_script_clean() - Clean a script structure of all non-error/warning reporting structures
function ferite_script_delete() - Delete a script object - it calls ferite_script_clean() first so you dont need to
function ferite_duplicate_script() - Duplicate a script object

Functions

function ferite_new_script Click to go up to the list
This will allocate a new script and set it up ready for use.
Declaration:
    FeriteScript *ferite_new_script()
Returns:
    A pointer to the script

function ferite_script_load Click to go up to the list
Load the text of a script so that it may be compiled.
Declaration:
    int ferite_script_load( FeriteScript *script, char *filename )
Parameters:
    Parameter #1: FeriteScript *script - The script to load the text into
    Parameter #2: char *filename - The name of the script to load.
Returns:
    Returns 0 on fail and 1 on success

function ferite_script_clean Click to go up to the list
Clean a script structure of all non-error/warning reporting structures
Declaration:
    int ferite_script_clean( FeriteScript *script )
Parameters:
    Parameter #1: FeriteScript *script - A pointer to the script to be cleaned
Returns:
    Returns 0 on fail and 1 on success

function ferite_script_delete Click to go up to the list
Delete a script object - it calls ferite_script_clean() first so you dont need to
Declaration:
    int ferite_script_delete( FeriteScript *script )
Parameters:
    Parameter #1: FeriteScript *script - The script to delete
Returns:
    1 on success, 0 on fail

function ferite_duplicate_script Click to go up to the list
Duplicate a script object
Declaration:
    FeriteScript *ferite_duplicate_script( FeriteScript *script )
Parameters:
    Parameter #1: FeriteScript *script - The script to make a copy of
Returns:
    A brand new script object that can be executed and used as if it had been compiled

Automatically generated at 8:45pm, Wednesday 08 January 2003 by feritedoc.