diff options
author | Justus Winter <[email protected]> | 2017-03-29 11:57:54 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-04-10 12:57:19 +0000 |
commit | 1379df44537b67b7c2fbc0fb5bc6f7945a5d7ebb (patch) | |
tree | f7cb35e5897eae4bf2152db045b2ad30fa097bb5 /tests/gpgscm/scheme.c | |
parent | gpgscm: Merge 'opexe_4'. (diff) | |
download | gnupg-1379df44537b67b7c2fbc0fb5bc6f7945a5d7ebb.tar.gz gnupg-1379df44537b67b7c2fbc0fb5bc6f7945a5d7ebb.zip |
gpgscm: Merge 'opexe_5'.
* tests/gpgscm/scheme.c (opexe_5): Merge into 'opexe_0'.
* tests/gpgscm/opdefines.h: Adapt.
--
Having separate functions to execute opcodes reduces our ability to
thread the code and prevents the dispatch_table from being moved to
rodata.
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | tests/gpgscm/scheme.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/gpgscm/scheme.c b/tests/gpgscm/scheme.c index 48e0f3fd2..917f46bb7 100644 --- a/tests/gpgscm/scheme.c +++ b/tests/gpgscm/scheme.c @@ -438,7 +438,6 @@ static pointer reverse_in_place(scheme *sc, pointer term, pointer list); static pointer revappend(scheme *sc, pointer a, pointer b); static void dump_stack_mark(scheme *); static pointer opexe_0(scheme *sc, enum scheme_opcodes op); -static pointer opexe_5(scheme *sc, enum scheme_opcodes op); static pointer opexe_6(scheme *sc, enum scheme_opcodes op); static void Eval_Cycle(scheme *sc, enum scheme_opcodes op); static void assign_syntax(scheme *sc, char *name); @@ -4877,24 +4876,7 @@ static pointer opexe_0(scheme *sc, enum scheme_opcodes op) { CASE(OP_CURR_ENV): /* current-environment */ s_return(sc,sc->envir); - default: - snprintf(sc->strbuff,STRBUFFSIZE,"%d: illegal operator", sc->op); - Error_0(sc,sc->strbuff); - } - return sc->T; -} -static pointer opexe_5(scheme *sc, enum scheme_opcodes op) { - pointer x; - - if(sc->nesting!=0) { - int n=sc->nesting; - sc->nesting=0; - sc->retcode=-1; - Error_1(sc,"unmatched parentheses:",mk_integer(sc,n)); - } - - switch (op) { /* ========== reading part ========== */ CASE(OP_READ): if(!is_pair(sc->args)) { |