![]() |
Fun 0.41.5
The programming language that makes you have fun!
|
VM opcode snippet for reading a string from INI (OP_INI_GET_STRING). More...
Go to the source code of this file.
Functions | |
| if (d &&sec &&key) | |
| free_value (vdef) | |
| free_value (vkey) | |
| free_value (vsec) | |
| free_value (vh) | |
| push_value (vm, make_string(res)) | |
Variables | |
| case | OP_INI_GET_STRING |
| Value | vkey = pop_value(vm) |
| Value | vsec = pop_value(vm) |
| Value | vh = pop_value(vm) |
| const char * | def = (vdef.type == VAL_STRING && vdef.s) ? vdef.s : "" |
| const char * | key = (vkey.type == VAL_STRING) ? vkey.s : NULL |
| const char * | sec = (vsec.type == VAL_STRING) ? vsec.s : NULL |
| int | h = (vh.type == VAL_INT) ? (int)vh.i : 0 |
| dictionary * | d = ini_get(h) |
| const char * | res = def |
| break | |
VM opcode snippet for reading a string from INI (OP_INI_GET_STRING).
Opcode: OP_INI_GET_STRING Stack: [default:string] [key:string] [section:string] [handle:int] -> [out:string]
Behavior
Errors
Definition in file get_string.c.
| free_value | ( | vdef | ) |
| free_value | ( | vh | ) |
| free_value | ( | vkey | ) |
| free_value | ( | vsec | ) |
Definition at line 39 of file get_string.c.
| push_value | ( | vm | , |
| make_string(res) | ) |
| break |
Definition at line 65 of file get_string.c.
Definition at line 37 of file get_string.c.
| const char* def = (vdef.type == VAL_STRING && vdef.s) ? vdef.s : "" |
Definition at line 33 of file get_string.c.
| int h = (vh.type == VAL_INT) ? (int)vh.i : 0 |
Definition at line 36 of file get_string.c.
| const char* key = (vkey.type == VAL_STRING) ? vkey.s : NULL |
Definition at line 34 of file get_string.c.
| case OP_INI_GET_STRING |
Definition at line 28 of file get_string.c.
Definition at line 38 of file get_string.c.
| const char* sec = (vsec.type == VAL_STRING) ? vsec.s : NULL |
Definition at line 35 of file get_string.c.
Definition at line 32 of file get_string.c.
Definition at line 30 of file get_string.c.
Definition at line 31 of file get_string.c.