SE:ISDK C/C++ version 5.01b
wrong doc show me others
ScriptEase ISDK for C/C++
Introduction
Integration Into Your C/C++ Application
Integration on Windows Systems
Integration on Unix Systems
Advanced Integration - Debugging
ScriptEase Types
secontext
sedatatype
sebool
senumber
seobject
sestring
secharptr
seconstcharptr
sechar
secharptrdatum
sememcount
sesmemcount
SE_CALLBACK()
THE CHARACTER ACCESS ROUTINES
Initialization and Contexts
Working with Variables
IDENTIFYING A VARIABLE
LIST OF MEMBER SPECIFIERS
SE_MEM("member name")
SE_UNIMEM(seconstcharptr)
SE_HIDDEN_MEM("member name")
SE_HIDDEN_UNIMEM(seconstcharptr)
SE_COMPOUND_MEM("compound.member.name")
SE_COMPOUND_UNIMEM(seconstcharptr)
SE_NUM(sememcount)
SE_STR(sestring)
SE_INDEX(num)
SE_STRUCT(memdesc)
SE_VALUE
SE_STOCK(string)
SE_FUNCTION_TEXT
SE_FUNCTION_GLOBAL
SE_LIBRARY_DATA
LIST OF STOCK OBJECTS
SE_GLOBAL
SE_ARGS
SE_ACTIVATION
SE_THIS
SE_SCOPE
SE_TEMP
SE_WRAPPER_TEMP
SE_NOWHERE
SE_DEFINES
SE_RETURN
SE_AT_EXIT
SE_FILENAMES
SE_STACK_INFO(depth)
SE_SI_WRAPPER
SE_SI_FUNCTION
SE_SI_FUNCNAME
SE_SI_TRAPPED
SE_SI_GLOBAL
SE_SI_THIS
SE_SI_DATA
SE_SI_FILENAME
SE_SI_LINENUM
SE_SI_ACTIVATION
SE_SI_SCOPECHAIN
SE_SI_DEPTH
SE_SERVICES
SE_SHARED_SERVICES
SE_SELF
EXAMINING VARIABLES
MODIFYING VARIABLES
USING SE_TEMP AND SE_WRAPPER_TEMP
SE_RETURN EXPLAINED
Script Execution Topics
Using seEval
se
TO_INTERPRET, INTERP_TYPE
TEXT_ARGS, STACK_ARGS
FLAGS
SE_NO_INHERIT
SE_NO_LIBRARIES
SE_NEW_GLOBALS
SE_CALL_MAIN
SE_FUNCS_ONLY
SE_EXIT_LEVEL
SE_NEW_DEFINES
SE_NO_OLD_DEFINES
SE_REPORT_ERRORS
SE_INFREQUENT_CONT
SE_START
SE_CONSTRUCTOR
SE_NAMED_PARAMS
SE_INIT_IMPLICIT_THIS
SE_INIT_IMPLICIT_PARENTS
SE_DEFAULT
PARAMS
FUNCTION GLOBALS
SCOPING
CONTINUE FUNCTION
Wrapper functions
Lifetimes
Objects and Classes
API Function List
INITIALIZATION/CONTEXT CREATION
seInitialize
seTerminate
seCreateContext
seCreateBlankContext
seCreateFiber
seGetContextParams
seDestroyContext
seAddLibTable
seGarbageCollect
VARIABLE LOCATING
seVarParse
seGetName
seInternalizeString
seInternalizeStringHidden
seCloneInternalString
seFreeInternalString
seGetInternalString
VARIABLE READING
seGetBool
seGetBoolEx
seGetNumber
seGetNumberEx
seGetPointer
seGetPointerEx
seGetObject
seGetObjectEx
seGetString
seGetStringEx
seFreeObject
seFreeString
seCloneObject
seCloneString
seWeakLockObject
seLockObject
seLockString
seGetType
seExists
seExistsDirect
seGetAttribs
seCompare
OBJECT ACCESS ROUTINES
seObjectMemberCount
seObjectMemberCountDirect
seObjectMemberName
seIsFunc
seIsArray
seSetArray
seShareReadObject
VARIABLE WRITING
sePutBoolEx
sePutNumberEx
sePutPointerEx
sePutObjectEx
sePutStringEx
sePutUndefinedEx
sePutNullEx
seDelete
seMakeObject
seMakeStack
sePutWrapper
seSetCallbacks
seEnableDynamicMethod
seConvert
seSetAttribs
seAssignEx
seThrow
EXECUTING SCRIPTS
The Debugger
SECONTINUEFUNC
THE SIMPLE DEBUGGER
INTEGRATING THE SCRIPTEASE DEBUGGER
THE SCRIPTEASE DEBUGGER PROTOCOL VERSION 1.0
Extlibs
Core Customization Topics
CHARACTER SET CUSTOMIZATIONS
CORE CUSTOMIZATION
JSE_MIN_MEMORY (off for most systems)
JSE_MULTIPLE_GLOBAL (on)
JSE_HASH_SIZE (256)
JSE_ONE_STRING_TABLE (off)
JSE_INFREQUENT_COUNT (5000)
JSE_INTERNAL_PROFILING (off)
JSE_GET_RESOURCE (off)
JSE_SHORT_RESOURCE (off)
JSE_TRAP_NOWHERE (off)
JSE_INLINES (on, off if JSE_MIN_MEMORY is defined)
JSE_PEEPHOLE_OPTIMIZER (on)
JSE_CACHE_GLOBAL_VARS (on)
JSE_GLOBAL_CACHE_SIZE (10)
JSE_COMPACT_LIBFUNCS (off)
JSE_ALIGN_DATA (off)
JSE_REFCOUNT (off)
JSE_GC (on)
SE_OBJ_POOL_SIZE (1024, 128 if JSE_MIN_MEMORY is on)
SE_MEM_POOL_SIZE (1024, 128 if JSE_MIN_MEMORY is on)
SE_STRING_POOL_SIZE (512, 64 if JSE_MIN_MEMORY is on)
JSE_STRINGS_COLLECT (1000000, 100000 if JSE_MIN_MEMORY is on)
JSE_PACK_OBJECTS (off, on is JSE_MIN_MEMORY is on)
JSE_PACK_SECODES (off, on if JSE_MIN_MEMORY is on)
JSE_POOL_STRINGDATA (on, off if JSE_MIN_MEMORY is on)
JSE_PER_OBJECT_CACHE (on, off if JSE_MIN_MEMORY is on)
JSE_PER_OBJECT_MISS_CACHE (on, off if JSE_MIN_MEMORY is on)
SE_APISTRING_POOL_SIZE (5)
SE_APIVARNAME_POOL_SIZE (5)
SE_STACK_SIZE (2048, 512 if JSE_MIN_MEMORY is on)
SE_MAX_STACK_INFO_DEPTH (64)
FEATURE CUSTOMIZATION
JSE_COMPILER (on)
JSE_TOOLKIT_APPSOURCE (on)
JSE_SAVE_FUNCTION_TEXT (on, off if JSE_MIN_MEMORY is on or JSE_COMPILER is off)
JSE_PROTOTYPES (on)
JSE_ALWAYS_IMPLICIT_THIS (off)
JSE_ALWAYS_IMPLICIT_PARENTS (off)
JSE_FUNCTION_ARGUMENTS (on)
JSE_AUTO_OBJECT (off)
JSE_REGEXP_LITERALS (on)
JSE_FUNCTION_LENGTHS (on)
JSE_HTML_COMMENT_STYLE (off)
SE_ECMA_RETURNS (on)
SCRIPTEASE FEATURE CUSTOMIZATION
JSE_TOKENSRC (on)
JSE_TOKENDST (on)
JSE_DYNAMIC_CALLBACKS (on)
JSE_OPERATOR_OVERLOADING (on)
JSE_ENABLE_DYNAMETH (off)
JSE_GETFILENAMELIST (off)
JSE_BREAKPOINT_TEST (off)
JSE_TASK_SCHEDULER (on)
JSE_LINK (on)
JSE_INCLUDE (on)
JSE_DEFINE (on)
JSE_CONDITIONAL_COMPILE (on)
JSE_SECUREJSE (on)
JSE_NUMTOSTRING_ROUNDING (on)
JSE_MAIN_ARGC_ARGV (on)
JSE_TOSOURCE (on)
JSE_NAMED_PARAMS (on)
JSE_TIMEZONE_GLOBAL (off)
JSE_TOLOCALEDATE_FUNCTION (off)
JSE_MILLENIUM (off)
JSE_NO_AUTO_INIT (off)
JSE_BROWSEROBJECTS (off)
JSE_THREADSAFE_POSIX_CRTL (off)
JSE_PREEMPTIVE_THREADS (on)
DEBUGGING CUSTOMIZATION
NDEBUG
JSE_MEM_DEBUG (on if NDEBUG not defined)
JSE_SLOW_MEM_ALLOC (off)
JSE_ENFORCE_MEMCHECK (on)
JSE_TRACK_MEMUSE (off)
JSE_TRACK_OBJECT_USE (off)
JSE_NEVER_FREE (off)
JSE_DONT_POOL (off)
JSE_ALWAYS_COLLECT (off)
JSE_PSEUDO_PALMOS (off)
FLOATING POINT CUSTOMIZATION
MEMORY EXTENSIONS
Fibers and Threads
ScriptEase JavaScript
Basics of ScriptEase
Identifiers
Prohibited identifiers
Identifiers to avoid
Variables
Variable scope
Function identifier
Function scope
Data types
Automatic type conversion
Properties and methods of basic data types
Operators
Object operator
Mathematical operators
Bit operators
Logical operators and conditional expressions
Concatenation operator
delete operator
in operator
instanceof operator
typeof operator
Flow decisions statements
if
else
while
do {...} while
for
break
continue
switch, case, and default
goto and labels
Conditional operator
Exception handling
Functions
Function return statement
Passing information to functions
Simulated named parameters
Function property arguments[]
Function recursion
Error checking for functions
main() function
Objects
ScriptEase versus C language
Data types in C and SE
Automatic type declaration
Array representation
Automatic array allocation
Automatic and JavaScript Arrays
Literal strings
Literal strings and assignments
Literal strings and comparisons
Literal strings and parameters
Literal strings and returns
Literal Strings and switch statements
Structures
Passing variables by reference
Pointer operator * and address operator &
Case statements
Initialization code which is external to functions
Unnecessary tokens
Macros
Token replacement macros
Back quote strings
Converting existing C code to ScriptEase
Security
Internal Objects
Global object
Conversion or casting
global object methods/functions
global.defined()
global.escape()
global.eval()
global.isFinite()
global.isNaN()
global.getArrayLength()
global.getAttributes()
global.parseFloat()
global.parseInt()
global.setArrayLength()
global.setAttributes()
global.ToBoolean()
global.ToBuffer()
global.ToBytes()
global.ToInt32()
global.ToInteger()
global.ToNumber()
global.ToObject()
global.ToPrimitive
global.ToSource()
global.ToString()
global.ToUint16()
global.ToUint32()
global.unescape()
global.undefine()
Array object
Blob Object
Boolean Object
Buffer Object
Buffer object instance properties
Buffer object instance methods
Buffer()
Buffer getString()
Buffer compare()
Buffer equal()
Buffer getValue()
Buffer putString()
Buffer putValue()
Buffer subBuffer()
Buffer toString()
Buffer object static methods
Clib Object
Console I/O functions
Clib.printf()
Clib.getch()
Clib.getchar()
Clib.getche()
Clib.gets()
Clib.kbhit()
Clib.putchar()
Clib.puts()
Clib.scanf()
Clib.vprintf()
Clib.vscanf()
Time functions
Clib.asctime()
Clib.clock()
Clib.ctime()
Clib.difftime()
Clib.gmtime()
Clib.localtime()
Clib.mktime()
Clib.strftime()
Clib.time()
Script execution
Error
File I/O
Clib.fopen()
Clib.fclose()
Clib.feof()
Clib.fflush()
Clib.fgetc()
Clib.fgetpos()
Clib.fgets()
Clib.fprintf()
Clib.fputc()
Clib.fputs()
Clib.fread()
Clib.freopen()
Clib.fscanf()
Clib.fseek()
Clib.fsetpos()
Clib.ftell()
Clib.fwrite()
Clib.getc()
Clib.putc()
Clib.remove()
Clib.rename()
Clib.rewind()
Clib.tmpfile()
Clib.tmpnam()
Clib.ungetc()
Directory
Sorting
Environment variables
Character classification
Clib.isalnum()
Clib.isalpha()
Clib.isascii()
Clib.iscntrl()
Clib.isdigit()
Clib.isgraph()
Clib.islower()
Clib.isprint()
Clib.ispunct()
Clib.isspace()
Clib.isupper()
Clib.isxdigit()
String manipulation
Clib.rsprintf()
Clib.rvsprintf()
Clib.sscanf()
Clib.sprintf()
Clib.strcat()
Clib.strchr()
Clib.strcmp()
Clib.strcmpi()
Clib.strcpy()
Clib.strcspn()
Clib.stricmp()
Clib.strlen()
Clib.strlwr()
Clib.strncat()
Clib.strncmp()
Clib.strncmpi()
Clib.strncpy()
Clib.strnicmp()
Clib.strpbrk()
Clib.strrchr()
Clib.strspn()
Clib.strstr()
Clib.strstri()
Clib.strtod()
Clib.strtok()
Clib.strtol()
Clib.strupr()
Clib.toascii()
Clib.tolower()
Clib.toupper()
Clib.vsprintf()
Memory manipulation
Math
Clib.abs()
Clib.acos()
Clib.asin()
Clib.atan()
Clib.atan2()
Clib.atof()
Clib.atoi()
Clib.atol()
Clib.ceil()
Clib.cos()
Clib.cosh()
Clib.div()
Clib.exp()
Clib.fabs()
Clib.floor()
Clib.fmod()
Clib.frexp()
Clib.labs()
Clib.ldexp()
Clib.ldiv()
Clib.log()
Clib.log10()
Clib.max()
Clib.min()
Clib.modf()
Clib.pow()
Clib.rand()
Clib.sin()
Clib.sinh()
Clib.sqrt()
Clib.srand()
Clib.tan()
Clib.tanh()
Variable argument lists
Date Object
Date object instance methods
Date()
Date getDate()
Date getDay()
Date getFullYear()
Date getHours()
Date getMilliseconds()
Date getMinutes()
Date getMonth()
Date getSeconds()
Date getTime()
Date getTimezoneOffset()
Date getUTCDate()
Date getUTCDay()
Date getUTCFullYear()
Date getUTCHours()
Date getUTCMilliseconds()
Date getUTCMinutes()
Date getUTCMonth()
Date getUTCSeconds()
Date getYear()
Date setDate()
Date setFullYear()
Date setHours()
Date setMilliseconds()
Date setMinutes()
Date setMonth()
Date setSeconds()
Date setTime()
Date setUTCDate()
Date setUTCFullYear()
Date setUTCHours()
Date setUTCMilliseconds()
Date setUTCMinutes()
Date setUTCMonth()
Date setUTCSeconds()
Date setYear()
Date toDateString()
Date toGMTString()
Date toLocaleDateString()
Date toLocaleString()
Date toLocaleTimeString()
Date toString()
Date toSystem()
Date toTimeString()
Date toUTCString()
Date valueOf()
Date object static methods
Dos Object
Function Object
Math Object
Number Object
Object Object
RegExp Object
Regular expression syntax
Regular expression special characters
Regular expression summary
Regular expression repetition characters
Regular expression character classes
Regular expression anchor characters
Regular expression reference characters
Regular expression escape sequences
Regular expression replacement characters
Regular expression precedence
RegExp object instance properties
RegExp returned array properties
RegExp object instance methods
RegExp object static properties
SElib Object
SElib object static methods
SElib.baseWindowFunction()
SElib.bound()
SElib.breakWindow()
SElib.compileScript()
SElib.directory()
SElib.doWindows()
SElib.fullpath()
SElib.getObjectProperties()
SElib.inSecurity()
SElib.instance()
SElib.interpret()
SElib.interpretInNewThread()
SElib.makeWindow()
SElib.messageFilter()
SElib.multiTask()
SElib.peek()
SElib.pointer()
SElib.poke()
SElib.ShellFilterCharacter()
SElib.ShellFilterCommand()
SElib.spawn()
SElib.splitFilename()
SElib.subclassWindow()
SElib.suspend()
SElib.version()
SElib.windowList()
SElib.dynamicLink()
String Object
String as data type
String as object
String object instance properties
String object instance methods
String()
String charAt()
String charCodeAt()
String concat()
String indexOf()
String lastIndexOf()
String localeCompare()
String match()
String replace()
String search()
String slice()
String split()
String substr()
String substring()
String toLocaleLowerCase()
String toLocaleUpperCase()
String toLowerCase()
String toUpperCase()
String object static methods
Unix Object
Link Libraries
COM Object Link Library
DSP Link Library
DSP Object
Creating a DSP object
Using a DSP object
DSP object instance methods
DSP()
DSP dspCloseConnection()
DSP dspReceive()
DSP dspSend()
DSP dspLoad()
DSP dspService()
DSP dspClose()
DSP dspGetValue()
DSP dspSecurityInit()
DSP dspSecurityTerm()
DSP dspSecurityGuard()
DSP object static properties
GD Link Library
GD Object
GD object instance methods
GD()
GD arc()
GD blue()
GD boundsSafe(
GD drawChar()
GD charUp()
GD colorAllocate()
GD colorClosest()
GD colorDeallocate()
GD colorExact()
GD colorsTotal()
GD colorTransparent()
GD copy()
GD copyResized()
GD dashedLine()
GD destroy()
GD fill()
GD filledPolygon()
GD filledRectangle()
GD fillToBorder()
GD getInterlaced()
GD getPixel()
GD getTransparent()
GD green()
GD height()
GD interlace()
GD line()
GD polygon()
GD rectangle()
GD red()
GD setBrush()
GD setPixel()
GD setStyle()
GD setTile()
GD string()
GD stringUp()
GD toGd()
GD toGif()
GD width()
GD object static methods
MD5 Checksum Link Library
SEDBC Link Library
Cursor object
Cursor Instance Properties
Cursor Instance Methods
Cursor close()
Cursor columnName()
Cursor columns()
Cursor deleteRow()
Cursor first()
Cursor insertRow()
Cursor last()
Cursor next()
Cursor previous()
Cursor reload()
Cursor updateRow()
Database Object
Database transactions
Database beginTransaction()
Database commitTransaction()
Database connect()
Database connected()
Database cursor()
Database disconnect()
Database execute()
Database majorErrorCode()
Database majorErrorMessage()
Database minorErrorCode()
Database minorErrorMessage()
Database procedureName()
Database procedures()
Database rollbackTransaction()
Database storedProc()
Database table()
Database tableName()
Database tables()
SimpleDataset object
SimpleDataset instance methods
SimpleDataset()
SimpleDataset close()
SimpleDataset currentRecord()
SimpleDataset nextRecord()
SimpleDataset prevRecord()
SimpleDataset firstRecord()
SimpleDataset lastRecord()
SimpleDataset find() with template
SimpleDataset find() with clause
SimpleDataset findAll()
SimpleDataset findDistinct()
SimpleDataset addRecord()
SimpleDataset deleteRecord()
SimpleDataset deleteAll()
SimpleDataset replaceRecord()
SimpleDataset cursor()
SimpleDataset getLastErrorCode()
SimpleDataset getLastError()
SimpleDataset static properties
Stproc object
Stproc instance properties
Stproc instance methods
Socket Link Library
Socket object
Socket object instance methods
Socket() with hostname
Socket() with port
Socket accept()
Socket blocking()
Socket close()
Socket linger()
Socket read()
Socket ready()
Socket remoteHost()
Socket write()
Socket object static methods
UUCode Link Library
Productivity Tools
Appendices
Appendix 1: Standard Libraries
BUFFER (#define JSE_BUFFER_ALL)
CLIB (#define JSE_CLIB_ALL)
CSTRING (#define JSE_CSTRING_ALL)
DOS (#define JSE_DOS_ALL)
DSP (#define JSE_DSP_ALL)
ECMA (#define JSE_ECMA_ALL)
GD (#define JSE_GD_ALL)
IDSP (#define JSE_IDSP_ALL)
LANG (#define JSE_LANG_ALL)
MAC (#define JSE_MAC_ALL)
MD5 (#define JSE_MD5_ALL)
NLM (#define JSE_NLM_ALL)
OS2 (#define JSE_OS2_ALL)
SELIB (#define JSE_SELIB_ALL)
SESOCK (#define JSE_SOCKET_ALL)
TEST (#define JSE_TEST_ALL)
UNIX (#define JSE_UNIX_ALL)
UUCODE (#define JSE_UUCODE_ALL)
WIN (#define JSE_WIN_ALL)
Appendix 2: Using Wrapper.jse
Appendix A: Grouped Functions
Routines for arrays
Routines for Buffers
Routines for character classification
Routines for console I/O
Routines for conversion/casting
Routines for data/variables
Routines for date/time
Routines for diagnostic/error
Routines for directory, file, and OS
Routines for DOS
Routines for execution control
Routines for file/stream I/O
Routines for general use
Routines for math
Routines for memory manipulation
Routines for miscellaneous
Routines for objects and functions
Routines for regular expressions
Routines for strings/byte arrays
Routines for variable argument lists
Routines for UNIX
Appendix B: Instance and Static Notation