Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 78 lines (68 sloc) 2.233 kB
5057849 updated for version 7.0006
vimboss authored
1 /* vi:set ts=8 sts=4 sw=4:
2 *
3 * MzScheme interface for Vim, wrapper around scheme.h
4 */
5 #ifndef _IF_MZSCH_H_
6 #define _IF_MZSCH_H_
7 #ifdef __MINGW32__
8 /* Hack to engage Cygwin-specific settings */
9 # define __CYGWIN32__
10 #endif
11
16d8075 updated for version 7.0b
vimboss authored
12 /* #ifdef needed for "make depend" */
13 #ifdef FEAT_MZSCHEME
0873fb8 updated for version 7.2-191
vimboss authored
14 # include <schvers.h>
16d8075 updated for version 7.0b
vimboss authored
15 # include <scheme.h>
16 #endif
5057849 updated for version 7.0006
vimboss authored
17
18 #ifdef __MINGW32__
19 # undef __CYGWIN32__
20 #endif
21
22 #if MZSCHEME_VERSION_MAJOR >= 299
23 /* macros to be compatible with 20x versions */
24 # define scheme_config scheme_current_config()
25 # define scheme_make_string scheme_make_byte_string
26 # define scheme_make_string_output_port scheme_make_byte_string_output_port
27 # define scheme_get_sized_string_output scheme_get_sized_byte_string_output
28 # define scheme_write_string scheme_write_byte_string
29 # define scheme_make_sized_string scheme_make_sized_byte_string
30
31 # define SCHEME_STRINGP(obj) (SCHEME_BYTE_STRINGP(obj) || SCHEME_CHAR_STRINGP(obj))
32 # define SCHEME_STR_VAL(obj) SCHEME_BYTE_STR_VAL( \
33 (SCHEME_BYTE_STRINGP(obj) ? obj : scheme_char_string_to_byte_string(obj)))
34 # define GUARANTEE_STRING(fname, argnum) GUARANTEE_TYPE(fname, argnum, SCHEME_STRINGP, "string")
35
36 # ifdef scheme_format
37 # undef scheme_format
38 # endif
39 # define scheme_format scheme_format_utf8
40
a869d0e updated for version 7.0073
vimboss authored
41 # define SCHEME_GET_BYTE_STRING(obj) (SCHEME_BYTE_STRINGP(obj) ? obj : \
5057849 updated for version 7.0006
vimboss authored
42 scheme_char_string_to_byte_string(obj))
43 #else
a869d0e updated for version 7.0073
vimboss authored
44 # define SCHEME_GET_BYTE_STRING(obj) (obj)
5057849 updated for version 7.0006
vimboss authored
45 # define SCHEME_BYTE_STRLEN_VAL SCHEME_STRLEN_VAL
46 # define SCHEME_BYTE_STR_VAL SCHEME_STR_VAL
a869d0e updated for version 7.0073
vimboss authored
47 # define scheme_byte_string_to_char_string(obj) (obj)
5057849 updated for version 7.0006
vimboss authored
48 #endif
49
0873fb8 updated for version 7.2-191
vimboss authored
50 /* Precise GC macros */
51 #ifndef MZ_GC_DECL_REG
b7e3f70 @brammool Whitespace cleanup.
brammool authored
52 # define MZ_GC_DECL_REG(size) /* empty */
0873fb8 updated for version 7.2-191
vimboss authored
53 #endif
54 #ifndef MZ_GC_VAR_IN_REG
b7e3f70 @brammool Whitespace cleanup.
brammool authored
55 # define MZ_GC_VAR_IN_REG(x, v) /* empty */
0873fb8 updated for version 7.2-191
vimboss authored
56 #endif
57 #ifndef MZ_GC_ARRAY_VAR_IN_REG
58 # define MZ_GC_ARRAY_VAR_IN_REG(x, v, l) /* empty */
59 #endif
60 #ifndef MZ_GC_REG
b7e3f70 @brammool Whitespace cleanup.
brammool authored
61 # define MZ_GC_REG() /* empty */
0873fb8 updated for version 7.2-191
vimboss authored
62 #endif
63 #ifndef MZ_GC_UNREG
b7e3f70 @brammool Whitespace cleanup.
brammool authored
64 # define MZ_GC_UNREG() /* empty */
0873fb8 updated for version 7.2-191
vimboss authored
65 #endif
66
67 #ifdef MZSCHEME_FORCE_GC
68 /*
69 * force garbage collection to check all references are registered
70 * seg faults will indicate not registered refs
71 */
72 # define MZ_GC_CHECK() scheme_collect_garbage();
73 #else
74 # define MZ_GC_CHECK() /* empty */
75 #endif
76
5057849 updated for version 7.0006
vimboss authored
77 #endif /* _IF_MZSCH_H_ */
Something went wrong with that request. Please try again.