21EEL_F *(*nseel_int_register_var)(
compileContext *ctx,
const char *
name,
int isReg,
const char **namePtrOut);
23EEL_F *(*NSEEL_VM_getramptr)(
NSEEL_VMCTX ctx,
unsigned int offs,
int *validAmt);
24void ** (*eel_gmem_attach)(
const char *nm,
bool is_alloc);
34 EEL_F (*onNamedString)(
void *caller_this,
const char *
name));
47#define NSEEL_ADDFUNC_DESTINATION (&g_eel_function_table)
51#define NSEEL_addfunc_retval(name,np,pproc,fptr) \
52 NSEEL_addfunc_ret_type(name,np,1,pproc,(void *)(fptr),NSEEL_ADDFUNC_DESTINATION)
55#define NSEEL_addfunc_retptr(name,np,pproc,fptr) \
56 NSEEL_addfunc_ret_type(name,np,0,pproc,(void *)(fptr),NSEEL_ADDFUNC_DESTINATION)
59#define NSEEL_addfunc_retbool(name,np,pproc,fptr) \
60 NSEEL_addfunc_ret_type(name,np,-1,pproc,(void *)(fptr),NSEEL_ADDFUNC_DESTINATION)
63#define NSEEL_addfunc_varparm(name, min_np, pproc, fptr) \
64 NSEEL_addfunc_varparm_ex(name,min_np,0,pproc,fptr,NSEEL_ADDFUNC_DESTINATION)
67#define NSEEL_addfunc_exparms(name, np, pproc, fptr) \
68 NSEEL_addfunc_varparm_ex(name,np,1,pproc,fptr,NSEEL_ADDFUNC_DESTINATION)
72#define __NS_EELINT_H__
74#define EEL_IMPORT_ALL(IMPORT_FUNC) \
75 IMPORT_FUNC(NSEEL_addfunc_ret_type) \
76 IMPORT_FUNC(NSEEL_addfunc_varparm_ex) \
77 IMPORT_FUNC(NSEEL_VM_free) \
78 IMPORT_FUNC(NSEEL_VM_SetFunctionTable) \
79 IMPORT_FUNC(NSEEL_VM_regvar) \
80 IMPORT_FUNC(NSEEL_VM_SetCustomFuncThis) \
81 IMPORT_FUNC(NSEEL_code_compile_ex) \
82 IMPORT_FUNC(NSEEL_code_getcodeerror) \
83 IMPORT_FUNC(NSEEL_code_execute) \
84 IMPORT_FUNC(NSEEL_code_free) \
85 IMPORT_FUNC(NSEEL_PProc_THIS) \
86 IMPORT_FUNC(NSEEL_PProc_RAM) \
87 IMPORT_FUNC(NSEEL_VM_SetStringFunc) \
88 IMPORT_FUNC(NSEEL_VM_enumallvars) \
89 IMPORT_FUNC(NSEEL_VM_getramptr) \
90 IMPORT_FUNC(NSEEL_VM_SetGRAM) \
91 IMPORT_FUNC(eel_gmem_attach) \
92 IMPORT_FUNC(eel_fft_register) \
93 IMPORT_FUNC(nseel_stringsegments_tobuf) \
94 IMPORT_FUNC(nseel_int_register_var) \
95 IMPORT_FUNC(eel_leavefp) \
96 IMPORT_FUNC(eel_enterfp) \
97 IMPORT_FUNC(NSEEL_VM_set_var_resolver) \
98 IMPORT_FUNC(NSEEL_VM_alloc)
Definition eel_strings.h:122
unsigned s
Definition inflate.c:1555
eel_function_table g_eel_function_table
Definition eel_import.h:46
void(* NSEEL_VM_free)(NSEEL_VMCTX ctx)
Definition eel_import.h:11
void(* eel_leavefp)(int s[2])
Definition eel_import.h:43
void(* NSEEL_VM_SetGRAM)(NSEEL_VMCTX, void **)
Definition eel_import.h:10
void(* NSEEL_VM_set_var_resolver)(NSEEL_VMCTX ctx, EEL_F *(*res)(void *userctx, const char *name), void *userctx)
Definition eel_import.h:17
NSEEL_CODEHANDLE(* NSEEL_code_compile_ex)(NSEEL_VMCTX ctx, const char *code, int lineoffs, int flags)
Definition eel_import.h:16
void(* NSEEL_VM_SetStringFunc)(NSEEL_VMCTX ctx, EEL_F(*onString)(void *caller_this, struct eelStringSegmentRec *list), EEL_F(*onNamedString)(void *caller_this, const char *name))
Definition eel_import.h:32
void(* NSEEL_code_free)(NSEEL_CODEHANDLE code)
Definition eel_import.h:20
void(* NSEEL_code_execute)(NSEEL_CODEHANDLE code)
Definition eel_import.h:19
int(* nseel_stringsegments_tobuf)(char *bufOut, int bufout_sz, struct eelStringSegmentRec *list)
Definition eel_import.h:37
void(* eel_enterfp)(int s[2])
Definition eel_import.h:42
void(* NSEEL_VM_enumallvars)(NSEEL_VMCTX ctx, int(*func)(const char *name, EEL_F *val, void *ctx), void *userctx)
Definition eel_import.h:22
NSEEL_VMCTX(* NSEEL_VM_alloc)()
Definition eel_import.h:9
void(* NSEEL_addfunc_ret_type)(const char *name, int np, int ret_type, NSEEL_PPPROC pproc, void *fptr, eel_function_table *destination)
Definition eel_import.h:5
void(* eel_fft_register)(eel_function_table *)
Definition eel_import.h:25
void(* NSEEL_addfunc_varparm_ex)(const char *name, int min_np, int want_exact, NSEEL_PPPROC pproc, EEL_F(NSEEL_CGEN_CALL *fptr)(void *, INT_PTR, EEL_F **), eel_function_table *destination)
Definition eel_import.h:6
void(* NSEEL_VM_SetFunctionTable)(NSEEL_VMCTX, eel_function_table *tab)
Definition eel_import.h:12
void(* NSEEL_VM_SetCustomFuncThis)(NSEEL_VMCTX ctx, void *thisptr)
Definition eel_import.h:15
static const char * name
Definition pugl.h:1582
int val
Definition jpeglib.h:956
JSAMPIMAGE data
Definition jpeglib.h:945
struct _compileContext compileContext
void *(* NSEEL_PPPROC)(void *data, int data_size, struct _compileContext *userfunc_data)
Definition ns-eel.h:107
#define NSEEL_CGEN_CALL
Definition ns-eel.h:44
void * NSEEL_VMCTX
Definition ns-eel.h:117
void * NSEEL_CODEHANDLE
Definition ns-eel.h:118
Definition ns-eel-int.h:182
Definition eel_import.h:27
const char * str_start
Definition eel_import.h:29
struct eelStringSegmentRec * _next
Definition eel_import.h:28
int str_len
Definition eel_import.h:30
intptr_t INT_PTR
Definition swell-types.h:42
typedef int(UZ_EXP MsgFn)()
#define void
Definition unzip.h:396