20 extern char **environ;
23 for (
char **env = environ; *env; ++env) {
25 char *equals = strchr(entry,
'=');
27 size_t key_len = equals - entry;
28 char *key = malloc(key_len + 1);
30 memcpy(key, entry, key_len);
int map_set(Value *vm, const char *key, Value v)
Insert or replace a key in the map.
Value make_map_empty(void)
Construct a new empty map Value.
Tagged union representing a Fun value.
Value make_string(const char *s)
Construct a string Value by duplicating the given C string.