Fun 0.41.5
The programming language that makes You have fun
Loading...
Searching...
No Matches
env_all.c File Reference

Implements OP_ENV_ALL to read the full environment into a map. More...

Go to the source code of this file.

Functions

 if (environ)
 push_value (vm, m)

Variables

case OP_ENV_ALL
Value m = make_map_empty()
 break

Detailed Description

Implements OP_ENV_ALL to read the full environment into a map.

Behavior:

  • Pushes a new map where each key is an environment variable and each value is its string value.
  • Keys and values are copied; the caller owns the returned map Value.

Definition in file env_all.c.

Function Documentation

◆ if()

if(environ)

Definition at line 22 of file env_all.c.

Here is the call graph for this function:

◆ push_value()

push_value(vm,
m )

Variable Documentation

◆ break

break

Definition at line 39 of file env_all.c.

◆ m

Definition at line 21 of file env_all.c.

◆ OP_ENV_ALL

case OP_ENV_ALL

Definition at line 19 of file env_all.c.