Next: , Previous: x1f4_push_text, Up: Imperative Language Interpreter Functions


4.8.3.14 x1f4_push_variable

extern int x1f4_push_variable
    (void **context, const char *name, unsigned length, int type,
     unsigned flags, void *storage);

The x1f4_push_variable adds a variable for which the name is stored at name and has length bytes into the context variables collection. flags will make for the flags field of the struct x1f4_variable_type variable definition, while type will make for the type field of the very same struct x1f4_variable_type variable definition. storage is assumed to be the address at which the value of the variable is stored.

The function returns 0 for success, one of variables collections contruction errors for failure.

See Variables.

See Variable Flags.

See Variables Collections.

See Variables Collections Contruction Errors.

See struct x1f4_variable_type.