Updated and correct the gEDA/gaf man pages a little bit.
[geda-gaf.git] / libgeda / include / guile_compat_1.6.h
blob201bb5670fd133abf4b1bed78f63490fb1ba10c2
1 #if !HAVE_DECL_SCM_IS_TRUE
2 #define scm_is_true(x) SCM_NFALSEP(x)
3 #endif
5 #if !HAVE_DECL_SCM_IS_FALSE
6 #define scm_is_false(x) SCM_FALSEP(x)
7 #endif
9 #if !HAVE_DECL_SCM_IS_INTEGER
10 #define scm_is_integer(x) SCM_INUMP(x)
11 #endif
13 #if !HAVE_DECL_SCM_TO_INT
14 #define scm_to_int(x) SCM_INUM(x)
15 #endif
17 #if !HAVE_DECL_SCM_FROM_INT
18 #define scm_from_int(x) SCM_MAKINUM(x)
19 #endif
21 #if !HAVE_DECL_SCM_IS_STRING
22 #define scm_is_string(x) SCM_STRINGP(x)
23 #endif
25 #if !HAVE_DECL_SCM_TO_LOCALE_STRING
26 #define scm_to_locale_string(x) strdup(SCM_STRING_CHARS(x))
27 #endif
29 #if !HAVE_DECL_SCM_FROM_LOCALE_STRING
30 #define scm_from_locale_string(x) scm_makfrom0str(x)
31 #endif
33 #if !HAVE_DECL_SCM_FROM_LOCALE_SYMBOL
34 #define scm_from_locale_symbol(x) \
35 scm_string_to_symbol (scm_from_locale_string (x))
36 #endif
38 #if !HAVE_DECL_SCM_CAR
39 #define scm_car(x) SCM_CAR(x)
40 #endif
42 #if !HAVE_DECL_SCM_CADDR
43 #define scm_caddr(x) SCM_CADDR(x)
44 #endif
46 #if !HAVE_DECL_SCM_CADR
47 #define scm_cadr(x) SCM_CADR(x)
48 #endif