[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 58/86: Define scm_t_wchar in one place
From: |
Andy Wingo |
Subject: |
[Guile-commits] 58/86: Define scm_t_wchar in one place |
Date: |
Wed, 20 Jun 2018 14:09:40 -0400 (EDT) |
wingo pushed a commit to branch master
in repository guile.
commit b64941f5af5b59d3e726cc10ecc2431379e73689
Author: Andy Wingo <address@hidden>
Date: Wed Jun 20 11:38:08 2018 +0200
Define scm_t_wchar in one place
* libguile/__scm.h (scm_t_wchar): Move definition here, closer to
scm_t_int32 definition (pulled in by scmconfig.h).
* libguile/numbers.h:
* libguile/chars.h: Remove weird maybe-definitions.
---
libguile/__scm.h | 9 +++++++++
libguile/chars.h | 5 -----
libguile/numbers.h | 5 -----
3 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/libguile/__scm.h b/libguile/__scm.h
index 32d5de3..6861a81 100644
--- a/libguile/__scm.h
+++ b/libguile/__scm.h
@@ -422,6 +422,15 @@ typedef long SCM_STACKITEM;
#endif /* SCM___SCM_H */
+
+
+
+/* Trivial type declarations and forward declarations. */
+typedef scm_t_int32 scm_t_wchar;
+
+
+
+
/*
Local Variables:
c-file-style: "gnu"
diff --git a/libguile/chars.h b/libguile/chars.h
index 26ba7ac..36b2ee8 100644
--- a/libguile/chars.h
+++ b/libguile/chars.h
@@ -27,11 +27,6 @@
#include "libguile/__scm.h"
#include <libguile/error.h>
-#ifndef SCM_T_WCHAR_DEFINED
-typedef scm_t_int32 scm_t_wchar;
-#define SCM_T_WCHAR_DEFINED
-#endif /* SCM_T_WCHAR_DEFINED */
-
/* Immediate Characters
*/
diff --git a/libguile/numbers.h b/libguile/numbers.h
index 1bad7d3..1164d19 100644
--- a/libguile/numbers.h
+++ b/libguile/numbers.h
@@ -32,11 +32,6 @@
#include "libguile/gc.h"
#include "libguile/print.h"
-#ifndef SCM_T_WCHAR_DEFINED
-typedef scm_t_int32 scm_t_wchar;
-#define SCM_T_WCHAR_DEFINED
-#endif /* SCM_T_WCHAR_DEFINED */
-
/* Immediate Numbers, also known as fixnums
- [Guile-commits] 42/86: Remove numbers.h from inline.h, (continued)
- [Guile-commits] 42/86: Remove numbers.h from inline.h, Andy Wingo, 2018/06/20
- [Guile-commits] 48/86: Deprecate SCM_STATIC_DOUBLE_CELL snarf macro, Andy Wingo, 2018/06/20
- [Guile-commits] 51/86: Devolve variable snarfers, Andy Wingo, 2018/06/20
- [Guile-commits] 50/86: Devolve keyword-snarfing macros, Andy Wingo, 2018/06/20
- [Guile-commits] 49/86: Move string-related snarfers to strings.h, Andy Wingo, 2018/06/20
- [Guile-commits] 25/86: Remove list.h from _scm.h, Andy Wingo, 2018/06/20
- [Guile-commits] 26/86: Devolve boolean.h include., Andy Wingo, 2018/06/20
- [Guile-commits] 39/86: Remove <stdio.h> from ports.h, Andy Wingo, 2018/06/20
- [Guile-commits] 55/86: Remove snarf.h from _scm.h, Andy Wingo, 2018/06/20
- [Guile-commits] 52/86: Remove mutex snarfers, Andy Wingo, 2018/06/20
- [Guile-commits] 58/86: Define scm_t_wchar in one place,
Andy Wingo <=
- [Guile-commits] 54/86: Simplify SCM_IMMUTABLE_CELL macros, Andy Wingo, 2018/06/20
- [Guile-commits] 27/86: Devolve pairs.h, Andy Wingo, 2018/06/20
- [Guile-commits] 53/86: Devolve smob snarfers, Andy Wingo, 2018/06/20
- [Guile-commits] 57/86: Shuffle around inline C function implementation, Andy Wingo, 2018/06/20
- [Guile-commits] 62/86: Devolve foreign.h from _scm.h, Andy Wingo, 2018/06/20
- [Guile-commits] 63/86: Devolve programs.h from _scm.h., Andy Wingo, 2018/06/20
- [Guile-commits] 22/86: Devolve more validate macros, Andy Wingo, 2018/06/20
- [Guile-commits] 23/86: Remove includes of validate.h., Andy Wingo, 2018/06/20
- [Guile-commits] 56/86: Devolve variable.h from _scm.h., Andy Wingo, 2018/06/20
- [Guile-commits] 69/86: Move SCM_C_INLINE_KEYWORD definition to inline.h, Andy Wingo, 2018/06/20