From 24cce4c24a155b726dc3b2c120defef6a94638fa Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 3 Jun 2018 09:51:47 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lls/lls.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'lls/lls.h') diff --git a/lls/lls.h b/lls/lls.h index 7157070..72d0ac5 100644 --- a/lls/lls.h +++ b/lls/lls.h @@ -13,17 +13,15 @@ typedef struct { int top; lls_FuncMap* funcMap; -} lls_Context; +} lls_Env; -lls_Context* lls_newcontext(); +lls_Env* lls_newenv(); -int lls_bindfunction(lls_Context* C, const char* fname, lls_Func func); -int lls_bindvariable(lls_Context* C, const char* vname, void* variable); +int lls_bindfunction(lls_Env* env, const char* fname, lls_Func func); +int lls_bindvariable(lls_Env* env, const char* vname, void* variable); int lls_bindset(); -int lls_executefile(lls_Context* C, const char* file); -int lls_executesource(lls_Context* C, const void* buffer, int size); - - +int lls_executefile(lls_Env* env, const char* file); +int lls_executesource(lls_Env* env, const void* buffer, int size); #endif \ No newline at end of file -- cgit v1.1-26-g67d0