diff options
author | kartofen <mladenovnasko0@gmail.com> | 2024-08-25 12:30:48 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2024-08-25 12:30:48 +0300 |
commit | 54f071ac7d47ef515a3f6a4db9e83f2f9aca3c8c (patch) | |
tree | 63e9958c5961f32d191c580f6960b6f9eba02f20 /src/env.h | |
parent | df95e5bfca1c5e723b39f25f32401db8f9ebf6fe (diff) |
lambda nearly done
Diffstat (limited to 'src/env.h')
-rw-r--r-- | src/env.h | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -2,14 +2,14 @@ #define ENV_H // #include "value.h" -typedef struct value * value_t; +typedef struct value * _value_t; #include "hashtable.h" typedef struct symbol_table *env_t; #define ENV_EMPTY NULL -typedef void (*env_destroy_func)(char *key, value_t value); +typedef void (*env_destroy_func)(char *key, _value_t value); struct symbol_table { hashtable_t table; @@ -21,10 +21,8 @@ struct symbol_table { }; env_t env_create(env_t parent, env_destroy_func destroy_func); +env_t env_copy(env_t env); void env_destroy(env_t env); -int env_insert(env_t env, value_t key, value_t data); -int env_query (env_t env, value_t key, value_t *data); -int env_delete(env_t env, value_t key); #endif |