mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-22 23:48:30 +00:00
local-stack UT
This commit is contained in:
parent
3a58bf3c0a
commit
aaa1625ca6
2 changed files with 7 additions and 0 deletions
|
|
@ -345,6 +345,11 @@ mlr_dsl_cst_statement_t* mlr_dsl_cst_alloc_statement(mlr_dsl_cst_t* pcst, mlr_ds
|
|||
return alloc_do_while(pcst, pnode, type_inferencing, context_flags | IN_BREAKABLE);
|
||||
break;
|
||||
case MD_AST_NODE_TYPE_FOR_SREC:
|
||||
if (context_flags & IN_BEGIN_OR_END) {
|
||||
fprintf(stderr, "%s: statements involving $-variables are not valid within begin or end blocks.\n",
|
||||
MLR_GLOBALS.bargv0);
|
||||
exit(1);
|
||||
}
|
||||
return alloc_for_srec(pcst, pnode, type_inferencing, context_flags | IN_BREAKABLE);
|
||||
break;
|
||||
case MD_AST_NODE_TYPE_FOR_OOSVAR:
|
||||
|
|
|
|||
|
|
@ -74,6 +74,8 @@ UT FOR 5.0.0:
|
|||
- put them *above* all local/for/UDF/etc
|
||||
* oosvar-single-for UT
|
||||
|
||||
* rtr case for $* in begin/end/func
|
||||
|
||||
----------------------------------------------------------------
|
||||
DOC FOR 5.0.0:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue