summaryrefslogtreecommitdiff
path: root/agen5/guile-iface.def
blob: f5d63597652f5433e464b01795e64de7e53c08fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183

AutoGen Definitions guile-iface.tpl;

#if 0
iface = {
  i-name    = ;
  i-args    = ;
  i-impl    = { i-end = ''; i-code = ''; };
};
#endif

invalid = '200000-200003',
         '-106000';

iface = {
  i-name    = bool_p;
  i-args    = '_b';
  i-impl    = { i-end = '107'; i-code = 'SCM_BOOLP(_b)'; };
  i-impl    = { i-end = '201'; i-code = 'scm_is_bool(_b)'; };
};

iface = {
  i-name    = char;
  i-args    = '_c';
  i-impl    = { i-end = '107'; i-code = 'gh_scm2char(_c)'; };
  i-impl    = { i-end = '201'; i-code = 'SCM_CHAR(_c)'; };
};

iface = {
  i-name    = chars;
  i-args    = '_s';
  i-impl    = { i-end = '107'; i-code = 'SCM_CHARS(_s)'; };
  i-impl    = { i-end = '201'; i-code = 'scm_i_string_chars(_s)'; };
};

iface = {
  i-name    = falsep;
  i-args    = '_r';
  i-impl    = { i-end = '107'; i-code = 'SCM_FALSEP(_r)'; };
  i-impl    = { i-end = '201'; i-code = 'scm_is_false(_r)'; };
};

iface = {
  i-name    = from_long;
  i-args    = '_l';
  i-impl    = { i-end = '107'; i-code = 'gh_long2scm(_l)'; };
  i-impl    = { i-end = '201'; i-code = 'scm_from_long(_l)'; };
};

iface = {
  i-name    = int2scm;
  i-args    = '_i';
  i-impl    = { i-end = '107'; i-code = 'gh_int2scm(_i)'; };
  i-impl    = { i-end = '201'; i-code = 'scm_from_int(_i)'; };
};

iface = {
  i-name    = is_proc;
  i-args    = '_p';
  i-impl    = { i-end = '107'; i-code = 'SCM_NFALSEP( scm_procedure_p(_p))'; };
  i-impl    = { i-end = '201'; i-code = 'scm_is_true( scm_procedure_p(_p))'; };
};

iface = {
  i-name    = list_p;
  i-args    = '_l';
  i-impl    = { i-end = '107'; i-code = 'SCM_NFALSEP( scm_list_p(_l))'; };
  i-impl    = { i-end = '201'; i-code = 'scm_is_true( scm_list_p(_l))'; };
};

iface = {
  i-name    = listofnull;
  i-impl    = { i-end = '107'; i-code = 'scm_listofnull'; };
  i-impl    = { i-end = '201'; i-code = 'scm_list_1(SCM_EOL)'; };
};

iface = {
  i-name    = long2scm;
  i-args    = '_i';
  i-impl    = { i-end = '107'; i-code = 'gh_long2scm(_i)'; };
  i-impl    = { i-end = '201'; i-code = 'scm_from_long(_i)'; };
};

iface = {
  i-name    = nfalsep;
  i-args    = '_r';
  i-impl    = { i-end = '107'; i-code = 'SCM_NFALSEP(_r)'; };
  i-impl    = { i-end = '201'; i-code = 'scm_is_true(_r)'; };
};

iface = {
  i-name    = nullp;
  i-args    = '_m';
  i-impl    = { i-end = '107'; i-code = 'SCM_NULLP(_m)'; };
  i-impl    = { i-end = '201'; i-code = 'scm_is_null(_m)'; };
};

iface = {
  i-name    = num_p;
  i-args    = '_n';
  i-impl    = { i-end = '107'; i-code = 'SCM_NUMBERP(_n)'; };
  i-impl    = { i-end = '201'; i-code = 'scm_is_number(_n)'; };
};

iface = {
  i-name    = pair_p;
  i-args    = '_p';
  i-impl    = { i-end = '107'; i-code = 'SCM_NFALSEP( scm_pair_p(_p))'; };
  i-impl    = { i-end = '201'; i-code = 'scm_is_true( scm_pair_p(_p))'; };
};

iface = {
  i-name    = str02scm;
  i-args    = '_s';
  i-impl    = { i-end = '107'; i-code = 'scm_makfrom0str(_s)'; };
  i-impl    = { i-end = '200'; i-code = 'scm_from_locale_string(_s)'; };
  i-impl    = { i-end = '201'; i-code = 'scm_from_utf8_string(_s)'; };
};

iface = {
  i-name    = str2scm;
  i-args    = '_st,_sz';
  i-impl    = { i-end = '107'; i-code = 'scm_mem2string(_st,_sz)'; };
  i-impl    = { i-end = '200'; i-code = 'scm_from_locale_stringn(_st,_sz)'; };
  i-impl    = { i-end = '201'; i-code = 'scm_from_utf8_stringn(_st,_sz)'; };
};

iface = {
  i-name    = to_newstr;
  i-args    = '_s';
  i-impl    = { i-end = '107'; i-code = 'gh_scm2newstr(_s, NULL)'; };
  i-impl    = { i-end = '200'; i-code = 'scm_to_locale_string(_s)'; };
  i-impl    = { i-end = '201'; i-code = 'scm_to_utf8_string(_s)'; };
};

iface = {
  i-name    = string_p;
  i-args    = '_s';
  i-impl    = { i-end = '107'; i-code = 'SCM_STRINGP(_s)'; };
  i-impl    = { i-end = '201'; i-code = 'scm_is_string(_s)'; };
};

iface = {
  i-name    = strlen;
  i-args    = '_s';
  i-impl    = { i-end = '107'; i-code = 'SCM_STRING_LENGTH(_s)'; };
  i-impl    = { i-end = '201'; i-code = 'scm_c_string_length(_s)'; };
};

iface = {
  i-name    = sym_p;
  i-args    = '_s';
  i-impl    = { i-end = '107'; i-code = 'SCM_SYMBOLP(_s)'; };
  i-impl    = { i-end = '201'; i-code = 'scm_is_symbol(_s)'; };
};

iface = {
  i-name    = to_int;
  i-args    = '_i';
  i-impl    = { i-end = '107'; i-code = 'gh_scm2int(_i)'; };
  i-impl    = { i-end = '201'; i-code = 'scm_to_int(_i)'; };
};

iface = {
  i-name    = to_long;
  i-args    = '_v';
  i-impl    = { i-end = '107'; i-code = 'gh_scm2long(_v)'; };
  i-impl    = { i-end = '201'; i-code = 'scm_to_long(_v)'; };
};

iface = {
  i-name    = to_ulong;
  i-args    = '_v';
  i-impl    = { i-end = '107'; i-code = 'gh_scm2ulong(_v)'; };
  i-impl    = { i-end = '201'; i-code = 'scm_to_ulong(_v)'; };
};

iface = {
  i-name    = vec_p;
  i-args    = '_v';
  i-impl    = { i-end = '107'; i-code = 'SCM_VECTORP(_v)'; };
  i-impl    = { i-end = '201'; i-code = 'scm_is_vector(_v)'; };
};