diff options
author | chai <chaifix@163.com> | 2018-06-03 09:51:47 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-06-03 09:51:47 +0800 |
commit | 24cce4c24a155b726dc3b2c120defef6a94638fa (patch) | |
tree | f758703a407c2dbd0c34a59aa336849285d175ca /lls | |
parent | 6a4f1a224273118a5429094ddd83420b7d69b28d (diff) |
更新示例
Diffstat (limited to 'lls')
-rw-r--r-- | lls/lls.c | 5 | ||||
-rw-r--r-- | lls/lls.h | 14 |
2 files changed, 8 insertions, 11 deletions
@@ -37,8 +37,7 @@ typedef struct void* operant; } lls_Ins; - -int lls_bindfunction(lls_Context* C, const char* fname, lls_Func func) +int lls_bindfunction(lls_Env* env, const char* fname, lls_Func func) { -} +}
\ No newline at end of file @@ -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 |