added qse_awk_rtx_ecb_gblset_t.

fixed a bug of returning an error when it must not in get_reference() in awk/run.c
This commit is contained in:
2013-04-15 13:18:03 +00:00
parent d6208e893e
commit d5cca9d524
3 changed files with 132 additions and 117 deletions

View File

@ -947,6 +947,16 @@ typedef void (*qse_awk_rtx_ecb_stmt_t) (
qse_awk_nde_t* nde /**< node */
);
/**
* The qse_awk_rtx_ecb_gblset_t type defines the callback function
* executed when a global variable is set with a value.
*/
typedef void (*qse_awk_rtx_ecb_gblset_t) (
qse_awk_rtx_t* rtx, /**< runtime context */
qse_size_t idx, /**< global variable index */
qse_awk_val_t* val /**< value */
);
/**
* The qse_awk_rtx_ecb_t type defines an event callback set for a
* runtime context. You can register a callback function set with
@ -967,6 +977,11 @@ struct qse_awk_rtx_ecb_t
*/
qse_awk_rtx_ecb_stmt_t stmt;
/**
* called when a global variable is set with a value.
*/
qse_awk_rtx_ecb_gblset_t gblset;
/* internal use only. don't touch this field */
qse_awk_rtx_ecb_t* next;
};