Code::Blocks
SVN r11506
|
#include "sqpcheader.h"
#include "sqvm.h"
#include "sqstring.h"
#include "sqtable.h"
#include "sqarray.h"
#include "sqfuncproto.h"
#include "sqclosure.h"
#include "sqclass.h"
#include <stdlib.h>
#include <stdarg.h>
#include <ctype.h>
Go to the source code of this file.
Macros | |
#define | STRING_TOFUNCZ(func) |
Functions | |
bool | str2num (const SQChar *s, SQObjectPtr &res) |
static SQInteger | base_dummy (HSQUIRRELVM) |
static SQInteger | base_collectgarbage (HSQUIRRELVM v) |
static SQInteger | base_getroottable (HSQUIRRELVM v) |
static SQInteger | base_getconsttable (HSQUIRRELVM v) |
static SQInteger | base_setroottable (HSQUIRRELVM v) |
static SQInteger | base_setconsttable (HSQUIRRELVM v) |
static SQInteger | base_seterrorhandler (HSQUIRRELVM v) |
static SQInteger | base_setdebughook (HSQUIRRELVM v) |
static SQInteger | base_enabledebuginfo (HSQUIRRELVM v) |
static SQInteger | base_getstackinfos (HSQUIRRELVM v) |
static SQInteger | base_assert (HSQUIRRELVM v) |
static SQInteger | get_slice_params (HSQUIRRELVM v, SQInteger &sidx, SQInteger &eidx, SQObjectPtr &o) |
static SQInteger | base_print (HSQUIRRELVM v) |
static SQInteger | base_compilestring (HSQUIRRELVM v) |
static SQInteger | base_newthread (HSQUIRRELVM v) |
static SQInteger | base_suspend (HSQUIRRELVM v) |
static SQInteger | base_array (HSQUIRRELVM v) |
static SQInteger | base_type (HSQUIRRELVM v) |
void | sq_base_register (HSQUIRRELVM v) |
static SQInteger | default_delegate_len (HSQUIRRELVM v) |
static SQInteger | default_delegate_tofloat (HSQUIRRELVM v) |
static SQInteger | default_delegate_tointeger (HSQUIRRELVM v) |
static SQInteger | default_delegate_tostring (HSQUIRRELVM v) |
static SQInteger | obj_delegate_weakref (HSQUIRRELVM v) |
static SQInteger | obj_clear (HSQUIRRELVM v) |
static SQInteger | number_delegate_tochar (HSQUIRRELVM v) |
static SQInteger | table_rawdelete (HSQUIRRELVM v) |
static SQInteger | container_rawexists (HSQUIRRELVM v) |
static SQInteger | table_rawset (HSQUIRRELVM v) |
static SQInteger | table_rawget (HSQUIRRELVM v) |
static SQInteger | array_append (HSQUIRRELVM v) |
static SQInteger | array_extend (HSQUIRRELVM v) |
static SQInteger | array_reverse (HSQUIRRELVM v) |
static SQInteger | array_pop (HSQUIRRELVM v) |
static SQInteger | array_top (HSQUIRRELVM v) |
static SQInteger | array_insert (HSQUIRRELVM v) |
static SQInteger | array_remove (HSQUIRRELVM v) |
static SQInteger | array_resize (HSQUIRRELVM v) |
bool | _sort_compare (HSQUIRRELVM v, SQObjectPtr &a, SQObjectPtr &b, SQInteger func, SQInteger &ret) |
bool | _hsort_sift_down (HSQUIRRELVM v, SQArray *arr, int root, int bottom, SQInteger func) |
bool | _hsort (HSQUIRRELVM v, SQObjectPtr &arr, SQInteger l, SQInteger r, SQInteger func) |
static SQInteger | array_sort (HSQUIRRELVM v) |
static SQInteger | array_slice (HSQUIRRELVM v) |
static SQInteger | string_slice (HSQUIRRELVM v) |
static SQInteger | string_find (HSQUIRRELVM v) |
static SQInteger | closure_pcall (HSQUIRRELVM v) |
static SQInteger | closure_call (HSQUIRRELVM v) |
static SQInteger | _closure_acall (HSQUIRRELVM v, SQBool raiseerror) |
static SQInteger | closure_acall (HSQUIRRELVM v) |
static SQInteger | closure_pacall (HSQUIRRELVM v) |
static SQInteger | closure_bindenv (HSQUIRRELVM v) |
static SQInteger | closure_getinfos (HSQUIRRELVM v) |
static SQInteger | generator_getstatus (HSQUIRRELVM v) |
static SQInteger | thread_call (HSQUIRRELVM v) |
static SQInteger | thread_wakeup (HSQUIRRELVM v) |
static SQInteger | thread_getstatus (HSQUIRRELVM v) |
static SQInteger | class_getattributes (HSQUIRRELVM v) |
static SQInteger | class_setattributes (HSQUIRRELVM v) |
static SQInteger | class_instance (HSQUIRRELVM v) |
static SQInteger | instance_getclass (HSQUIRRELVM v) |
static SQInteger | weakref_ref (HSQUIRRELVM v) |
Variables | |
static SQRegFunction | base_funcs [] |
#define STRING_TOFUNCZ | ( | func | ) |
Definition at line 642 of file sqbaselib.cpp.
|
static |
Definition at line 691 of file sqbaselib.cpp.
References sq_call().
Referenced by closure_acall(), and closure_pacall().
bool _hsort | ( | HSQUIRRELVM | v, |
SQObjectPtr & | arr, | ||
SQInteger | l, | ||
SQInteger | r, | ||
SQInteger | func | ||
) |
Definition at line 538 of file sqbaselib.cpp.
References _hsort_sift_down().
Referenced by array_sort().
bool _hsort_sift_down | ( | HSQUIRRELVM | v, |
SQArray * | arr, | ||
int | root, | ||
int | bottom, | ||
SQInteger | func | ||
) |
bool _sort_compare | ( | HSQUIRRELVM | v, |
SQObjectPtr & | a, | ||
SQObjectPtr & | b, | ||
SQInteger | func, | ||
SQInteger & | ret | ||
) |
Definition at line 477 of file sqbaselib.cpp.
References sq_call(), sq_getinteger(), sq_gettop(), sq_push(), sq_pushroottable(), and sq_settop().
Referenced by _hsort_sift_down().
|
static |
Definition at line 407 of file sqbaselib.cpp.
References sq_arrayappend().
Referenced by array_slice().
|
static |
Definition at line 412 of file sqbaselib.cpp.
Referenced by array_slice().
|
static |
Definition at line 438 of file sqbaselib.cpp.
References sq_throwerror().
Referenced by array_slice().
|
static |
Definition at line 423 of file sqbaselib.cpp.
References sq_arraypop().
Referenced by array_slice().
|
static |
Definition at line 448 of file sqbaselib.cpp.
References sq_throwerror().
Referenced by array_slice().
|
static |
Definition at line 462 of file sqbaselib.cpp.
References sq_gettop(), and sq_throwerror().
Referenced by array_slice().
|
static |
Definition at line 418 of file sqbaselib.cpp.
References sq_arrayreverse().
Referenced by array_slice().
|
static |
Definition at line 568 of file sqbaselib.cpp.
References array_append(), array_extend(), array_insert(), array_pop(), array_remove(), array_resize(), array_reverse(), array_sort(), array_top(), default_delegate_len(), default_delegate_tostring(), get_slice_params(), NULL, obj_clear(), obj_delegate_weakref(), and sq_throwerror().
|
static |
Definition at line 555 of file sqbaselib.cpp.
References _hsort(), and sq_gettop().
Referenced by array_slice().
|
static |
Definition at line 428 of file sqbaselib.cpp.
References sq_throwerror().
Referenced by array_slice().
|
static |
Definition at line 204 of file sqbaselib.cpp.
References sq_gettop().
|
static |
Definition at line 135 of file sqbaselib.cpp.
References sq_throwerror().
|
static |
Definition at line 40 of file sqbaselib.cpp.
References sq_collectgarbage(), and sq_pushinteger().
|
static |
Definition at line 174 of file sqbaselib.cpp.
References NULL, sq_compilebuffer(), sq_getsize(), sq_getstring(), and sq_gettop().
|
static |
Definition at line 34 of file sqbaselib.cpp.
|
static |
Definition at line 88 of file sqbaselib.cpp.
References sq_enabledebuginfo().
|
static |
Definition at line 53 of file sqbaselib.cpp.
|
static |
Definition at line 47 of file sqbaselib.cpp.
|
static |
Definition at line 95 of file sqbaselib.cpp.
References NULL, sq_getinteger(), sq_getlocal(), sq_newtable(), sq_pop(), sq_push(), sq_pushinteger(), sq_pushstring(), and sq_stackinfos().
|
static |
Definition at line 190 of file sqbaselib.cpp.
References sq_move(), and sq_newthread().
|
static |
Definition at line 165 of file sqbaselib.cpp.
References sq_getstring(), and sq_tostring().
|
static |
Definition at line 68 of file sqbaselib.cpp.
References sq_setconsttable().
|
static |
Definition at line 82 of file sqbaselib.cpp.
References sq_setdebughook().
|
static |
Definition at line 76 of file sqbaselib.cpp.
References sq_seterrorhandler().
|
static |
Definition at line 60 of file sqbaselib.cpp.
References sq_setroottable().
|
static |
Definition at line 199 of file sqbaselib.cpp.
References sq_suspendvm().
|
static |
Definition at line 219 of file sqbaselib.cpp.
References GetTypeName().
|
static |
Definition at line 873 of file sqbaselib.cpp.
References sq_getattributes().
Referenced by class_instance().
|
static |
Definition at line 887 of file sqbaselib.cpp.
References class_getattributes(), class_setattributes(), container_rawexists(), default_delegate_tostring(), NULL, obj_delegate_weakref(), and sq_createinstance().
|
static |
Definition at line 880 of file sqbaselib.cpp.
References sq_setattributes().
Referenced by class_instance().
|
static |
Definition at line 700 of file sqbaselib.cpp.
References _closure_acall().
Referenced by closure_getinfos().
|
static |
Definition at line 710 of file sqbaselib.cpp.
References sq_bindenv().
Referenced by closure_getinfos().
|
static |
Definition at line 686 of file sqbaselib.cpp.
References sq_call(), and sq_gettop().
Referenced by closure_getinfos().
|
static |
Definition at line 717 of file sqbaselib.cpp.
References closure_acall(), closure_bindenv(), closure_call(), closure_pacall(), closure_pcall(), default_delegate_tostring(), NULL, and obj_delegate_weakref().
|
static |
Definition at line 705 of file sqbaselib.cpp.
References _closure_acall().
Referenced by closure_getinfos().
|
static |
Definition at line 681 of file sqbaselib.cpp.
References sq_call(), and sq_gettop().
Referenced by closure_getinfos().
|
static |
Definition at line 371 of file sqbaselib.cpp.
References sq_pushbool(), and sq_rawget().
Referenced by class_instance(), instance_getclass(), and table_rawget().
|
static |
Definition at line 277 of file sqbaselib.cpp.
References sq_getsize().
Referenced by array_slice(), and table_rawget().
|
static |
Definition at line 283 of file sqbaselib.cpp.
References _null_, sq_throwerror(), and str2num().
|
static |
Definition at line 308 of file sqbaselib.cpp.
References _null_, sq_throwerror(), and str2num().
|
static |
Definition at line 333 of file sqbaselib.cpp.
References sq_tostring().
Referenced by array_slice(), class_instance(), closure_getinfos(), generator_getstatus(), instance_getclass(), table_rawget(), thread_getstatus(), and weakref_ref().
|
static |
Definition at line 769 of file sqbaselib.cpp.
References default_delegate_tostring(), NULL, and obj_delegate_weakref().
|
static |
Definition at line 143 of file sqbaselib.cpp.
References sq_getsize(), and sq_gettop().
Referenced by array_slice(), and string_slice().
|
static |
Definition at line 904 of file sqbaselib.cpp.
References container_rawexists(), default_delegate_tostring(), NULL, obj_delegate_weakref(), and sq_getclass().
|
static |
Definition at line 351 of file sqbaselib.cpp.
|
static |
Definition at line 345 of file sqbaselib.cpp.
References sq_clear().
Referenced by array_slice(), and table_rawget().
|
static |
Definition at line 339 of file sqbaselib.cpp.
References sq_weakref().
Referenced by array_slice(), class_instance(), closure_getinfos(), generator_getstatus(), instance_getclass(), table_rawget(), thread_getstatus(), and weakref_ref().
void sq_base_register | ( | HSQUIRRELVM | v | ) |
Definition at line 250 of file sqbaselib.cpp.
References base_funcs, sq_newclosure(), sq_pop(), sq_pushinteger(), sq_pushroottable(), sq_pushstring(), sq_setnativeclosurename(), and sq_setparamscheck().
bool str2num | ( | const SQChar * | s, |
SQObjectPtr & | res | ||
) |
Definition at line 16 of file sqbaselib.cpp.
Referenced by default_delegate_tofloat(), and default_delegate_tointeger().
|
static |
Definition at line 624 of file sqbaselib.cpp.
References sq_getinteger(), sq_getsize(), sq_getstring(), sq_gettop(), sq_pushinteger(), and sq_throwerror().
|
static |
Definition at line 610 of file sqbaselib.cpp.
References get_slice_params(), and sq_throwerror().
|
static |
Definition at line 363 of file sqbaselib.cpp.
References sq_rawdeleteslot().
Referenced by table_rawget().
|
static |
Definition at line 387 of file sqbaselib.cpp.
References container_rawexists(), default_delegate_len(), default_delegate_tostring(), NULL, obj_clear(), obj_delegate_weakref(), sq_rawget(), table_rawdelete(), and table_rawset().
|
static |
|
static |
Definition at line 789 of file sqbaselib.cpp.
References sq_call(), sq_gettop(), sq_move(), sq_pop(), and sq_throwerror().
Referenced by thread_getstatus().
|
static |
Definition at line 845 of file sqbaselib.cpp.
References default_delegate_tostring(), NULL, obj_delegate_weakref(), sq_getvmstate(), sq_pushstring(), sq_throwerror(), thread_call(), and thread_wakeup().
|
static |
Definition at line 809 of file sqbaselib.cpp.
References sq_gettop(), sq_getvmstate(), sq_move(), sq_pop(), sq_settop(), sq_throwerror(), and sq_wakeupvm().
Referenced by thread_getstatus().
|
static |
Definition at line 919 of file sqbaselib.cpp.
References default_delegate_tostring(), NULL, obj_delegate_weakref(), and sq_getweakrefval().
|
static |
Definition at line 226 of file sqbaselib.cpp.
Referenced by sq_base_register().