[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 76/86: Move SCM_ARG1, etc definitions to error.h
From: |
Andy Wingo |
Subject: |
[Guile-commits] 76/86: Move SCM_ARG1, etc definitions to error.h |
Date: |
Wed, 20 Jun 2018 14:09:44 -0400 (EDT) |
wingo pushed a commit to branch master
in repository guile.
commit 6e51f89d0127d81be4911790ac77772e78a9a493
Author: Andy Wingo <address@hidden>
Date: Wed Jun 20 15:14:05 2018 +0200
Move SCM_ARG1, etc definitions to error.h
* libguile/__scm.h:
* libguile/error.h (SCM_ARGn, SCM_ARG1, SCM_ARG2, SCM_ARG3, SCM_ARG4)
(SCM_ARG5 SCM_ARG6 SCM_ARG7): Move here.
---
libguile/__scm.h | 22 ----------------------
libguile/error.h | 22 ++++++++++++++++++++++
2 files changed, 22 insertions(+), 22 deletions(-)
diff --git a/libguile/__scm.h b/libguile/__scm.h
index 233cdd0..de2c329 100644
--- a/libguile/__scm.h
+++ b/libguile/__scm.h
@@ -321,28 +321,6 @@ typedef long SCM_STACKITEM;
#define SCM_STACK_PTR(ptr) ((SCM_STACKITEM *) (void *) (ptr))
-#ifndef SCM_MAGIC_SNARFER
-/* Let these macros pass through if
- we are snarfing; thus we can tell the
- difference between the use of an actual
- number vs. the use of one of these macros --
- actual numbers in SCM_VALIDATE_* and SCM_ASSERT
- constructs must match the formal argument name,
- but using SCM_ARG* avoids the test */
-
-#define SCM_ARGn 0
-#define SCM_ARG1 1
-#define SCM_ARG2 2
-#define SCM_ARG3 3
-#define SCM_ARG4 4
-#define SCM_ARG5 5
-#define SCM_ARG6 6
-#define SCM_ARG7 7
-
-#endif /* SCM_MAGIC_SNARFER */
-
-
-
/* Handling thread-local storage (TLS). */
#ifdef SCM_HAVE_THREAD_STORAGE_CLASS
diff --git a/libguile/error.h b/libguile/error.h
index 8a78e8c..30e9066 100644
--- a/libguile/error.h
+++ b/libguile/error.h
@@ -74,6 +74,28 @@ SCM_INTERNAL void scm_init_error (void);
+#ifndef SCM_MAGIC_SNARFER
+/* Let these macros pass through if
+ we are snarfing; thus we can tell the
+ difference between the use of an actual
+ number vs. the use of one of these macros --
+ actual numbers in SCM_VALIDATE_* and SCM_ASSERT
+ constructs must match the formal argument name,
+ but using SCM_ARG* avoids the test */
+
+#define SCM_ARGn 0
+#define SCM_ARG1 1
+#define SCM_ARG2 2
+#define SCM_ARG3 3
+#define SCM_ARG4 4
+#define SCM_ARG5 5
+#define SCM_ARG6 6
+#define SCM_ARG7 7
+
+#endif /* SCM_MAGIC_SNARFER */
+
+
+
#define SCM_MAKE_VALIDATE(pos, var, pred) \
do { \
SCM_ASSERT_TYPE (SCM_ ## pred (var), var, pos, FUNC_NAME, #pred); \
- [Guile-commits] 70/86: Fix include in test-ffi-lib, (continued)
- [Guile-commits] 70/86: Fix include in test-ffi-lib, Andy Wingo, 2018/06/20
- [Guile-commits] 68/86: Remove unneeded memmove.c and strerror.c files, Andy Wingo, 2018/06/20
- [Guile-commits] 64/86: Devolve strings.h, Andy Wingo, 2018/06/20
- [Guile-commits] 72/86: Fix missing includes in tests., Andy Wingo, 2018/06/20
- [Guile-commits] 60/86: Remove modules.h from _scm.h., Andy Wingo, 2018/06/20
- [Guile-commits] 75/86: Move SCM_TICK definition to __scm.h., Andy Wingo, 2018/06/20
- [Guile-commits] 74/86: Remove crufty support for 16-bit architectures., Andy Wingo, 2018/06/20
- [Guile-commits] 73/86: Deprecate pre-stdint.h limit macros, Andy Wingo, 2018/06/20
- [Guile-commits] 80/86: Rationalize guile-readline includes, Andy Wingo, 2018/06/20
- [Guile-commits] 61/86: Devolve symbols.h from _scm.h, Andy Wingo, 2018/06/20
- [Guile-commits] 76/86: Move SCM_ARG1, etc definitions to error.h,
Andy Wingo <=
- [Guile-commits] 59/86: Devolve threads.h from _scm.h., Andy Wingo, 2018/06/20
- [Guile-commits] 44/86: Devolve numbers.h from _scm.h., Andy Wingo, 2018/06/20
- [Guile-commits] 71/86: Use stdint.h limit macros, Andy Wingo, 2018/06/20
- [Guile-commits] 77/86: Minor __scm.h reformatting, Andy Wingo, 2018/06/20
- [Guile-commits] 85/86: libguile header files have uniform format for copyright declarations, Andy Wingo, 2018/06/20
- [Guile-commits] 47/86: Move subr snarfing macros to gsubr.h., Andy Wingo, 2018/06/20
- [Guile-commits] 83/86: Make .c copyright headers uniform, Andy Wingo, 2018/06/20
- [Guile-commits] 65/86: Remove _scm.h, Andy Wingo, 2018/06/20
- [Guile-commits] 66/86: Remove useless "classes: h_files" from Guile headers., Andy Wingo, 2018/06/20
- [Guile-commits] 79/86: Rename __scm.h to scm.h, Andy Wingo, 2018/06/20