readability improvement in vm-i-scheme
authorAndy Wingo <wingo@pobox.com>
Sat, 13 Sep 2008 12:14:20 +0000 (14:14 +0200)
committerAndy Wingo <wingo@pobox.com>
Sat, 13 Sep 2008 12:19:30 +0000 (14:19 +0200)
* libguile/vm-engine.h:
* libguile/vm-i-scheme.c: Move some helper macros closer to their use
  sites.

libguile/vm-engine.h
libguile/vm-i-scheme.c

index 2026e3c..dfbd2d9 100644 (file)
@@ -469,17 +469,6 @@ do {                                               \
 
 #define CACHE_EXTERNAL() external = fp[bp->nargs + bp->nlocs]
 
-\f
-/*
- * Function support
- */
-
-#define ARGS1(a1)      SCM a1 = sp[0];
-#define ARGS2(a1,a2)   SCM a1 = sp[-1], a2 = sp[0]; sp--;
-#define ARGS3(a1,a2,a3)        SCM a1 = sp[-2], a2 = sp[-1], a3 = sp[0]; sp -= 2;
-
-#define RETURN(x)      do { *sp = x; NEXT; } while (0)
-
 /*
   Local Variables:
   c-file-style: "gnu"
index 5c4dae1..912c91b 100644 (file)
  * Predicates
  */
 
+#define ARGS1(a1)      SCM a1 = sp[0];
+#define ARGS2(a1,a2)   SCM a1 = sp[-1], a2 = sp[0]; sp--;
+#define ARGS3(a1,a2,a3)        SCM a1 = sp[-2], a2 = sp[-1], a3 = sp[0]; sp -= 2;
+
+#define RETURN(x)      do { *sp = x; NEXT; } while (0)
+
 VM_DEFINE_FUNCTION (not, "not", 1)
 {
   ARGS1 (x);