From 663aff4ae012468c54d2e994e839d0e75210ef80 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 11 Jan 2019 15:14:33 +0200 Subject: Squashed merge of feature/namespaces. Add code and doc. --- eval.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 34ba174c..1dd0de4e 100644 --- a/eval.c +++ b/eval.c @@ -330,6 +330,7 @@ static struct optypetab { { "Op_K_getline_redir", "getline" }, { "Op_K_getline", "getline" }, { "Op_K_nextfile", "nextfile" }, + { "Op_K_namespace", "@namespace" }, { "Op_builtin", NULL }, { "Op_sub_builtin", NULL }, { "Op_ext_builtin", NULL }, @@ -400,7 +401,7 @@ nodetype2str(NODETYPE type) return buf; } -/* opcode2str --- convert a opcode type into a printable value */ +/* opcode2str --- convert an opcode type into a printable value */ const char * opcode2str(OPCODE op) @@ -411,6 +412,8 @@ opcode2str(OPCODE op) return NULL; } +/* op2str --- convert an opcode type to corresponding operator or keyword */ + const char * op2str(OPCODE op) { -- cgit v1.2.3