summaryrefslogtreecommitdiff
path: root/lls
diff options
context:
space:
mode:
Diffstat (limited to 'lls')
-rw-r--r--lls/lls.c5
-rw-r--r--lls/lls.h14
2 files changed, 8 insertions, 11 deletions
diff --git a/lls/lls.c b/lls/lls.c
index 927382d..81d54a7 100644
--- a/lls/lls.c
+++ b/lls/lls.c
@@ -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
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