mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-22 07:30:43 +00:00
mapvar-ref iterate
This commit is contained in:
parent
9f1995a56c
commit
8d220a91c9
2 changed files with 3 additions and 3 deletions
|
|
@ -78,12 +78,12 @@ typedef struct _rval_evaluator_t {
|
|||
// This is for map-valued contexts: LHS/RHS of assignments,
|
||||
// UDF/subroutine arguments, and UDF return values.
|
||||
|
||||
// The is_ephemeral flag is TRUE for map-literals, function return values, and
|
||||
// The map_is_ephemeral flag is TRUE for map-literals, function return values, and
|
||||
// data copied out of srecs. It is FALSE when the pointer is into an existing
|
||||
// data structure's memory (e.g. oosvars or locals).
|
||||
typedef struct _boxed_xval_t {
|
||||
mlhmmv_value_t xval;
|
||||
int is_ephemeral;
|
||||
int map_is_ephemeral;
|
||||
} boxed_xval_t;
|
||||
|
||||
struct _rxval_evaluator_xxx_deprecated_t; // forward reference for method declarations
|
||||
|
|
|
|||
|
|
@ -456,7 +456,7 @@ static boxed_xval_t rxval_evaluator_wrapping_rval_func(void* pvstate, variables_
|
|||
mv_t val = prval_evaluator->pprocess_func(prval_evaluator->pvstate, pvars);
|
||||
return (boxed_xval_t) {
|
||||
.xval = mlhmmv_value_transfer_terminal(val),
|
||||
.is_ephemeral = TRUE,
|
||||
.map_is_ephemeral = TRUE,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue