Develop and Download Open Source Software

Browse CVS Repository

Annotation of /shiki/shiki/xyzzylisp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.7 - (hide annotations) (download) (as text)
Sun Nov 26 18:41:43 2006 UTC (17 years, 4 months ago) by aloha
Branch: MAIN
Changes since 1.6: +85 -0 lines
File MIME type: text/x-csrc
add some API

1 aloha 1.1 /* Generated by genstub. Do not edit. */
2     #include <gauche.h>
3     #if defined(__CYGWIN__) || defined(__MINGW32__)
4     #define SCM_CGEN_CONST /*empty*/
5     #else
6     #define SCM_CGEN_CONST const
7     #endif
8 aloha 1.2 #include "shiki.h"
9 aloha 1.6 static ScmObj xyzzylisp_bufferp(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_)
10     {
11     ScmObj buffer_scm;
12     ScmObj buffer;
13     SCM_ENTER_SUBR("bufferp");
14     buffer_scm = SCM_ARGREF(0);
15     buffer = (buffer_scm);
16     {
17     {
18     int SCM_RESULT;
19     SCM_RESULT = SHIKI_BUFFER_P(buffer);
20     SCM_RETURN(SCM_MAKE_BOOL(SCM_RESULT));
21     }
22     }
23     }
24    
25     static SCM_DEFINE_STRING_CONST(xyzzylisp_bufferp__NAME, "bufferp", 7, 7);
26     static SCM_DEFINE_SUBR(xyzzylisp_bufferp__STUB, 1, 0, SCM_OBJ(&xyzzylisp_bufferp__NAME), xyzzylisp_bufferp, NULL, NULL);
27    
28 aloha 1.5 static ScmObj xyzzylisp_selected_buffer(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_)
29     {
30     SCM_ENTER_SUBR("selected-buffer");
31     {
32     {
33     GtkTextBuffer* SCM_RESULT;
34     g_object_ref(Shiki_CURRENT_TEXT_BUFFER);
35     SCM_RESULT = Shiki_CURRENT_TEXT_BUFFER;
36     SCM_RETURN(SHIKI_BUFFER_BOX(SCM_RESULT));
37     }
38     }
39     }
40    
41     static SCM_DEFINE_STRING_CONST(xyzzylisp_selected_buffer__NAME, "selected-buffer", 15, 15);
42     static SCM_DEFINE_SUBR(xyzzylisp_selected_buffer__STUB, 0, 0, SCM_OBJ(&xyzzylisp_selected_buffer__NAME), xyzzylisp_selected_buffer, NULL, NULL);
43    
44 aloha 1.6 static ScmObj xyzzylisp_get_next_buffer(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_)
45     {
46     ScmObj buffer_scm;
47     ScmObj buffer;
48     ScmObj SCM_OPTARGS = SCM_ARGREF(SCM_ARGCNT-1);
49     SCM_ENTER_SUBR("get-next-buffer");
50     if (Scm_Length(SCM_OPTARGS) > 1)
51     Scm_Error("too many arguments: up to 1 is expected, %d given.", Scm_Length(SCM_OPTARGS));
52     if (SCM_NULLP(SCM_OPTARGS)) buffer_scm = SCM_UNBOUND;
53     else {
54     buffer_scm = SCM_CAR(SCM_OPTARGS);
55     SCM_OPTARGS = SCM_CDR(SCM_OPTARGS);
56     }
57     buffer = (buffer_scm);
58     {
59     {
60     GtkTextBuffer* SCM_RESULT;
61     if(buffer == SCM_UNBOUND)
62     SCM_RESULT = Shiki_get_next_buffer(Shiki_CURRENT_TEXT_BUFFER);
63     else if(SHIKI_BUFFER_P(buffer))
64     SCM_RESULT = Shiki_get_next_buffer(SHIKI_BUFFER_UNBOX(buffer));
65     else
66     Scm_Error("buffer required, but got %S", buffer);
67     if(SCM_RESULT)
68     g_object_ref(SCM_RESULT);
69     SCM_RETURN(SHIKI_BUFFER_BOX(SCM_RESULT));
70     }
71     }
72     }
73    
74     static SCM_DEFINE_STRING_CONST(xyzzylisp_get_next_buffer__NAME, "get-next-buffer", 15, 15);
75     static SCM_DEFINE_SUBR(xyzzylisp_get_next_buffer__STUB, 0, 1, SCM_OBJ(&xyzzylisp_get_next_buffer__NAME), xyzzylisp_get_next_buffer, NULL, NULL);
76    
77 aloha 1.7 static ScmObj xyzzylisp_buffer_lines(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_)
78     {
79     ScmObj buffer_scm;
80     ScmObj buffer;
81     ScmObj SCM_OPTARGS = SCM_ARGREF(SCM_ARGCNT-1);
82     SCM_ENTER_SUBR("buffer-lines");
83     if (Scm_Length(SCM_OPTARGS) > 1)
84     Scm_Error("too many arguments: up to 1 is expected, %d given.", Scm_Length(SCM_OPTARGS));
85     if (SCM_NULLP(SCM_OPTARGS)) buffer_scm = SCM_UNBOUND;
86     else {
87     buffer_scm = SCM_CAR(SCM_OPTARGS);
88     SCM_OPTARGS = SCM_CDR(SCM_OPTARGS);
89     }
90     buffer = (buffer_scm);
91     {
92     {
93     int SCM_RESULT;
94     if(buffer == SCM_UNBOUND)
95     SCM_RESULT = gtk_text_buffer_get_line_count(Shiki_CURRENT_TEXT_BUFFER);
96     else if(SHIKI_BUFFER_P(buffer))
97     SCM_RESULT = gtk_text_buffer_get_line_count(SHIKI_BUFFER_UNBOX(buffer));
98     else
99     Scm_Error("buffer required, but got %S", buffer);
100     SCM_RETURN(Scm_MakeInteger(SCM_RESULT));
101     }
102     }
103     }
104    
105     static SCM_DEFINE_STRING_CONST(xyzzylisp_buffer_lines__NAME, "buffer-lines", 12, 12);
106     static SCM_DEFINE_SUBR(xyzzylisp_buffer_lines__STUB, 0, 1, SCM_OBJ(&xyzzylisp_buffer_lines__NAME), xyzzylisp_buffer_lines, NULL, NULL);
107    
108     static ScmObj xyzzylisp_buffer_size(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_)
109     {
110     ScmObj buffer_scm;
111     ScmObj buffer;
112     ScmObj SCM_OPTARGS = SCM_ARGREF(SCM_ARGCNT-1);
113     SCM_ENTER_SUBR("buffer-size");
114     if (Scm_Length(SCM_OPTARGS) > 1)
115     Scm_Error("too many arguments: up to 1 is expected, %d given.", Scm_Length(SCM_OPTARGS));
116     if (SCM_NULLP(SCM_OPTARGS)) buffer_scm = SCM_UNBOUND;
117     else {
118     buffer_scm = SCM_CAR(SCM_OPTARGS);
119     SCM_OPTARGS = SCM_CDR(SCM_OPTARGS);
120     }
121     buffer = (buffer_scm);
122     {
123     {
124     int SCM_RESULT;
125     if(buffer == SCM_UNBOUND)
126     SCM_RESULT = gtk_text_buffer_get_char_count(Shiki_CURRENT_TEXT_BUFFER);
127     else if(SHIKI_BUFFER_P(buffer))
128     SCM_RESULT = gtk_text_buffer_get_char_count(SHIKI_BUFFER_UNBOX(buffer));
129     else
130     Scm_Error("buffer required, but got %S", buffer);
131     SCM_RETURN(Scm_MakeInteger(SCM_RESULT));
132     }
133     }
134     }
135    
136     static SCM_DEFINE_STRING_CONST(xyzzylisp_buffer_size__NAME, "buffer-size", 11, 11);
137     static SCM_DEFINE_SUBR(xyzzylisp_buffer_size__STUB, 0, 1, SCM_OBJ(&xyzzylisp_buffer_size__NAME), xyzzylisp_buffer_size, NULL, NULL);
138    
139 aloha 1.6 static ScmObj xyzzylisp_get_previous_buffer(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_)
140     {
141     ScmObj buffer_scm;
142     ScmObj buffer;
143     ScmObj SCM_OPTARGS = SCM_ARGREF(SCM_ARGCNT-1);
144     SCM_ENTER_SUBR("get-previous-buffer");
145     if (Scm_Length(SCM_OPTARGS) > 1)
146     Scm_Error("too many arguments: up to 1 is expected, %d given.", Scm_Length(SCM_OPTARGS));
147     if (SCM_NULLP(SCM_OPTARGS)) buffer_scm = SCM_UNBOUND;
148     else {
149     buffer_scm = SCM_CAR(SCM_OPTARGS);
150     SCM_OPTARGS = SCM_CDR(SCM_OPTARGS);
151     }
152     buffer = (buffer_scm);
153     {
154     {
155     GtkTextBuffer* SCM_RESULT;
156     if(buffer == SCM_UNBOUND)
157     SCM_RESULT = Shiki_get_previous_buffer(Shiki_CURRENT_TEXT_BUFFER);
158     else if(SHIKI_BUFFER_P(buffer))
159     SCM_RESULT = Shiki_get_previous_buffer(SHIKI_BUFFER_UNBOX(buffer));
160     else
161     Scm_Error("buffer required, but got %S", buffer);
162     if(SCM_RESULT)
163     g_object_ref(SCM_RESULT);
164     SCM_RETURN(SHIKI_BUFFER_BOX(SCM_RESULT));
165     }
166     }
167     }
168    
169     static SCM_DEFINE_STRING_CONST(xyzzylisp_get_previous_buffer__NAME, "get-previous-buffer", 19, 19);
170     static SCM_DEFINE_SUBR(xyzzylisp_get_previous_buffer__STUB, 0, 1, SCM_OBJ(&xyzzylisp_get_previous_buffer__NAME), xyzzylisp_get_previous_buffer, NULL, NULL);
171    
172     static ScmObj xyzzylisp_buffer_list(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_)
173     {
174     SCM_ENTER_SUBR("buffer-list");
175     {
176     {
177     ScmObj SCM_RESULT;
178     SCM_RESULT = Shiki_buffer_list();
179     SCM_RETURN(SCM_OBJ_SAFE(SCM_RESULT));
180     }
181     }
182     }
183    
184     static SCM_DEFINE_STRING_CONST(xyzzylisp_buffer_list__NAME, "buffer-list", 11, 11);
185     static SCM_DEFINE_SUBR(xyzzylisp_buffer_list__STUB, 0, 0, SCM_OBJ(&xyzzylisp_buffer_list__NAME), xyzzylisp_buffer_list, NULL, NULL);
186    
187     static ScmObj xyzzylisp_next_buffer(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_)
188     {
189     SCM_ENTER_SUBR("next-buffer");
190     {
191     gtk_notebook_next_page(Shiki_EDITOR_NOTEBOOK);
192     SCM_RETURN(SCM_UNDEFINED);
193     }
194     }
195    
196     static SCM_DEFINE_STRING_CONST(xyzzylisp_next_buffer__NAME, "next-buffer", 11, 11);
197     static SCM_DEFINE_SUBR(xyzzylisp_next_buffer__STUB, 0, 0, SCM_OBJ(&xyzzylisp_next_buffer__NAME), xyzzylisp_next_buffer, NULL, NULL);
198    
199     static ScmObj xyzzylisp_previous_buffer(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_)
200     {
201     SCM_ENTER_SUBR("previous-buffer");
202     {
203     gtk_notebook_prev_page(Shiki_EDITOR_NOTEBOOK);
204     SCM_RETURN(SCM_UNDEFINED);
205     }
206     }
207    
208     static SCM_DEFINE_STRING_CONST(xyzzylisp_previous_buffer__NAME, "previous-buffer", 15, 15);
209     static SCM_DEFINE_SUBR(xyzzylisp_previous_buffer__STUB, 0, 0, SCM_OBJ(&xyzzylisp_previous_buffer__NAME), xyzzylisp_previous_buffer, NULL, NULL);
210    
211     static ScmObj xyzzylisp_buffer_name(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_)
212     {
213     ScmObj buffer_scm;
214     GtkTextBuffer* buffer;
215     SCM_ENTER_SUBR("buffer-name");
216     buffer_scm = SCM_ARGREF(0);
217     if (!SHIKI_BUFFER_P(buffer_scm)) Scm_Error("buffer required, but got %S", buffer_scm);
218     buffer = SHIKI_BUFFER_UNBOX(buffer_scm);
219     {
220     {
221     const char * SCM_RESULT;
222     SCM_RESULT = (Shiki_buffer_name(buffer));
223     SCM_RETURN(SCM_MAKE_MAYBE(SCM_MAKE_STR_COPYING, SCM_RESULT));
224     }
225     }
226     }
227    
228     static SCM_DEFINE_STRING_CONST(xyzzylisp_buffer_name__NAME, "buffer-name", 11, 11);
229     static SCM_DEFINE_SUBR(xyzzylisp_buffer_name__STUB, 1, 0, SCM_OBJ(&xyzzylisp_buffer_name__NAME), xyzzylisp_buffer_name, NULL, NULL);
230    
231 aloha 1.7 static ScmObj xyzzylisp_deleted_buffer_p(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_)
232     {
233     ScmObj buffer_scm;
234     GtkTextBuffer* buffer;
235     SCM_ENTER_SUBR("deleted-buffer-p");
236     buffer_scm = SCM_ARGREF(0);
237     if (!SHIKI_BUFFER_P(buffer_scm)) Scm_Error("buffer required, but got %S", buffer_scm);
238     buffer = SHIKI_BUFFER_UNBOX(buffer_scm);
239     {
240     {
241     int SCM_RESULT;
242     SCM_RESULT = (Shiki_deleted_buffer_p(buffer));
243     SCM_RETURN(SCM_MAKE_MAYBE(SCM_MAKE_BOOL, SCM_RESULT));
244     }
245     }
246     }
247    
248     static SCM_DEFINE_STRING_CONST(xyzzylisp_deleted_buffer_p__NAME, "deleted-buffer-p", 16, 16);
249     static SCM_DEFINE_SUBR(xyzzylisp_deleted_buffer_p__STUB, 1, 0, SCM_OBJ(&xyzzylisp_deleted_buffer_p__NAME), xyzzylisp_deleted_buffer_p, NULL, NULL);
250    
251 aloha 1.6 static ScmObj xyzzylisp_buffer_modified_p(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_)
252     {
253     ScmObj buffer_scm;
254     ScmObj buffer;
255     ScmObj SCM_OPTARGS = SCM_ARGREF(SCM_ARGCNT-1);
256     SCM_ENTER_SUBR("buffer-modified-p");
257     if (Scm_Length(SCM_OPTARGS) > 1)
258     Scm_Error("too many arguments: up to 1 is expected, %d given.", Scm_Length(SCM_OPTARGS));
259     if (SCM_NULLP(SCM_OPTARGS)) buffer_scm = SCM_UNBOUND;
260     else {
261     buffer_scm = SCM_CAR(SCM_OPTARGS);
262     SCM_OPTARGS = SCM_CDR(SCM_OPTARGS);
263     }
264     buffer = (buffer_scm);
265     {
266     {
267     int SCM_RESULT;
268     if(buffer == SCM_UNBOUND)
269     SCM_RESULT = gtk_text_buffer_get_modified(Shiki_CURRENT_TEXT_BUFFER);
270     else if(SHIKI_BUFFER_P(buffer))
271     SCM_RESULT = gtk_text_buffer_get_modified(SHIKI_BUFFER_UNBOX(buffer));
272     else
273     Scm_Error("buffer required, but got %S", buffer);
274     SCM_RETURN(SCM_MAKE_BOOL(SCM_RESULT));
275     }
276     }
277     }
278    
279     static SCM_DEFINE_STRING_CONST(xyzzylisp_buffer_modified_p__NAME, "buffer-modified-p", 17, 17);
280     static SCM_DEFINE_SUBR(xyzzylisp_buffer_modified_p__STUB, 0, 1, SCM_OBJ(&xyzzylisp_buffer_modified_p__NAME), xyzzylisp_buffer_modified_p, NULL, NULL);
281    
282 aloha 1.1 static ScmObj xyzzylisp_buffer_substring(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_)
283     {
284     ScmObj start_scm;
285     int start;
286     ScmObj end_scm;
287     int end;
288     SCM_ENTER_SUBR("buffer-substring");
289     start_scm = SCM_ARGREF(0);
290     if (!SCM_EXACTP(start_scm)) Scm_Error("C integer required, but got %S", start_scm);
291     start = Scm_GetInteger(start_scm);
292     end_scm = SCM_ARGREF(1);
293     if (!SCM_EXACTP(end_scm)) Scm_Error("C integer required, but got %S", end_scm);
294     end = Scm_GetInteger(end_scm);
295     {
296 aloha 1.3 {
297     ScmString* SCM_RESULT;
298     gchar *substr = Shiki_buffer_substring(start, end);
299     if(substr)
300     SCM_RESULT = SCM_STRING(SCM_MAKE_STR_COPYING(substr));
301     else
302     SCM_RESULT = SCM_STRING(SCM_FALSE);
303     g_free(substr);
304     SCM_RETURN(SCM_MAKE_MAYBE(SCM_OBJ_SAFE, SCM_RESULT));
305     }
306 aloha 1.1 }
307     }
308    
309     static SCM_DEFINE_STRING_CONST(xyzzylisp_buffer_substring__NAME, "buffer-substring", 16, 16);
310     static SCM_DEFINE_SUBR(xyzzylisp_buffer_substring__STUB, 2, 0, SCM_OBJ(&xyzzylisp_buffer_substring__NAME), xyzzylisp_buffer_substring, NULL, NULL);
311    
312 aloha 1.4 static ScmObj xyzzylisp_delete_region(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_)
313     {
314     ScmObj start_scm;
315     int start;
316     ScmObj end_scm;
317     int end;
318     SCM_ENTER_SUBR("delete-region");
319     start_scm = SCM_ARGREF(0);
320     if (!SCM_EXACTP(start_scm)) Scm_Error("C integer required, but got %S", start_scm);
321     start = Scm_GetInteger(start_scm);
322     end_scm = SCM_ARGREF(1);
323     if (!SCM_EXACTP(end_scm)) Scm_Error("C integer required, but got %S", end_scm);
324     end = Scm_GetInteger(end_scm);
325     {
326     Shiki_delete_region(start, end);
327     SCM_RETURN(SCM_UNDEFINED);
328     }
329     }
330    
331     static SCM_DEFINE_STRING_CONST(xyzzylisp_delete_region__NAME, "delete-region", 13, 13);
332     static SCM_DEFINE_SUBR(xyzzylisp_delete_region__STUB, 2, 0, SCM_OBJ(&xyzzylisp_delete_region__NAME), xyzzylisp_delete_region, NULL, NULL);
333    
334     static ScmObj xyzzylisp_insert(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_)
335     {
336     ScmObj char_or_string_scm;
337     ScmObj char_or_string;
338     SCM_ENTER_SUBR("insert");
339     char_or_string_scm = SCM_ARGREF(0);
340     char_or_string = (char_or_string_scm);
341     {
342     if(SCM_CHARP(char_or_string)) {
343     gunichar u = SCM_CHAR_VALUE(char_or_string);
344     gchar *str = g_ucs4_to_utf8(&u, 1, NULL, NULL, NULL);
345     gtk_text_buffer_insert_at_cursor(Shiki_CURRENT_TEXT_BUFFER, str, -1);
346     g_free(str);
347     } else if(SCM_STRINGP(char_or_string))
348     gtk_text_buffer_insert_at_cursor(Shiki_CURRENT_TEXT_BUFFER, SCM_STRING_CONST_CSTRING(char_or_string), -1);
349 aloha 1.6 else
350     Scm_Error("character or string required, but got %S", char_or_string);
351 aloha 1.4 SCM_RETURN(SCM_UNDEFINED);
352     }
353     }
354    
355     static SCM_DEFINE_STRING_CONST(xyzzylisp_insert__NAME, "insert", 6, 6);
356     static SCM_DEFINE_SUBR(xyzzylisp_insert__STUB, 1, 0, SCM_OBJ(&xyzzylisp_insert__NAME), xyzzylisp_insert, NULL, NULL);
357    
358     static ScmObj xyzzylisp_point(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_)
359     {
360     SCM_ENTER_SUBR("point");
361     {
362     {
363     int SCM_RESULT;
364     SCM_RESULT = Shiki_point();
365     SCM_RETURN(Scm_MakeInteger(SCM_RESULT));
366     }
367     }
368     }
369    
370     static SCM_DEFINE_STRING_CONST(xyzzylisp_point__NAME, "point", 5, 5);
371     static SCM_DEFINE_SUBR(xyzzylisp_point__STUB, 0, 0, SCM_OBJ(&xyzzylisp_point__NAME), xyzzylisp_point, NULL, NULL);
372    
373     static ScmObj xyzzylisp_point_max(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_)
374     {
375     SCM_ENTER_SUBR("point-max");
376     {
377     {
378     int SCM_RESULT;
379     SCM_RESULT = Shiki_point_max();
380     SCM_RETURN(Scm_MakeInteger(SCM_RESULT));
381     }
382     }
383     }
384    
385     static SCM_DEFINE_STRING_CONST(xyzzylisp_point_max__NAME, "point-max", 9, 9);
386     static SCM_DEFINE_SUBR(xyzzylisp_point_max__STUB, 0, 0, SCM_OBJ(&xyzzylisp_point_max__NAME), xyzzylisp_point_max, NULL, NULL);
387    
388     static ScmObj xyzzylisp_point_min(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_)
389     {
390     SCM_ENTER_SUBR("point-min");
391     {
392     {
393     int SCM_RESULT;
394     SCM_RESULT = Shiki_point_min();
395     SCM_RETURN(Scm_MakeInteger(SCM_RESULT));
396     }
397     }
398     }
399    
400     static SCM_DEFINE_STRING_CONST(xyzzylisp_point_min__NAME, "point-min", 9, 9);
401     static SCM_DEFINE_SUBR(xyzzylisp_point_min__STUB, 0, 0, SCM_OBJ(&xyzzylisp_point_min__NAME), xyzzylisp_point_min, NULL, NULL);
402    
403     static ScmObj xyzzylisp_goto_char(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_)
404     {
405     ScmObj offset_scm;
406     int offset;
407     SCM_ENTER_SUBR("goto-char");
408     offset_scm = SCM_ARGREF(0);
409     if (!SCM_EXACTP(offset_scm)) Scm_Error("C integer required, but got %S", offset_scm);
410     offset = Scm_GetInteger(offset_scm);
411     {
412     Shiki_goto_char(offset);
413     SCM_RETURN(SCM_UNDEFINED);
414     }
415     }
416    
417     static SCM_DEFINE_STRING_CONST(xyzzylisp_goto_char__NAME, "goto-char", 9, 9);
418     static SCM_DEFINE_SUBR(xyzzylisp_goto_char__STUB, 1, 0, SCM_OBJ(&xyzzylisp_goto_char__NAME), xyzzylisp_goto_char, NULL, NULL);
419    
420     static ScmObj xyzzylisp_forward_char(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_)
421     {
422     SCM_ENTER_SUBR("forward-char");
423     {
424     Shiki_forward_char();
425     SCM_RETURN(SCM_UNDEFINED);
426     }
427     }
428    
429     static SCM_DEFINE_STRING_CONST(xyzzylisp_forward_char__NAME, "forward-char", 12, 12);
430     static SCM_DEFINE_SUBR(xyzzylisp_forward_char__STUB, 0, 0, SCM_OBJ(&xyzzylisp_forward_char__NAME), xyzzylisp_forward_char, NULL, NULL);
431    
432     static ScmObj xyzzylisp_backward_char(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_)
433     {
434     SCM_ENTER_SUBR("backward-char");
435     {
436     Shiki_backward_char();
437     SCM_RETURN(SCM_UNDEFINED);
438     }
439     }
440    
441     static SCM_DEFINE_STRING_CONST(xyzzylisp_backward_char__NAME, "backward-char", 13, 13);
442     static SCM_DEFINE_SUBR(xyzzylisp_backward_char__STUB, 0, 0, SCM_OBJ(&xyzzylisp_backward_char__NAME), xyzzylisp_backward_char, NULL, NULL);
443    
444     static ScmObj xyzzylisp_goto_line(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_)
445     {
446     ScmObj line_scm;
447     int line;
448     SCM_ENTER_SUBR("goto-line");
449     line_scm = SCM_ARGREF(0);
450     if (!SCM_EXACTP(line_scm)) Scm_Error("C integer required, but got %S", line_scm);
451     line = Scm_GetInteger(line_scm);
452     {
453     Shiki_goto_line(line);
454     SCM_RETURN(SCM_UNDEFINED);
455     }
456     }
457    
458     static SCM_DEFINE_STRING_CONST(xyzzylisp_goto_line__NAME, "goto-line", 9, 9);
459     static SCM_DEFINE_SUBR(xyzzylisp_goto_line__STUB, 1, 0, SCM_OBJ(&xyzzylisp_goto_line__NAME), xyzzylisp_goto_line, NULL, NULL);
460    
461     static ScmObj xyzzylisp_goto_bol(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_)
462     {
463     SCM_ENTER_SUBR("goto-bol");
464     {
465     Shiki_goto_bol();
466     SCM_RETURN(SCM_UNDEFINED);
467     }
468     }
469    
470     static SCM_DEFINE_STRING_CONST(xyzzylisp_goto_bol__NAME, "goto-bol", 8, 8);
471     static SCM_DEFINE_SUBR(xyzzylisp_goto_bol__STUB, 0, 0, SCM_OBJ(&xyzzylisp_goto_bol__NAME), xyzzylisp_goto_bol, NULL, NULL);
472    
473     static ScmObj xyzzylisp_goto_eol(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_)
474     {
475     SCM_ENTER_SUBR("goto-eol");
476     {
477     Shiki_goto_eol();
478     SCM_RETURN(SCM_UNDEFINED);
479     }
480     }
481    
482     static SCM_DEFINE_STRING_CONST(xyzzylisp_goto_eol__NAME, "goto-eol", 8, 8);
483     static SCM_DEFINE_SUBR(xyzzylisp_goto_eol__STUB, 0, 0, SCM_OBJ(&xyzzylisp_goto_eol__NAME), xyzzylisp_goto_eol, NULL, NULL);
484    
485 aloha 1.1 void Scm_Init_xyzzylisp(ScmModule *module)
486     {
487    
488 aloha 1.6 SCM_DEFINE(module, "bufferp", SCM_OBJ(&xyzzylisp_bufferp__STUB));
489 aloha 1.5 SCM_DEFINE(module, "selected-buffer", SCM_OBJ(&xyzzylisp_selected_buffer__STUB));
490 aloha 1.6 SCM_DEFINE(module, "get-next-buffer", SCM_OBJ(&xyzzylisp_get_next_buffer__STUB));
491 aloha 1.7 SCM_DEFINE(module, "buffer-lines", SCM_OBJ(&xyzzylisp_buffer_lines__STUB));
492     SCM_DEFINE(module, "buffer-size", SCM_OBJ(&xyzzylisp_buffer_size__STUB));
493 aloha 1.6 SCM_DEFINE(module, "get-previous-buffer", SCM_OBJ(&xyzzylisp_get_previous_buffer__STUB));
494     SCM_DEFINE(module, "buffer-list", SCM_OBJ(&xyzzylisp_buffer_list__STUB));
495     SCM_DEFINE(module, "next-buffer", SCM_OBJ(&xyzzylisp_next_buffer__STUB));
496     SCM_DEFINE(module, "previous-buffer", SCM_OBJ(&xyzzylisp_previous_buffer__STUB));
497     SCM_DEFINE(module, "buffer-name", SCM_OBJ(&xyzzylisp_buffer_name__STUB));
498 aloha 1.7 SCM_DEFINE(module, "deleted-buffer-p", SCM_OBJ(&xyzzylisp_deleted_buffer_p__STUB));
499 aloha 1.6 SCM_DEFINE(module, "buffer-modified-p", SCM_OBJ(&xyzzylisp_buffer_modified_p__STUB));
500 aloha 1.1 SCM_DEFINE(module, "buffer-substring", SCM_OBJ(&xyzzylisp_buffer_substring__STUB));
501 aloha 1.4 SCM_DEFINE(module, "delete-region", SCM_OBJ(&xyzzylisp_delete_region__STUB));
502     SCM_DEFINE(module, "insert", SCM_OBJ(&xyzzylisp_insert__STUB));
503     SCM_DEFINE(module, "point", SCM_OBJ(&xyzzylisp_point__STUB));
504     SCM_DEFINE(module, "point-max", SCM_OBJ(&xyzzylisp_point_max__STUB));
505     SCM_DEFINE(module, "point-min", SCM_OBJ(&xyzzylisp_point_min__STUB));
506     SCM_DEFINE(module, "goto-char", SCM_OBJ(&xyzzylisp_goto_char__STUB));
507     SCM_DEFINE(module, "forward-char", SCM_OBJ(&xyzzylisp_forward_char__STUB));
508     SCM_DEFINE(module, "backward-char", SCM_OBJ(&xyzzylisp_backward_char__STUB));
509     SCM_DEFINE(module, "goto-line", SCM_OBJ(&xyzzylisp_goto_line__STUB));
510     SCM_DEFINE(module, "goto-bol", SCM_OBJ(&xyzzylisp_goto_bol__STUB));
511     SCM_DEFINE(module, "goto-eol", SCM_OBJ(&xyzzylisp_goto_eol__STUB));
512 aloha 1.1 }

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26