From c647f76cdf08f3e6443d9122cc1d2f187682802f Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Tue, 26 Sep 2017 23:48:33 +0000 Subject: [PATCH] removed a redundant argument declaration from the EXIT_DISPATCH_LOOP() macro --- moo/lib/exec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/moo/lib/exec.c b/moo/lib/exec.c index a84b4f2..d89ab01 100644 --- a/moo/lib/exec.c +++ b/moo/lib/exec.c @@ -5215,7 +5215,7 @@ static int __execute (moo_t* moo) # define BEGIN_DISPATCH_LOOP() __begin_inst_dispatch: # define END_DISPATCH_LOOP() __end_inst_dispatch: -# define EXIT_DISPATCH_LOOP(x) goto __end_inst_dispatch +# define EXIT_DISPATCH_LOOP() goto __end_inst_dispatch # define NEXT_INST() goto __begin_inst_dispatch # define BEGIN_DISPATCH_TABLE() goto *inst_table[bcode]; @@ -5227,7 +5227,7 @@ static int __execute (moo_t* moo) #else # define BEGIN_DISPATCH_LOOP() __begin_inst_dispatch: # define END_DISPATCH_LOOP() __end_inst_dispatch: -# define EXIT_DISPATCH_LOOP(x) goto __end_inst_dispatch +# define EXIT_DISPATCH_LOOP() goto __end_inst_dispatch # define NEXT_INST() goto __begin_inst_dispatch # define BEGIN_DISPATCH_TABLE() switch (bcode) { @@ -5248,6 +5248,7 @@ static int __execute (moo_t* moo) */ BEGIN_DISPATCH_LOOP() + /* stop requested or no more runnable process */ if (moo->abort_req || switch_process_if_needed(moo) == 0) EXIT_DISPATCH_LOOP();