From: Matt Birkholz Date: Thu, 13 Nov 2014 23:03:08 +0000 (-0700) Subject: svm: Make the trap handlers static. X-Git-Tag: mit-scheme-pucked-9.2.12~376^2~119 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=e5f551d8d80827db6597978b6ada0f5cfa47bd4f;p=mit-scheme.git svm: Make the trap handlers static. I won't vouch for any speed improvement. I just noticed all the others were declared static. --- diff --git a/src/microcode/svm1-interp.c b/src/microcode/svm1-interp.c index 08bf0eb80..0f42ad3b2 100644 --- a/src/microcode/svm1-interp.c +++ b/src/microcode/svm1-interp.c @@ -885,7 +885,7 @@ illegal_trap_3 (byte_t * PC, wreg_t r1, wreg_t r2, wreg_t r3) EXIT_VM ((result).arg.interpreter_code) #define DEFINE_TRAP_0(nl, util_name) \ -byte_t * \ +static byte_t * \ trap_##nl (byte_t * PC) \ { \ TRAP_PREFIX (result); \ @@ -898,7 +898,7 @@ trap_##nl (byte_t * PC) \ } #define DEFINE_TRAP_1(nl, util_name) \ -byte_t * \ +static byte_t * \ trap_##nl (byte_t * PC, wreg_t source1) \ { \ TRAP_PREFIX (result); \ @@ -911,7 +911,7 @@ trap_##nl (byte_t * PC, wreg_t source1) \ } #define DEFINE_TRAP_2(nl, util_name) \ -byte_t * \ +static byte_t * \ trap_##nl (byte_t * PC, wreg_t source1, wreg_t source2) \ { \ TRAP_PREFIX (result); \ @@ -924,7 +924,7 @@ trap_##nl (byte_t * PC, wreg_t source1, wreg_t source2) \ } #define DEFINE_TRAP_3(nl, util_name) \ -byte_t * \ +static byte_t * \ trap_##nl (byte_t * PC, wreg_t source1, wreg_t source2, wreg_t source3) \ { \ TRAP_PREFIX (result); \ @@ -937,7 +937,7 @@ trap_##nl (byte_t * PC, wreg_t source1, wreg_t source2, wreg_t source3) \ } #define DEFINE_TRAP_R0(nl, util_name) \ -byte_t * \ +static byte_t * \ trap_##nl (byte_t * PC) \ { \ TRAP_PREFIX (result); \ @@ -950,7 +950,7 @@ trap_##nl (byte_t * PC) \ } #define DEFINE_TRAP_R1(nl, util_name) \ -byte_t * \ +static byte_t * \ trap_##nl (byte_t * PC, wreg_t source1) \ { \ TRAP_PREFIX (result); \ @@ -963,7 +963,7 @@ trap_##nl (byte_t * PC, wreg_t source1) \ } #define DEFINE_TRAP_R2(nl, util_name) \ -byte_t * \ +static byte_t * \ trap_##nl (byte_t * PC, wreg_t source1, wreg_t source2) \ { \ TRAP_PREFIX (result); \ @@ -976,7 +976,7 @@ trap_##nl (byte_t * PC, wreg_t source1, wreg_t source2) \ } #define DEFINE_TRAP_R3(nl, util_name) \ -byte_t * \ +static byte_t * \ trap_##nl (byte_t * PC, wreg_t source1, wreg_t source2, wreg_t source3) \ { \ TRAP_PREFIX (result); \ @@ -989,7 +989,7 @@ trap_##nl (byte_t * PC, wreg_t source1, wreg_t source2, wreg_t source3) \ } #define DEFINE_TRAMPOLINE(nl, util_name) \ -byte_t * \ +static byte_t * \ trap_##nl (byte_t * PC) \ { \ TRAP_PREFIX (result); \