2 /******************************************************************************
4 * This file has been generated automatically using build-glue.scm
5 * from build-glue-basic.scm. Please do not edit its contents.
6 * Copyright (C) 2000 Joris van der Hoeven
8 * This software falls under the GNU general public license version 3 or later.
9 * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
10 * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
12 ******************************************************************************/
15 tmg_texmacs_version_release (SCM arg1
) {
16 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "texmacs-version-release");
18 string in1
= scm_to_string (arg1
);
21 string out
= texmacs_version (in1
);
24 return string_to_scm (out
);
28 tmg_version_beforeP (SCM arg1
, SCM arg2
) {
29 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "version-before?");
30 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "version-before?");
32 string in1
= scm_to_string (arg1
);
33 string in2
= scm_to_string (arg2
);
36 bool out
= version_inf (in1
, in2
);
39 return bool_to_scm (out
);
45 bool out
= os_win32 ();
48 return bool_to_scm (out
);
54 bool out
= os_mingw ();
57 return bool_to_scm (out
);
63 bool out
= os_macos ();
66 return bool_to_scm (out
);
72 bool out
= gui_is_x ();
75 return bool_to_scm (out
);
81 bool out
= gui_is_qt ();
84 return bool_to_scm (out
);
88 tmg_tm_output (SCM arg1
) {
89 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tm-output");
91 string in1
= scm_to_string (arg1
);
97 return SCM_UNSPECIFIED
;
101 tmg_tm_errput (SCM arg1
) {
102 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tm-errput");
104 string in1
= scm_to_string (arg1
);
110 return SCM_UNSPECIFIED
;
114 tmg_win32_display (SCM arg1
) {
115 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "win32-display");
117 string in1
= scm_to_string (arg1
);
123 return SCM_UNSPECIFIED
;
127 tmg_scheme_dialect () {
129 string out
= scheme_dialect ();
132 return string_to_scm (out
);
136 tmg_get_texmacs_path () {
138 string out
= get_texmacs_path ();
141 return string_to_scm (out
);
147 scheme_tree out
= plugin_list ();
150 return scheme_tree_to_scm (out
);
154 tmg_get_font_type () {
156 int out
= get_font_type ();
159 return int_to_scm (out
);
163 tmg_set_font_type (SCM arg1
) {
164 SCM_ASSERT_INT (arg1
, SCM_ARG1
, "set-font-type");
166 int in1
= scm_to_int (arg1
);
172 return SCM_UNSPECIFIED
;
176 tmg_font_exists_in_ttP (SCM arg1
) {
177 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "font-exists-in-tt?");
179 string in1
= scm_to_string (arg1
);
182 bool out
= tt_font_exists (in1
);
185 return bool_to_scm (out
);
189 tmg_eval_system (SCM arg1
) {
190 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "eval-system");
192 string in1
= scm_to_string (arg1
);
195 string out
= eval_system (in1
);
198 return string_to_scm (out
);
202 tmg_var_eval_system (SCM arg1
) {
203 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "var-eval-system");
205 string in1
= scm_to_string (arg1
);
208 string out
= var_eval_system (in1
);
211 return string_to_scm (out
);
215 tmg_get_locale_language () {
217 string out
= get_locale_language ();
220 return string_to_scm (out
);
224 tmg_texmacs_time () {
226 int out
= texmacs_time ();
229 return int_to_scm (out
);
233 tmg_texmacs_memory () {
235 int out
= mem_used ();
238 return int_to_scm (out
);
242 tmg_bench_print (SCM arg1
) {
243 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "bench-print");
245 string in1
= scm_to_string (arg1
);
251 return SCM_UNSPECIFIED
;
255 tmg_bench_print_all () {
260 return SCM_UNSPECIFIED
;
264 tmg_system_wait (SCM arg1
, SCM arg2
) {
265 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "system-wait");
266 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "system-wait");
268 string in1
= scm_to_string (arg1
);
269 string in2
= scm_to_string (arg2
);
272 system_wait (in1
, in2
);
275 return SCM_UNSPECIFIED
;
279 tmg_set_bibtex_command (SCM arg1
) {
280 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "set-bibtex-command");
282 string in1
= scm_to_string (arg1
);
285 set_bibtex_command (in1
);
288 return SCM_UNSPECIFIED
;
292 tmg_math_symbol_group (SCM arg1
) {
293 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "math-symbol-group");
295 string in1
= scm_to_string (arg1
);
298 string out
= math_symbol_group (in1
);
301 return string_to_scm (out
);
305 tmg_math_group_members (SCM arg1
) {
306 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "math-group-members");
308 string in1
= scm_to_string (arg1
);
311 array_string out
= math_group_members (in1
);
314 return array_string_to_scm (out
);
318 tmg_math_symbol_type (SCM arg1
) {
319 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "math-symbol-type");
321 string in1
= scm_to_string (arg1
);
324 string out
= math_symbol_type (in1
);
327 return string_to_scm (out
);
331 tmg_object_2command (SCM arg1
) {
332 SCM_ASSERT_OBJECT (arg1
, SCM_ARG1
, "object->command");
334 object in1
= scm_to_object (arg1
);
337 command out
= as_command (in1
);
340 return command_to_scm (out
);
344 tmg_exec_delayed (SCM arg1
) {
345 SCM_ASSERT_OBJECT (arg1
, SCM_ARG1
, "exec-delayed");
347 object in1
= scm_to_object (arg1
);
353 return SCM_UNSPECIFIED
;
357 tmg_exec_delayed_pause (SCM arg1
) {
358 SCM_ASSERT_OBJECT (arg1
, SCM_ARG1
, "exec-delayed-pause");
360 object in1
= scm_to_object (arg1
);
363 exec_delayed_pause (in1
);
366 return SCM_UNSPECIFIED
;
370 tmg_set_input_language (SCM arg1
) {
371 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "set-input-language");
373 string in1
= scm_to_string (arg1
);
376 set_input_language (in1
);
379 return SCM_UNSPECIFIED
;
383 tmg_get_input_language () {
385 string out
= get_input_language ();
388 return string_to_scm (out
);
392 tmg_set_output_language (SCM arg1
) {
393 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "set-output-language");
395 string in1
= scm_to_string (arg1
);
398 gui_set_output_language (in1
);
401 return SCM_UNSPECIFIED
;
405 tmg_get_output_language () {
407 string out
= get_output_language ();
410 return string_to_scm (out
);
414 tmg_translate (SCM arg1
, SCM arg2
, SCM arg3
) {
415 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "translate");
416 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "translate");
417 SCM_ASSERT_STRING (arg3
, SCM_ARG3
, "translate");
419 string in1
= scm_to_string (arg1
);
420 string in2
= scm_to_string (arg2
);
421 string in3
= scm_to_string (arg3
);
424 string out
= translate (in1
, in2
, in3
);
427 return string_to_scm (out
);
431 tmg_color (SCM arg1
) {
432 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "color");
434 string in1
= scm_to_string (arg1
);
437 int out
= named_color (in1
);
440 return int_to_scm (out
);
446 double out
= new_author ();
449 return double_to_scm (out
);
453 tmg_set_author (SCM arg1
) {
454 SCM_ASSERT_DOUBLE (arg1
, SCM_ARG1
, "set-author");
456 double in1
= scm_to_double (arg1
);
462 return SCM_UNSPECIFIED
;
468 double out
= get_author ();
471 return double_to_scm (out
);
475 tmg_debug_set (SCM arg1
, SCM arg2
) {
476 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "debug-set");
477 SCM_ASSERT_BOOL (arg2
, SCM_ARG2
, "debug-set");
479 string in1
= scm_to_string (arg1
);
480 bool in2
= scm_to_bool (arg2
);
483 debug_set (in1
, in2
);
486 return SCM_UNSPECIFIED
;
490 tmg_debug_get (SCM arg1
) {
491 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "debug-get");
493 string in1
= scm_to_string (arg1
);
496 bool out
= debug_get (in1
);
499 return bool_to_scm (out
);
508 return SCM_UNSPECIFIED
;
512 tmg_cout_unbuffer () {
514 string out
= cout_unbuffer ();
517 return string_to_scm (out
);
521 tmg_image_2psdoc (SCM arg1
) {
522 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "image->psdoc");
524 url in1
= scm_to_url (arg1
);
527 string out
= image_to_psdoc (in1
);
530 return string_to_scm (out
);
534 tmg_tree_2stree (SCM arg1
) {
535 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree->stree");
537 tree in1
= scm_to_tree (arg1
);
540 scheme_tree out
= tree_to_scheme_tree (in1
);
543 return scheme_tree_to_scm (out
);
547 tmg_stree_2tree (SCM arg1
) {
548 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "stree->tree");
550 scheme_tree in1
= scm_to_scheme_tree (arg1
);
553 tree out
= scheme_tree_to_tree (in1
);
556 return tree_to_scm (out
);
560 tmg_tree_2string (SCM arg1
) {
561 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree->string");
563 tree in1
= scm_to_tree (arg1
);
566 string out
= coerce_tree_string (in1
);
569 return string_to_scm (out
);
573 tmg_string_2tree (SCM arg1
) {
574 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string->tree");
576 string in1
= scm_to_string (arg1
);
579 tree out
= coerce_string_tree (in1
);
582 return tree_to_scm (out
);
586 tmg_tm_2tree (SCM arg1
) {
587 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "tm->tree");
589 content in1
= scm_to_content (arg1
);
592 tree out
= tree (in1
);
595 return tree_to_scm (out
);
599 tmg_tree_atomicP (SCM arg1
) {
600 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-atomic?");
602 tree in1
= scm_to_tree (arg1
);
605 bool out
= is_atomic (in1
);
608 return bool_to_scm (out
);
612 tmg_tree_compoundP (SCM arg1
) {
613 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-compound?");
615 tree in1
= scm_to_tree (arg1
);
618 bool out
= is_compound (in1
);
621 return bool_to_scm (out
);
625 tmg_tree_label (SCM arg1
) {
626 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-label");
628 tree in1
= scm_to_tree (arg1
);
631 tree_label out
= L (in1
);
634 return tree_label_to_scm (out
);
638 tmg_tree_children (SCM arg1
) {
639 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-children");
641 tree in1
= scm_to_tree (arg1
);
644 array_tree out
= A (in1
);
647 return array_tree_to_scm (out
);
651 tmg_tree_arity (SCM arg1
) {
652 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-arity");
654 tree in1
= scm_to_tree (arg1
);
660 return int_to_scm (out
);
664 tmg_tree_child_ref (SCM arg1
, SCM arg2
) {
665 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-child-ref");
666 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "tree-child-ref");
668 tree in1
= scm_to_tree (arg1
);
669 int in2
= scm_to_int (arg2
);
672 tree out
= tree_ref (in1
, in2
);
675 return tree_to_scm (out
);
679 tmg_tree_child_setS (SCM arg1
, SCM arg2
, SCM arg3
) {
680 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-child-set!");
681 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "tree-child-set!");
682 SCM_ASSERT_CONTENT (arg3
, SCM_ARG3
, "tree-child-set!");
684 tree in1
= scm_to_tree (arg1
);
685 int in2
= scm_to_int (arg2
);
686 content in3
= scm_to_content (arg3
);
689 tree out
= tree_set (in1
, in2
, in3
);
692 return tree_to_scm (out
);
696 tmg_tree_child_insert (SCM arg1
, SCM arg2
, SCM arg3
) {
697 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "tree-child-insert");
698 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "tree-child-insert");
699 SCM_ASSERT_CONTENT (arg3
, SCM_ARG3
, "tree-child-insert");
701 content in1
= scm_to_content (arg1
);
702 int in2
= scm_to_int (arg2
);
703 content in3
= scm_to_content (arg3
);
706 tree out
= tree_child_insert (in1
, in2
, in3
);
709 return tree_to_scm (out
);
713 tmg_tree_ip (SCM arg1
) {
714 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-ip");
716 tree in1
= scm_to_tree (arg1
);
719 path out
= obtain_ip (in1
);
722 return path_to_scm (out
);
726 tmg_tree_activeP (SCM arg1
) {
727 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-active?");
729 tree in1
= scm_to_tree (arg1
);
732 bool out
= tree_active (in1
);
735 return bool_to_scm (out
);
739 tmg_tree_eqP (SCM arg1
, SCM arg2
) {
740 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-eq?");
741 SCM_ASSERT_TREE (arg2
, SCM_ARG2
, "tree-eq?");
743 tree in1
= scm_to_tree (arg1
);
744 tree in2
= scm_to_tree (arg2
);
747 bool out
= strong_equal (in1
, in2
);
750 return bool_to_scm (out
);
754 tmg_subtree (SCM arg1
, SCM arg2
) {
755 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "subtree");
756 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "subtree");
758 tree in1
= scm_to_tree (arg1
);
759 path in2
= scm_to_path (arg2
);
762 tree out
= subtree (in1
, in2
);
765 return tree_to_scm (out
);
769 tmg_tree_range (SCM arg1
, SCM arg2
, SCM arg3
) {
770 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-range");
771 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "tree-range");
772 SCM_ASSERT_INT (arg3
, SCM_ARG3
, "tree-range");
774 tree in1
= scm_to_tree (arg1
);
775 int in2
= scm_to_int (arg2
);
776 int in3
= scm_to_int (arg3
);
779 tree out
= tree_range (in1
, in2
, in3
);
782 return tree_to_scm (out
);
786 tmg_tree_copy (SCM arg1
) {
787 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-copy");
789 tree in1
= scm_to_tree (arg1
);
792 tree out
= copy (in1
);
795 return tree_to_scm (out
);
799 tmg_tree_append (SCM arg1
, SCM arg2
) {
800 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-append");
801 SCM_ASSERT_TREE (arg2
, SCM_ARG2
, "tree-append");
803 tree in1
= scm_to_tree (arg1
);
804 tree in2
= scm_to_tree (arg2
);
807 tree out
= tree_append (in1
, in2
);
810 return tree_to_scm (out
);
814 tmg_tree_right_index (SCM arg1
) {
815 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-right-index");
817 tree in1
= scm_to_tree (arg1
);
820 int out
= right_index (in1
);
823 return int_to_scm (out
);
827 tmg_tree_label_extensionP (SCM arg1
) {
828 SCM_ASSERT_TREE_LABEL (arg1
, SCM_ARG1
, "tree-label-extension?");
830 tree_label in1
= scm_to_tree_label (arg1
);
833 bool out
= is_extension (in1
);
836 return bool_to_scm (out
);
840 tmg_tree_multi_paragraphP (SCM arg1
) {
841 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-multi-paragraph?");
843 tree in1
= scm_to_tree (arg1
);
846 bool out
= is_multi_paragraph (in1
);
849 return bool_to_scm (out
);
853 tmg_tree_simplify (SCM arg1
) {
854 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-simplify");
856 tree in1
= scm_to_tree (arg1
);
859 tree out
= simplify_correct (in1
);
862 return tree_to_scm (out
);
866 tmg_tree_accessible_childP (SCM arg1
, SCM arg2
) {
867 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-accessible-child?");
868 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "tree-accessible-child?");
870 tree in1
= scm_to_tree (arg1
);
871 int in2
= scm_to_int (arg2
);
874 bool out
= is_accessible_child (in1
, in2
);
877 return bool_to_scm (out
);
881 tmg_tree_accessible_children (SCM arg1
) {
882 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-accessible-children");
884 tree in1
= scm_to_tree (arg1
);
887 array_tree out
= accessible_children (in1
);
890 return array_tree_to_scm (out
);
894 tmg_tree_load_inclusion (SCM arg1
) {
895 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "tree-load-inclusion");
897 url in1
= scm_to_url (arg1
);
900 tree out
= load_inclusion (in1
);
903 return tree_to_scm (out
);
907 tmg_tree_as_string (SCM arg1
) {
908 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-as-string");
910 tree in1
= scm_to_tree (arg1
);
913 string out
= var_as_string (in1
);
916 return string_to_scm (out
);
920 tmg_tree_extents (SCM arg1
) {
921 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "tree-extents");
923 content in1
= scm_to_content (arg1
);
926 tree out
= tree_extents (in1
);
929 return tree_to_scm (out
);
933 tmg_tree_emptyP (SCM arg1
) {
934 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "tree-empty?");
936 content in1
= scm_to_content (arg1
);
939 bool out
= is_empty (in1
);
942 return bool_to_scm (out
);
946 tmg_tree_assign (SCM arg1
, SCM arg2
) {
947 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-assign");
948 SCM_ASSERT_CONTENT (arg2
, SCM_ARG2
, "tree-assign");
950 tree in1
= scm_to_tree (arg1
);
951 content in2
= scm_to_content (arg2
);
954 tree out
= tree_assign (in1
, in2
);
957 return tree_to_scm (out
);
961 tmg_tree_var_insert (SCM arg1
, SCM arg2
, SCM arg3
) {
962 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-var-insert");
963 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "tree-var-insert");
964 SCM_ASSERT_CONTENT (arg3
, SCM_ARG3
, "tree-var-insert");
966 tree in1
= scm_to_tree (arg1
);
967 int in2
= scm_to_int (arg2
);
968 content in3
= scm_to_content (arg3
);
971 tree out
= tree_insert (in1
, in2
, in3
);
974 return tree_to_scm (out
);
978 tmg_tree_remove (SCM arg1
, SCM arg2
, SCM arg3
) {
979 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-remove");
980 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "tree-remove");
981 SCM_ASSERT_INT (arg3
, SCM_ARG3
, "tree-remove");
983 tree in1
= scm_to_tree (arg1
);
984 int in2
= scm_to_int (arg2
);
985 int in3
= scm_to_int (arg3
);
988 tree out
= tree_remove (in1
, in2
, in3
);
991 return tree_to_scm (out
);
995 tmg_tree_split (SCM arg1
, SCM arg2
, SCM arg3
) {
996 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-split");
997 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "tree-split");
998 SCM_ASSERT_INT (arg3
, SCM_ARG3
, "tree-split");
1000 tree in1
= scm_to_tree (arg1
);
1001 int in2
= scm_to_int (arg2
);
1002 int in3
= scm_to_int (arg3
);
1005 tree out
= tree_split (in1
, in2
, in3
);
1008 return tree_to_scm (out
);
1012 tmg_tree_join (SCM arg1
, SCM arg2
) {
1013 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-join");
1014 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "tree-join");
1016 tree in1
= scm_to_tree (arg1
);
1017 int in2
= scm_to_int (arg2
);
1020 tree out
= tree_join (in1
, in2
);
1023 return tree_to_scm (out
);
1027 tmg_tree_assign_node (SCM arg1
, SCM arg2
) {
1028 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-assign-node");
1029 SCM_ASSERT_TREE_LABEL (arg2
, SCM_ARG2
, "tree-assign-node");
1031 tree in1
= scm_to_tree (arg1
);
1032 tree_label in2
= scm_to_tree_label (arg2
);
1035 tree out
= tree_assign_node (in1
, in2
);
1038 return tree_to_scm (out
);
1042 tmg_tree_insert_node (SCM arg1
, SCM arg2
, SCM arg3
) {
1043 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-insert-node");
1044 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "tree-insert-node");
1045 SCM_ASSERT_CONTENT (arg3
, SCM_ARG3
, "tree-insert-node");
1047 tree in1
= scm_to_tree (arg1
);
1048 int in2
= scm_to_int (arg2
);
1049 content in3
= scm_to_content (arg3
);
1052 tree out
= tree_insert_node (in1
, in2
, in3
);
1055 return tree_to_scm (out
);
1059 tmg_tree_remove_node (SCM arg1
, SCM arg2
) {
1060 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-remove-node");
1061 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "tree-remove-node");
1063 tree in1
= scm_to_tree (arg1
);
1064 int in2
= scm_to_int (arg2
);
1067 tree out
= tree_remove_node (in1
, in2
);
1070 return tree_to_scm (out
);
1074 tmg_path_infP (SCM arg1
, SCM arg2
) {
1075 SCM_ASSERT_PATH (arg1
, SCM_ARG1
, "path-inf?");
1076 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-inf?");
1078 path in1
= scm_to_path (arg1
);
1079 path in2
= scm_to_path (arg2
);
1082 bool out
= path_inf (in1
, in2
);
1085 return bool_to_scm (out
);
1089 tmg_path_inf_eqP (SCM arg1
, SCM arg2
) {
1090 SCM_ASSERT_PATH (arg1
, SCM_ARG1
, "path-inf-eq?");
1091 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-inf-eq?");
1093 path in1
= scm_to_path (arg1
);
1094 path in2
= scm_to_path (arg2
);
1097 bool out
= path_inf_eq (in1
, in2
);
1100 return bool_to_scm (out
);
1104 tmg_path_lessP (SCM arg1
, SCM arg2
) {
1105 SCM_ASSERT_PATH (arg1
, SCM_ARG1
, "path-less?");
1106 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-less?");
1108 path in1
= scm_to_path (arg1
);
1109 path in2
= scm_to_path (arg2
);
1112 bool out
= path_less (in1
, in2
);
1115 return bool_to_scm (out
);
1119 tmg_path_less_eqP (SCM arg1
, SCM arg2
) {
1120 SCM_ASSERT_PATH (arg1
, SCM_ARG1
, "path-less-eq?");
1121 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-less-eq?");
1123 path in1
= scm_to_path (arg1
);
1124 path in2
= scm_to_path (arg2
);
1127 bool out
= path_less_eq (in1
, in2
);
1130 return bool_to_scm (out
);
1134 tmg_path_start (SCM arg1
, SCM arg2
) {
1135 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-start");
1136 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-start");
1138 content in1
= scm_to_content (arg1
);
1139 path in2
= scm_to_path (arg2
);
1142 path out
= start (in1
, in2
);
1145 return path_to_scm (out
);
1149 tmg_path_end (SCM arg1
, SCM arg2
) {
1150 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-end");
1151 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-end");
1153 content in1
= scm_to_content (arg1
);
1154 path in2
= scm_to_path (arg2
);
1157 path out
= end (in1
, in2
);
1160 return path_to_scm (out
);
1164 tmg_path_next (SCM arg1
, SCM arg2
) {
1165 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-next");
1166 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-next");
1168 content in1
= scm_to_content (arg1
);
1169 path in2
= scm_to_path (arg2
);
1172 path out
= next_valid (in1
, in2
);
1175 return path_to_scm (out
);
1179 tmg_path_previous (SCM arg1
, SCM arg2
) {
1180 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-previous");
1181 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-previous");
1183 content in1
= scm_to_content (arg1
);
1184 path in2
= scm_to_path (arg2
);
1187 path out
= previous_valid (in1
, in2
);
1190 return path_to_scm (out
);
1194 tmg_path_next_word (SCM arg1
, SCM arg2
) {
1195 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-next-word");
1196 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-next-word");
1198 content in1
= scm_to_content (arg1
);
1199 path in2
= scm_to_path (arg2
);
1202 path out
= next_word (in1
, in2
);
1205 return path_to_scm (out
);
1209 tmg_path_previous_word (SCM arg1
, SCM arg2
) {
1210 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-previous-word");
1211 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-previous-word");
1213 content in1
= scm_to_content (arg1
);
1214 path in2
= scm_to_path (arg2
);
1217 path out
= previous_word (in1
, in2
);
1220 return path_to_scm (out
);
1224 tmg_path_next_node (SCM arg1
, SCM arg2
) {
1225 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-next-node");
1226 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-next-node");
1228 content in1
= scm_to_content (arg1
);
1229 path in2
= scm_to_path (arg2
);
1232 path out
= next_node (in1
, in2
);
1235 return path_to_scm (out
);
1239 tmg_path_previous_node (SCM arg1
, SCM arg2
) {
1240 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-previous-node");
1241 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-previous-node");
1243 content in1
= scm_to_content (arg1
);
1244 path in2
= scm_to_path (arg2
);
1247 path out
= previous_node (in1
, in2
);
1250 return path_to_scm (out
);
1254 tmg_path_next_tag (SCM arg1
, SCM arg2
, SCM arg3
) {
1255 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-next-tag");
1256 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-next-tag");
1257 SCM_ASSERT_SCHEME_TREE (arg3
, SCM_ARG3
, "path-next-tag");
1259 content in1
= scm_to_content (arg1
);
1260 path in2
= scm_to_path (arg2
);
1261 scheme_tree in3
= scm_to_scheme_tree (arg3
);
1264 path out
= next_tag (in1
, in2
, in3
);
1267 return path_to_scm (out
);
1271 tmg_path_previous_tag (SCM arg1
, SCM arg2
, SCM arg3
) {
1272 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-previous-tag");
1273 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-previous-tag");
1274 SCM_ASSERT_SCHEME_TREE (arg3
, SCM_ARG3
, "path-previous-tag");
1276 content in1
= scm_to_content (arg1
);
1277 path in2
= scm_to_path (arg2
);
1278 scheme_tree in3
= scm_to_scheme_tree (arg3
);
1281 path out
= previous_tag (in1
, in2
, in3
);
1284 return path_to_scm (out
);
1288 tmg_path_next_tag_same_argument (SCM arg1
, SCM arg2
, SCM arg3
) {
1289 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-next-tag-same-argument");
1290 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-next-tag-same-argument");
1291 SCM_ASSERT_SCHEME_TREE (arg3
, SCM_ARG3
, "path-next-tag-same-argument");
1293 content in1
= scm_to_content (arg1
);
1294 path in2
= scm_to_path (arg2
);
1295 scheme_tree in3
= scm_to_scheme_tree (arg3
);
1298 path out
= next_tag_same_argument (in1
, in2
, in3
);
1301 return path_to_scm (out
);
1305 tmg_path_previous_tag_same_argument (SCM arg1
, SCM arg2
, SCM arg3
) {
1306 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-previous-tag-same-argument");
1307 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-previous-tag-same-argument");
1308 SCM_ASSERT_SCHEME_TREE (arg3
, SCM_ARG3
, "path-previous-tag-same-argument");
1310 content in1
= scm_to_content (arg1
);
1311 path in2
= scm_to_path (arg2
);
1312 scheme_tree in3
= scm_to_scheme_tree (arg3
);
1315 path out
= previous_tag_same_argument (in1
, in2
, in3
);
1318 return path_to_scm (out
);
1322 tmg_path_next_argument (SCM arg1
, SCM arg2
) {
1323 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-next-argument");
1324 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-next-argument");
1326 content in1
= scm_to_content (arg1
);
1327 path in2
= scm_to_path (arg2
);
1330 path out
= next_argument (in1
, in2
);
1333 return path_to_scm (out
);
1337 tmg_path_previous_argument (SCM arg1
, SCM arg2
) {
1338 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-previous-argument");
1339 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-previous-argument");
1341 content in1
= scm_to_content (arg1
);
1342 path in2
= scm_to_path (arg2
);
1345 path out
= previous_argument (in1
, in2
);
1348 return path_to_scm (out
);
1352 tmg_tree_2ids (SCM arg1
) {
1353 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree->ids");
1355 tree in1
= scm_to_tree (arg1
);
1358 list_string out
= get_ids (in1
);
1361 return list_string_to_scm (out
);
1365 tmg_id_2trees (SCM arg1
) {
1366 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "id->trees");
1368 string in1
= scm_to_string (arg1
);
1371 list_tree out
= get_trees (in1
);
1374 return list_tree_to_scm (out
);
1378 tmg_vertex_2links (SCM arg1
) {
1379 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "vertex->links");
1381 content in1
= scm_to_content (arg1
);
1384 list_tree out
= get_links (in1
);
1387 return list_tree_to_scm (out
);
1391 tmg_tree_2tree_pointer (SCM arg1
) {
1392 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree->tree-pointer");
1394 tree in1
= scm_to_tree (arg1
);
1397 observer out
= tree_pointer_new (in1
);
1400 return observer_to_scm (out
);
1404 tmg_tree_pointer_detach (SCM arg1
) {
1405 SCM_ASSERT_OBSERVER (arg1
, SCM_ARG1
, "tree-pointer-detach");
1407 observer in1
= scm_to_observer (arg1
);
1410 tree_pointer_delete (in1
);
1413 return SCM_UNSPECIFIED
;
1417 tmg_tree_pointer_2tree (SCM arg1
) {
1418 SCM_ASSERT_OBSERVER (arg1
, SCM_ARG1
, "tree-pointer->tree");
1420 observer in1
= scm_to_observer (arg1
);
1423 tree out
= obtain_tree (in1
);
1426 return tree_to_scm (out
);
1430 tmg_current_link_types () {
1432 list_string out
= all_link_types ();
1435 return list_string_to_scm (out
);
1439 tmg_get_locus_rendering (SCM arg1
) {
1440 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "get-locus-rendering");
1442 string in1
= scm_to_string (arg1
);
1445 string out
= get_locus_rendering (in1
);
1448 return string_to_scm (out
);
1452 tmg_set_locus_rendering (SCM arg1
, SCM arg2
) {
1453 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "set-locus-rendering");
1454 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "set-locus-rendering");
1456 string in1
= scm_to_string (arg1
);
1457 string in2
= scm_to_string (arg2
);
1460 set_locus_rendering (in1
, in2
);
1463 return SCM_UNSPECIFIED
;
1467 tmg_declare_visited (SCM arg1
) {
1468 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "declare-visited");
1470 string in1
= scm_to_string (arg1
);
1473 declare_visited (in1
);
1476 return SCM_UNSPECIFIED
;
1480 tmg_has_been_visitedP (SCM arg1
) {
1481 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "has-been-visited?");
1483 string in1
= scm_to_string (arg1
);
1486 bool out
= has_been_visited (in1
);
1489 return bool_to_scm (out
);
1493 tmg_string_numberP (SCM arg1
) {
1494 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string-number?");
1496 string in1
= scm_to_string (arg1
);
1499 bool out
= is_double (in1
);
1502 return bool_to_scm (out
);
1506 tmg_string_search_forwards (SCM arg1
, SCM arg2
, SCM arg3
) {
1507 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string-search-forwards");
1508 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "string-search-forwards");
1509 SCM_ASSERT_STRING (arg3
, SCM_ARG3
, "string-search-forwards");
1511 string in1
= scm_to_string (arg1
);
1512 int in2
= scm_to_int (arg2
);
1513 string in3
= scm_to_string (arg3
);
1516 int out
= search_forwards (in1
, in2
, in3
);
1519 return int_to_scm (out
);
1523 tmg_string_search_backwards (SCM arg1
, SCM arg2
, SCM arg3
) {
1524 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string-search-backwards");
1525 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "string-search-backwards");
1526 SCM_ASSERT_STRING (arg3
, SCM_ARG3
, "string-search-backwards");
1528 string in1
= scm_to_string (arg1
);
1529 int in2
= scm_to_int (arg2
);
1530 string in3
= scm_to_string (arg3
);
1533 int out
= search_backwards (in1
, in2
, in3
);
1536 return int_to_scm (out
);
1540 tmg_string_replace (SCM arg1
, SCM arg2
, SCM arg3
) {
1541 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string-replace");
1542 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "string-replace");
1543 SCM_ASSERT_STRING (arg3
, SCM_ARG3
, "string-replace");
1545 string in1
= scm_to_string (arg1
);
1546 string in2
= scm_to_string (arg2
);
1547 string in3
= scm_to_string (arg3
);
1550 string out
= replace (in1
, in2
, in3
);
1553 return string_to_scm (out
);
1557 tmg_string_locase_alphaP (SCM arg1
) {
1558 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string-locase-alpha?");
1560 string in1
= scm_to_string (arg1
);
1563 bool out
= is_locase_alpha (in1
);
1566 return bool_to_scm (out
);
1570 tmg_upcase_first (SCM arg1
) {
1571 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "upcase-first");
1573 string in1
= scm_to_string (arg1
);
1576 string out
= upcase_first (in1
);
1579 return string_to_scm (out
);
1583 tmg_locase_first (SCM arg1
) {
1584 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "locase-first");
1586 string in1
= scm_to_string (arg1
);
1589 string out
= locase_first (in1
);
1592 return string_to_scm (out
);
1596 tmg_upcase_all (SCM arg1
) {
1597 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "upcase-all");
1599 string in1
= scm_to_string (arg1
);
1602 string out
= upcase_all (in1
);
1605 return string_to_scm (out
);
1609 tmg_locase_all (SCM arg1
) {
1610 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "locase-all");
1612 string in1
= scm_to_string (arg1
);
1615 string out
= locase_all (in1
);
1618 return string_to_scm (out
);
1622 tmg_string_union (SCM arg1
, SCM arg2
) {
1623 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string-union");
1624 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "string-union");
1626 string in1
= scm_to_string (arg1
);
1627 string in2
= scm_to_string (arg2
);
1630 string out
= string_union (in1
, in2
);
1633 return string_to_scm (out
);
1637 tmg_string_minus (SCM arg1
, SCM arg2
) {
1638 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string-minus");
1639 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "string-minus");
1641 string in1
= scm_to_string (arg1
);
1642 string in2
= scm_to_string (arg2
);
1645 string out
= string_minus (in1
, in2
);
1648 return string_to_scm (out
);
1652 tmg_string_encode (SCM arg1
) {
1653 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string-encode");
1655 string in1
= scm_to_string (arg1
);
1658 string out
= tm_encode (in1
);
1661 return string_to_scm (out
);
1665 tmg_string_decode (SCM arg1
) {
1666 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string-decode");
1668 string in1
= scm_to_string (arg1
);
1671 string out
= tm_decode (in1
);
1674 return string_to_scm (out
);
1678 tmg_escape_generic (SCM arg1
) {
1679 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "escape-generic");
1681 string in1
= scm_to_string (arg1
);
1684 string out
= escape_generic (in1
);
1687 return string_to_scm (out
);
1691 tmg_escape_verbatim (SCM arg1
) {
1692 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "escape-verbatim");
1694 string in1
= scm_to_string (arg1
);
1697 string out
= escape_verbatim (in1
);
1700 return string_to_scm (out
);
1704 tmg_escape_shell (SCM arg1
) {
1705 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "escape-shell");
1707 string in1
= scm_to_string (arg1
);
1710 string out
= escape_sh (in1
);
1713 return string_to_scm (out
);
1717 tmg_string_convert (SCM arg1
, SCM arg2
, SCM arg3
) {
1718 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string-convert");
1719 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "string-convert");
1720 SCM_ASSERT_STRING (arg3
, SCM_ARG3
, "string-convert");
1722 string in1
= scm_to_string (arg1
);
1723 string in2
= scm_to_string (arg2
);
1724 string in3
= scm_to_string (arg3
);
1727 string out
= convert (in1
, in2
, in3
);
1730 return string_to_scm (out
);
1734 tmg_utf8_2cork (SCM arg1
) {
1735 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "utf8->cork");
1737 string in1
= scm_to_string (arg1
);
1740 string out
= utf8_to_cork (in1
);
1743 return string_to_scm (out
);
1747 tmg_cork_2utf8 (SCM arg1
) {
1748 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "cork->utf8");
1750 string in1
= scm_to_string (arg1
);
1753 string out
= cork_to_utf8 (in1
);
1756 return string_to_scm (out
);
1760 tmg_utf8_2html (SCM arg1
) {
1761 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "utf8->html");
1763 string in1
= scm_to_string (arg1
);
1766 string out
= utf8_to_html (in1
);
1769 return string_to_scm (out
);
1773 tmg_tm_2xml_name (SCM arg1
) {
1774 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tm->xml-name");
1776 string in1
= scm_to_string (arg1
);
1779 string out
= tm_to_xml_name (in1
);
1782 return string_to_scm (out
);
1786 tmg_old_tm_2xml_cdata (SCM arg1
) {
1787 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "old-tm->xml-cdata");
1789 string in1
= scm_to_string (arg1
);
1792 string out
= old_tm_to_xml_cdata (in1
);
1795 return string_to_scm (out
);
1799 tmg_tm_2xml_cdata (SCM arg1
) {
1800 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tm->xml-cdata");
1802 string in1
= scm_to_string (arg1
);
1805 object out
= tm_to_xml_cdata (in1
);
1808 return object_to_scm (out
);
1812 tmg_xml_name_2tm (SCM arg1
) {
1813 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "xml-name->tm");
1815 string in1
= scm_to_string (arg1
);
1818 string out
= xml_name_to_tm (in1
);
1821 return string_to_scm (out
);
1825 tmg_old_xml_cdata_2tm (SCM arg1
) {
1826 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "old-xml-cdata->tm");
1828 string in1
= scm_to_string (arg1
);
1831 string out
= old_xml_cdata_to_tm (in1
);
1834 return string_to_scm (out
);
1838 tmg_xml_unspace (SCM arg1
, SCM arg2
, SCM arg3
) {
1839 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "xml-unspace");
1840 SCM_ASSERT_BOOL (arg2
, SCM_ARG2
, "xml-unspace");
1841 SCM_ASSERT_BOOL (arg3
, SCM_ARG3
, "xml-unspace");
1843 string in1
= scm_to_string (arg1
);
1844 bool in2
= scm_to_bool (arg2
);
1845 bool in3
= scm_to_bool (arg3
);
1848 string out
= xml_unspace (in1
, in2
, in3
);
1851 return string_to_scm (out
);
1855 tmg_define_grammar_rule (SCM arg1
, SCM arg2
) {
1856 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "define-grammar-rule");
1857 SCM_ASSERT_TREE (arg2
, SCM_ARG2
, "define-grammar-rule");
1859 tree in1
= scm_to_tree (arg1
);
1860 tree in2
= scm_to_tree (arg2
);
1863 define_grammar_rule (in1
, in2
);
1866 return SCM_UNSPECIFIED
;
1870 tmg_grammar_parse (SCM arg1
, SCM arg2
) {
1871 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "grammar-parse");
1872 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "grammar-parse");
1874 tree in1
= scm_to_tree (arg1
);
1875 string in2
= scm_to_string (arg2
);
1878 int out
= grammar_parse (in1
, in2
);
1881 return int_to_scm (out
);
1885 tmg_parse_texmacs (SCM arg1
) {
1886 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "parse-texmacs");
1888 string in1
= scm_to_string (arg1
);
1891 tree out
= texmacs_document_to_tree (in1
);
1894 return tree_to_scm (out
);
1898 tmg_serialize_texmacs (SCM arg1
) {
1899 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "serialize-texmacs");
1901 tree in1
= scm_to_tree (arg1
);
1904 string out
= tree_to_texmacs (in1
);
1907 return string_to_scm (out
);
1911 tmg_parse_texmacs_snippet (SCM arg1
) {
1912 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "parse-texmacs-snippet");
1914 string in1
= scm_to_string (arg1
);
1917 tree out
= texmacs_to_tree (in1
);
1920 return tree_to_scm (out
);
1924 tmg_serialize_texmacs_snippet (SCM arg1
) {
1925 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "serialize-texmacs-snippet");
1927 tree in1
= scm_to_tree (arg1
);
1930 string out
= tree_to_texmacs (in1
);
1933 return string_to_scm (out
);
1937 tmg_texmacs_2stm (SCM arg1
) {
1938 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "texmacs->stm");
1940 tree in1
= scm_to_tree (arg1
);
1943 string out
= tree_to_scheme (in1
);
1946 return string_to_scm (out
);
1950 tmg_stm_2texmacs (SCM arg1
) {
1951 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "stm->texmacs");
1953 string in1
= scm_to_string (arg1
);
1956 tree out
= scheme_document_to_tree (in1
);
1959 return tree_to_scm (out
);
1963 tmg_stm_snippet_2texmacs (SCM arg1
) {
1964 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "stm-snippet->texmacs");
1966 string in1
= scm_to_string (arg1
);
1969 tree out
= scheme_to_tree (in1
);
1972 return tree_to_scm (out
);
1976 tmg_cpp_texmacs_2verbatim (SCM arg1
, SCM arg2
, SCM arg3
) {
1977 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "cpp-texmacs->verbatim");
1978 SCM_ASSERT_BOOL (arg2
, SCM_ARG2
, "cpp-texmacs->verbatim");
1979 SCM_ASSERT_STRING (arg3
, SCM_ARG3
, "cpp-texmacs->verbatim");
1981 tree in1
= scm_to_tree (arg1
);
1982 bool in2
= scm_to_bool (arg2
);
1983 string in3
= scm_to_string (arg3
);
1986 string out
= tree_to_verbatim (in1
, in2
, in3
);
1989 return string_to_scm (out
);
1993 tmg_cpp_verbatim_snippet_2texmacs (SCM arg1
, SCM arg2
, SCM arg3
) {
1994 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "cpp-verbatim-snippet->texmacs");
1995 SCM_ASSERT_BOOL (arg2
, SCM_ARG2
, "cpp-verbatim-snippet->texmacs");
1996 SCM_ASSERT_STRING (arg3
, SCM_ARG3
, "cpp-verbatim-snippet->texmacs");
1998 string in1
= scm_to_string (arg1
);
1999 bool in2
= scm_to_bool (arg2
);
2000 string in3
= scm_to_string (arg3
);
2003 tree out
= verbatim_to_tree (in1
, in2
, in3
);
2006 return tree_to_scm (out
);
2010 tmg_cpp_verbatim_2texmacs (SCM arg1
, SCM arg2
, SCM arg3
) {
2011 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "cpp-verbatim->texmacs");
2012 SCM_ASSERT_BOOL (arg2
, SCM_ARG2
, "cpp-verbatim->texmacs");
2013 SCM_ASSERT_STRING (arg3
, SCM_ARG3
, "cpp-verbatim->texmacs");
2015 string in1
= scm_to_string (arg1
);
2016 bool in2
= scm_to_bool (arg2
);
2017 string in3
= scm_to_string (arg3
);
2020 tree out
= verbatim_document_to_tree (in1
, in2
, in3
);
2023 return tree_to_scm (out
);
2027 tmg_parse_latex (SCM arg1
) {
2028 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "parse-latex");
2030 string in1
= scm_to_string (arg1
);
2033 tree out
= parse_latex (in1
);
2036 return tree_to_scm (out
);
2040 tmg_parse_latex_document (SCM arg1
) {
2041 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "parse-latex-document");
2043 string in1
= scm_to_string (arg1
);
2046 tree out
= parse_latex_document (in1
);
2049 return tree_to_scm (out
);
2053 tmg_latex_2texmacs (SCM arg1
) {
2054 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "latex->texmacs");
2056 tree in1
= scm_to_tree (arg1
);
2059 tree out
= latex_to_tree (in1
);
2062 return tree_to_scm (out
);
2066 tmg_parse_xml (SCM arg1
) {
2067 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "parse-xml");
2069 string in1
= scm_to_string (arg1
);
2072 scheme_tree out
= parse_xml (in1
);
2075 return scheme_tree_to_scm (out
);
2079 tmg_parse_html (SCM arg1
) {
2080 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "parse-html");
2082 string in1
= scm_to_string (arg1
);
2085 scheme_tree out
= parse_html (in1
);
2088 return scheme_tree_to_scm (out
);
2092 tmg_parse_bib (SCM arg1
) {
2093 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "parse-bib");
2095 string in1
= scm_to_string (arg1
);
2098 tree out
= parse_bib (in1
);
2101 return tree_to_scm (out
);
2105 tmg_upgrade_tmml (SCM arg1
) {
2106 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "upgrade-tmml");
2108 scheme_tree in1
= scm_to_scheme_tree (arg1
);
2111 tree out
= tmml_upgrade (in1
);
2114 return tree_to_scm (out
);
2118 tmg_string_2url (SCM arg1
) {
2119 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string->url");
2121 string in1
= scm_to_string (arg1
);
2127 return url_to_scm (out
);
2131 tmg_url (SCM arg1
, SCM arg2
) {
2132 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "url");
2133 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "url");
2135 string in1
= scm_to_string (arg1
);
2136 string in2
= scm_to_string (arg2
);
2139 url out
= url (in1
, in2
);
2142 return url_to_scm (out
);
2146 tmg_url_system (SCM arg1
) {
2147 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "url-system");
2149 string in1
= scm_to_string (arg1
);
2152 url out
= url_system (in1
);
2155 return url_to_scm (out
);
2161 url out
= url_none ();
2164 return url_to_scm (out
);
2170 url out
= url_wildcard ();
2173 return url_to_scm (out
);
2177 tmg_url_wildcard (SCM arg1
) {
2178 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "url-wildcard");
2180 string in1
= scm_to_string (arg1
);
2183 url out
= url_wildcard (in1
);
2186 return url_to_scm (out
);
2192 url out
= url_parent ();
2195 return url_to_scm (out
);
2199 tmg_url_append (SCM arg1
, SCM arg2
) {
2200 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-append");
2201 SCM_ASSERT_URL (arg2
, SCM_ARG2
, "url-append");
2203 url in1
= scm_to_url (arg1
);
2204 url in2
= scm_to_url (arg2
);
2207 url out
= url_concat (in1
, in2
);
2210 return url_to_scm (out
);
2214 tmg_url_or (SCM arg1
, SCM arg2
) {
2215 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-or");
2216 SCM_ASSERT_URL (arg2
, SCM_ARG2
, "url-or");
2218 url in1
= scm_to_url (arg1
);
2219 url in2
= scm_to_url (arg2
);
2222 url out
= url_or (in1
, in2
);
2225 return url_to_scm (out
);
2229 tmg_url_2string (SCM arg1
) {
2230 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url->string");
2232 url in1
= scm_to_url (arg1
);
2235 string out
= as_string (in1
);
2238 return string_to_scm (out
);
2242 tmg_url_noneP (SCM arg1
) {
2243 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-none?");
2245 url in1
= scm_to_url (arg1
);
2248 bool out
= is_none (in1
);
2251 return bool_to_scm (out
);
2255 tmg_url_rooted_webP (SCM arg1
) {
2256 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-rooted-web?");
2258 url in1
= scm_to_url (arg1
);
2261 bool out
= is_rooted_web (in1
);
2264 return bool_to_scm (out
);
2268 tmg_url_concatP (SCM arg1
) {
2269 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-concat?");
2271 url in1
= scm_to_url (arg1
);
2274 bool out
= is_concat (in1
);
2277 return bool_to_scm (out
);
2281 tmg_url_orP (SCM arg1
) {
2282 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-or?");
2284 url in1
= scm_to_url (arg1
);
2287 bool out
= is_or (in1
);
2290 return bool_to_scm (out
);
2294 tmg_url_ref (SCM arg1
, SCM arg2
) {
2295 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-ref");
2296 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "url-ref");
2298 url in1
= scm_to_url (arg1
);
2299 int in2
= scm_to_int (arg2
);
2302 url out
= url_ref (in1
, in2
);
2305 return url_to_scm (out
);
2309 tmg_url_tail (SCM arg1
) {
2310 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-tail");
2312 url in1
= scm_to_url (arg1
);
2315 url out
= tail (in1
);
2318 return url_to_scm (out
);
2322 tmg_url_suffix (SCM arg1
) {
2323 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-suffix");
2325 url in1
= scm_to_url (arg1
);
2328 string out
= suffix (in1
);
2331 return string_to_scm (out
);
2335 tmg_url_glue (SCM arg1
, SCM arg2
) {
2336 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-glue");
2337 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "url-glue");
2339 url in1
= scm_to_url (arg1
);
2340 string in2
= scm_to_string (arg2
);
2343 url out
= glue (in1
, in2
);
2346 return url_to_scm (out
);
2350 tmg_url_unglue (SCM arg1
, SCM arg2
) {
2351 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-unglue");
2352 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "url-unglue");
2354 url in1
= scm_to_url (arg1
);
2355 int in2
= scm_to_int (arg2
);
2358 url out
= unglue (in1
, in2
);
2361 return url_to_scm (out
);
2365 tmg_url_relative (SCM arg1
, SCM arg2
) {
2366 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-relative");
2367 SCM_ASSERT_URL (arg2
, SCM_ARG2
, "url-relative");
2369 url in1
= scm_to_url (arg1
);
2370 url in2
= scm_to_url (arg2
);
2373 url out
= relative (in1
, in2
);
2376 return url_to_scm (out
);
2380 tmg_url_expand (SCM arg1
) {
2381 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-expand");
2383 url in1
= scm_to_url (arg1
);
2386 url out
= expand (in1
);
2389 return url_to_scm (out
);
2393 tmg_url_factor (SCM arg1
) {
2394 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-factor");
2396 url in1
= scm_to_url (arg1
);
2399 url out
= factor (in1
);
2402 return url_to_scm (out
);
2406 tmg_url_delta (SCM arg1
, SCM arg2
) {
2407 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-delta");
2408 SCM_ASSERT_URL (arg2
, SCM_ARG2
, "url-delta");
2410 url in1
= scm_to_url (arg1
);
2411 url in2
= scm_to_url (arg2
);
2414 url out
= delta (in1
, in2
);
2417 return url_to_scm (out
);
2421 tmg_url_secureP (SCM arg1
) {
2422 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-secure?");
2424 url in1
= scm_to_url (arg1
);
2427 bool out
= is_secure (in1
);
2430 return bool_to_scm (out
);
2434 tmg_url_descendsP (SCM arg1
, SCM arg2
) {
2435 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-descends?");
2436 SCM_ASSERT_URL (arg2
, SCM_ARG2
, "url-descends?");
2438 url in1
= scm_to_url (arg1
);
2439 url in2
= scm_to_url (arg2
);
2442 bool out
= descends (in1
, in2
);
2445 return bool_to_scm (out
);
2449 tmg_url_complete (SCM arg1
, SCM arg2
) {
2450 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-complete");
2451 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "url-complete");
2453 url in1
= scm_to_url (arg1
);
2454 string in2
= scm_to_string (arg2
);
2457 url out
= complete (in1
, in2
);
2460 return url_to_scm (out
);
2464 tmg_url_resolve (SCM arg1
, SCM arg2
) {
2465 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-resolve");
2466 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "url-resolve");
2468 url in1
= scm_to_url (arg1
);
2469 string in2
= scm_to_string (arg2
);
2472 url out
= resolve (in1
, in2
);
2475 return url_to_scm (out
);
2479 tmg_url_resolve_in_path (SCM arg1
) {
2480 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-resolve-in-path");
2482 url in1
= scm_to_url (arg1
);
2485 url out
= resolve_in_path (in1
);
2488 return url_to_scm (out
);
2492 tmg_url_existsP (SCM arg1
) {
2493 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-exists?");
2495 url in1
= scm_to_url (arg1
);
2498 bool out
= exists (in1
);
2501 return bool_to_scm (out
);
2505 tmg_url_exists_in_pathP (SCM arg1
) {
2506 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-exists-in-path?");
2508 url in1
= scm_to_url (arg1
);
2511 bool out
= exists_in_path (in1
);
2514 return bool_to_scm (out
);
2518 tmg_url_exists_in_texP (SCM arg1
) {
2519 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-exists-in-tex?");
2521 url in1
= scm_to_url (arg1
);
2524 bool out
= exists_in_tex (in1
);
2527 return bool_to_scm (out
);
2531 tmg_url_concretize (SCM arg1
) {
2532 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-concretize");
2534 url in1
= scm_to_url (arg1
);
2537 string out
= concretize (in1
);
2540 return string_to_scm (out
);
2544 tmg_url_materialize (SCM arg1
, SCM arg2
) {
2545 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-materialize");
2546 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "url-materialize");
2548 url in1
= scm_to_url (arg1
);
2549 string in2
= scm_to_string (arg2
);
2552 string out
= materialize (in1
, in2
);
2555 return string_to_scm (out
);
2559 tmg_url_testP (SCM arg1
, SCM arg2
) {
2560 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-test?");
2561 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "url-test?");
2563 url in1
= scm_to_url (arg1
);
2564 string in2
= scm_to_string (arg2
);
2567 bool out
= is_of_type (in1
, in2
);
2570 return bool_to_scm (out
);
2574 tmg_url_regularP (SCM arg1
) {
2575 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-regular?");
2577 url in1
= scm_to_url (arg1
);
2580 bool out
= is_regular (in1
);
2583 return bool_to_scm (out
);
2587 tmg_url_directoryP (SCM arg1
) {
2588 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-directory?");
2590 url in1
= scm_to_url (arg1
);
2593 bool out
= is_directory (in1
);
2596 return bool_to_scm (out
);
2600 tmg_url_linkP (SCM arg1
) {
2601 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-link?");
2603 url in1
= scm_to_url (arg1
);
2606 bool out
= is_symbolic_link (in1
);
2609 return bool_to_scm (out
);
2613 tmg_url_newerP (SCM arg1
, SCM arg2
) {
2614 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-newer?");
2615 SCM_ASSERT_URL (arg2
, SCM_ARG2
, "url-newer?");
2617 url in1
= scm_to_url (arg1
);
2618 url in2
= scm_to_url (arg2
);
2621 bool out
= is_newer (in1
, in2
);
2624 return bool_to_scm (out
);
2628 tmg_url_last_modified (SCM arg1
) {
2629 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-last-modified");
2631 url in1
= scm_to_url (arg1
);
2634 int out
= last_modified (in1
);
2637 return int_to_scm (out
);
2643 url out
= url_temp ();
2646 return url_to_scm (out
);
2650 tmg_url_scratch (SCM arg1
, SCM arg2
, SCM arg3
) {
2651 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "url-scratch");
2652 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "url-scratch");
2653 SCM_ASSERT_INT (arg3
, SCM_ARG3
, "url-scratch");
2655 string in1
= scm_to_string (arg1
);
2656 string in2
= scm_to_string (arg2
);
2657 int in3
= scm_to_int (arg3
);
2660 url out
= url_scratch (in1
, in2
, in3
);
2663 return url_to_scm (out
);
2667 tmg_url_scratchP (SCM arg1
) {
2668 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-scratch?");
2670 url in1
= scm_to_url (arg1
);
2673 bool out
= is_scratch (in1
);
2676 return bool_to_scm (out
);
2680 tmg_string_save (SCM arg1
, SCM arg2
) {
2681 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string-save");
2682 SCM_ASSERT_URL (arg2
, SCM_ARG2
, "string-save");
2684 string in1
= scm_to_string (arg1
);
2685 url in2
= scm_to_url (arg2
);
2688 string_save (in1
, in2
);
2691 return SCM_UNSPECIFIED
;
2695 tmg_string_load (SCM arg1
) {
2696 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "string-load");
2698 url in1
= scm_to_url (arg1
);
2701 string out
= string_load (in1
);
2704 return string_to_scm (out
);
2708 tmg_system_move (SCM arg1
, SCM arg2
) {
2709 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "system-move");
2710 SCM_ASSERT_URL (arg2
, SCM_ARG2
, "system-move");
2712 url in1
= scm_to_url (arg1
);
2713 url in2
= scm_to_url (arg2
);
2719 return SCM_UNSPECIFIED
;
2723 tmg_system_copy (SCM arg1
, SCM arg2
) {
2724 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "system-copy");
2725 SCM_ASSERT_URL (arg2
, SCM_ARG2
, "system-copy");
2727 url in1
= scm_to_url (arg1
);
2728 url in2
= scm_to_url (arg2
);
2734 return SCM_UNSPECIFIED
;
2738 tmg_system_remove (SCM arg1
) {
2739 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "system-remove");
2741 url in1
= scm_to_url (arg1
);
2747 return SCM_UNSPECIFIED
;
2751 tmg_system_mkdir (SCM arg1
) {
2752 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "system-mkdir");
2754 url in1
= scm_to_url (arg1
);
2760 return SCM_UNSPECIFIED
;
2764 tmg_system_search_score (SCM arg1
, SCM arg2
) {
2765 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "system-search-score");
2766 SCM_ASSERT_ARRAY_STRING (arg2
, SCM_ARG2
, "system-search-score");
2768 url in1
= scm_to_url (arg1
);
2769 array_string in2
= scm_to_array_string (arg2
);
2772 int out
= search_score (in1
, in2
);
2775 return int_to_scm (out
);
2779 tmg_system_1 (SCM arg1
, SCM arg2
) {
2780 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "system-1");
2781 SCM_ASSERT_URL (arg2
, SCM_ARG2
, "system-1");
2783 string in1
= scm_to_string (arg1
);
2784 url in2
= scm_to_url (arg2
);
2790 return SCM_UNSPECIFIED
;
2794 tmg_system_2 (SCM arg1
, SCM arg2
, SCM arg3
) {
2795 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "system-2");
2796 SCM_ASSERT_URL (arg2
, SCM_ARG2
, "system-2");
2797 SCM_ASSERT_URL (arg3
, SCM_ARG3
, "system-2");
2799 string in1
= scm_to_string (arg1
);
2800 url in2
= scm_to_url (arg2
);
2801 url in3
= scm_to_url (arg3
);
2804 system (in1
, in2
, in3
);
2807 return SCM_UNSPECIFIED
;
2811 tmg_tmfs_set (SCM arg1
, SCM arg2
) {
2812 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-set");
2813 SCM_ASSERT_COLLECTION (arg2
, SCM_ARG2
, "tmfs-set");
2815 string in1
= scm_to_string (arg1
);
2816 collection in2
= scm_to_collection (arg2
);
2819 tmfs_set (in1
, in2
);
2822 return SCM_UNSPECIFIED
;
2826 tmg_tmfs_reset (SCM arg1
, SCM arg2
) {
2827 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-reset");
2828 SCM_ASSERT_COLLECTION (arg2
, SCM_ARG2
, "tmfs-reset");
2830 string in1
= scm_to_string (arg1
);
2831 collection in2
= scm_to_collection (arg2
);
2834 tmfs_reset (in1
, in2
);
2837 return SCM_UNSPECIFIED
;
2841 tmg_tmfs_get (SCM arg1
) {
2842 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-get");
2844 string in1
= scm_to_string (arg1
);
2847 collection out
= tmfs_get (in1
);
2850 return collection_to_scm (out
);
2854 tmg_tmfs_new_save (SCM arg1
, SCM arg2
) {
2855 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-new-save");
2856 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "tmfs-new-save");
2858 string in1
= scm_to_string (arg1
);
2859 string in2
= scm_to_string (arg2
);
2862 tmfs_save (in1
, in2
);
2865 return SCM_UNSPECIFIED
;
2869 tmg_tmfs_new_remove (SCM arg1
) {
2870 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-new-remove");
2872 string in1
= scm_to_string (arg1
);
2878 return SCM_UNSPECIFIED
;
2882 tmg_tmfs_new_load (SCM arg1
) {
2883 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-new-load");
2885 string in1
= scm_to_string (arg1
);
2888 string out
= tmfs_load (in1
);
2891 return string_to_scm (out
);
2895 tmg_tmfs_create_ressource () {
2897 string out
= tmfs_create_ressource ();
2900 return string_to_scm (out
);
2904 tmg_tmfs_ressource_head (SCM arg1
) {
2905 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-ressource-head");
2907 string in1
= scm_to_string (arg1
);
2910 string out
= tmfs_get_head (in1
);
2913 return string_to_scm (out
);
2917 tmg_tmfs_ressource_versions (SCM arg1
) {
2918 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-ressource-versions");
2920 string in1
= scm_to_string (arg1
);
2923 collection out
= tmfs_get_versions (in1
);
2926 return collection_to_scm (out
);
2930 tmg_tmfs_save_ressource (SCM arg1
, SCM arg2
, SCM arg3
) {
2931 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-save-ressource");
2932 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "tmfs-save-ressource");
2933 SCM_ASSERT_PROPERTIES (arg3
, SCM_ARG3
, "tmfs-save-ressource");
2935 string in1
= scm_to_string (arg1
);
2936 string in2
= scm_to_string (arg2
);
2937 properties in3
= scm_to_properties (arg3
);
2940 tmfs_save_ressource (in1
, in2
, in3
);
2943 return SCM_UNSPECIFIED
;
2947 tmg_tmfs_load_ressource_file (SCM arg1
) {
2948 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-load-ressource-file");
2950 string in1
= scm_to_string (arg1
);
2953 string out
= tmfs_load_ressource_file (in1
);
2956 return string_to_scm (out
);
2960 tmg_tmfs_load_ressource_properties (SCM arg1
) {
2961 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-load-ressource-properties");
2963 string in1
= scm_to_string (arg1
);
2966 properties out
= tmfs_load_ressource_properties (in1
);
2969 return properties_to_scm (out
);
2973 tmg_tmfs_create_user (SCM arg1
) {
2974 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-create-user");
2976 string in1
= scm_to_string (arg1
);
2979 string out
= tmfs_create_user (in1
);
2982 return string_to_scm (out
);
2986 tmg_tmfs_search_user (SCM arg1
) {
2987 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-search-user");
2989 string in1
= scm_to_string (arg1
);
2992 collection out
= tmfs_search_user (in1
);
2995 return collection_to_scm (out
);
2999 tmg_tmfs_set_user (SCM arg1
) {
3000 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-set-user");
3002 string in1
= scm_to_string (arg1
);
3005 tmfs_set_user (in1
);
3008 return SCM_UNSPECIFIED
;
3012 tmg_tmfs_get_user () {
3014 string out
= tmfs_get_user ();
3017 return string_to_scm (out
);
3021 tmg_tmfs_allowsP (SCM arg1
, SCM arg2
) {
3022 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-allows?");
3023 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "tmfs-allows?");
3025 string in1
= scm_to_string (arg1
);
3026 string in2
= scm_to_string (arg2
);
3029 bool out
= tmfs_allows (in1
, in2
);
3032 return bool_to_scm (out
);
3036 tmg_tmfs_set_attributes (SCM arg1
, SCM arg2
) {
3037 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-set-attributes");
3038 SCM_ASSERT_PROPERTIES (arg2
, SCM_ARG2
, "tmfs-set-attributes");
3040 string in1
= scm_to_string (arg1
);
3041 properties in2
= scm_to_properties (arg2
);
3044 tmfs_set_attributes (in1
, in2
);
3047 return SCM_UNSPECIFIED
;
3051 tmg_tmfs_get_attributes (SCM arg1
) {
3052 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-get-attributes");
3054 string in1
= scm_to_string (arg1
);
3057 properties out
= tmfs_get_attributes (in1
);
3060 return properties_to_scm (out
);
3064 tmg_tmfs_add_attributes (SCM arg1
, SCM arg2
) {
3065 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-add-attributes");
3066 SCM_ASSERT_PROPERTIES (arg2
, SCM_ARG2
, "tmfs-add-attributes");
3068 string in1
= scm_to_string (arg1
);
3069 properties in2
= scm_to_properties (arg2
);
3072 tmfs_add_attributes (in1
, in2
);
3075 return SCM_UNSPECIFIED
;
3079 tmg_tmfs_remove_attributes (SCM arg1
, SCM arg2
) {
3080 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-remove-attributes");
3081 SCM_ASSERT_PROPERTIES (arg2
, SCM_ARG2
, "tmfs-remove-attributes");
3083 string in1
= scm_to_string (arg1
);
3084 properties in2
= scm_to_properties (arg2
);
3087 tmfs_remove_attributes (in1
, in2
);
3090 return SCM_UNSPECIFIED
;
3094 tmg_tmfs_change_attributes (SCM arg1
, SCM arg2
) {
3095 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-change-attributes");
3096 SCM_ASSERT_PROPERTIES (arg2
, SCM_ARG2
, "tmfs-change-attributes");
3098 string in1
= scm_to_string (arg1
);
3099 properties in2
= scm_to_properties (arg2
);
3102 tmfs_change_attributes (in1
, in2
);
3105 return SCM_UNSPECIFIED
;
3109 tmg_tmfs_query (SCM arg1
) {
3110 SCM_ASSERT_PROPERTIES (arg1
, SCM_ARG1
, "tmfs-query");
3112 properties in1
= scm_to_properties (arg1
);
3115 solutions out
= tmfs_query (in1
);
3118 return solutions_to_scm (out
);
3122 tmg_solutions_2collection (SCM arg1
, SCM arg2
) {
3123 SCM_ASSERT_SOLUTIONS (arg1
, SCM_ARG1
, "solutions->collection");
3124 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "solutions->collection");
3126 solutions in1
= scm_to_solutions (arg1
);
3127 string in2
= scm_to_string (arg2
);
3130 collection out
= as_collection (in1
, in2
);
3133 return collection_to_scm (out
);
3137 tmg_tmfs_create_file (SCM arg1
, SCM arg2
) {
3138 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-create-file");
3139 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "tmfs-create-file");
3141 string in1
= scm_to_string (arg1
);
3142 string in2
= scm_to_string (arg2
);
3145 string out
= tmfs_create_file (in1
, in2
);
3148 return string_to_scm (out
);
3152 tmg_tmfs_create_file_in (SCM arg1
, SCM arg2
, SCM arg3
) {
3153 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-create-file-in");
3154 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "tmfs-create-file-in");
3155 SCM_ASSERT_STRING (arg3
, SCM_ARG3
, "tmfs-create-file-in");
3157 string in1
= scm_to_string (arg1
);
3158 string in2
= scm_to_string (arg2
);
3159 string in3
= scm_to_string (arg3
);
3162 string out
= tmfs_create_file (in1
, in2
, in3
);
3165 return string_to_scm (out
);
3169 tmg_tmfs_search_file (SCM arg1
) {
3170 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-search-file");
3172 string in1
= scm_to_string (arg1
);
3175 collection out
= tmfs_search_file (in1
);
3178 return collection_to_scm (out
);
3182 tmg_tmfs_save_file (SCM arg1
, SCM arg2
) {
3183 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-save-file");
3184 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "tmfs-save-file");
3186 string in1
= scm_to_string (arg1
);
3187 string in2
= scm_to_string (arg2
);
3190 tmfs_save_file (in1
, in2
);
3193 return SCM_UNSPECIFIED
;
3197 tmg_tmfs_load_file (SCM arg1
) {
3198 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-load-file");
3200 string in1
= scm_to_string (arg1
);
3203 string out
= tmfs_load_file (in1
);
3206 return string_to_scm (out
);
3210 tmg_tmfs_create_project (SCM arg1
) {
3211 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-create-project");
3213 string in1
= scm_to_string (arg1
);
3216 string out
= tmfs_create_project (in1
);
3219 return string_to_scm (out
);
3223 tmg_tmfs_search_project (SCM arg1
) {
3224 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-search-project");
3226 string in1
= scm_to_string (arg1
);
3229 collection out
= tmfs_search_project (in1
);
3232 return collection_to_scm (out
);
3236 tmg_tmfs_get_file_projects (SCM arg1
) {
3237 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-get-file-projects");
3239 string in1
= scm_to_string (arg1
);
3242 collection out
= tmfs_get_file_projects (in1
);
3245 return collection_to_scm (out
);
3249 tmg_tmfs_get_project_files (SCM arg1
) {
3250 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-get-project-files");
3252 string in1
= scm_to_string (arg1
);
3255 collection out
= tmfs_get_project_files (in1
);
3258 return collection_to_scm (out
);
3262 tmg_tmfs_create_branch (SCM arg1
, SCM arg2
) {
3263 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-create-branch");
3264 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "tmfs-create-branch");
3266 string in1
= scm_to_string (arg1
);
3267 string in2
= scm_to_string (arg2
);
3270 string out
= tmfs_create_branch (in1
, in2
);
3273 return string_to_scm (out
);
3277 tmg_tmfs_set_root (SCM arg1
, SCM arg2
) {
3278 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-set-root");
3279 SCM_ASSERT_URL (arg2
, SCM_ARG2
, "tmfs-set-root");
3281 string in1
= scm_to_string (arg1
);
3282 url in2
= scm_to_url (arg2
);
3285 tmfs_set_root (in1
, in2
);
3288 return SCM_UNSPECIFIED
;
3292 tmg_tmfs_get_root (SCM arg1
) {
3293 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-get-root");
3295 string in1
= scm_to_string (arg1
);
3298 url out
= tmfs_get_root (in1
);
3301 return url_to_scm (out
);
3305 tmg_tmfs_import (SCM arg1
) {
3306 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "tmfs-import");
3308 url in1
= scm_to_url (arg1
);
3314 return SCM_UNSPECIFIED
;
3318 tmg_tmfs_export (SCM arg1
) {
3319 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "tmfs-export");
3321 url in1
= scm_to_url (arg1
);
3327 return SCM_UNSPECIFIED
;
3331 tmg_server_start () {
3336 return SCM_UNSPECIFIED
;
3340 tmg_server_stop () {
3345 return SCM_UNSPECIFIED
;
3349 tmg_server_read (SCM arg1
) {
3350 SCM_ASSERT_INT (arg1
, SCM_ARG1
, "server-read");
3352 int in1
= scm_to_int (arg1
);
3355 string out
= server_read (in1
);
3358 return string_to_scm (out
);
3362 tmg_server_write (SCM arg1
, SCM arg2
) {
3363 SCM_ASSERT_INT (arg1
, SCM_ARG1
, "server-write");
3364 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "server-write");
3366 int in1
= scm_to_int (arg1
);
3367 string in2
= scm_to_string (arg2
);
3370 server_write (in1
, in2
);
3373 return SCM_UNSPECIFIED
;
3377 tmg_client_start (SCM arg1
) {
3378 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "client-start");
3380 string in1
= scm_to_string (arg1
);
3386 return SCM_UNSPECIFIED
;
3390 tmg_client_stop () {
3395 return SCM_UNSPECIFIED
;
3399 tmg_client_read () {
3401 string out
= client_read ();
3404 return string_to_scm (out
);
3408 tmg_client_write (SCM arg1
) {
3409 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "client-write");
3411 string in1
= scm_to_string (arg1
);
3417 return SCM_UNSPECIFIED
;
3421 tmg_enter_secure_mode () {
3423 enter_secure_mode ();
3426 return SCM_UNSPECIFIED
;
3430 tmg_connection_start (SCM arg1
, SCM arg2
) {
3431 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "connection-start");
3432 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "connection-start");
3434 string in1
= scm_to_string (arg1
);
3435 string in2
= scm_to_string (arg2
);
3438 string out
= connection_start (in1
, in2
);
3441 return string_to_scm (out
);
3445 tmg_connection_status (SCM arg1
, SCM arg2
) {
3446 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "connection-status");
3447 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "connection-status");
3449 string in1
= scm_to_string (arg1
);
3450 string in2
= scm_to_string (arg2
);
3453 int out
= connection_status (in1
, in2
);
3456 return int_to_scm (out
);
3460 tmg_connection_write_string (SCM arg1
, SCM arg2
, SCM arg3
) {
3461 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "connection-write-string");
3462 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "connection-write-string");
3463 SCM_ASSERT_STRING (arg3
, SCM_ARG3
, "connection-write-string");
3465 string in1
= scm_to_string (arg1
);
3466 string in2
= scm_to_string (arg2
);
3467 string in3
= scm_to_string (arg3
);
3470 connection_write (in1
, in2
, in3
);
3473 return SCM_UNSPECIFIED
;
3477 tmg_connection_write (SCM arg1
, SCM arg2
, SCM arg3
) {
3478 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "connection-write");
3479 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "connection-write");
3480 SCM_ASSERT_CONTENT (arg3
, SCM_ARG3
, "connection-write");
3482 string in1
= scm_to_string (arg1
);
3483 string in2
= scm_to_string (arg2
);
3484 content in3
= scm_to_content (arg3
);
3487 connection_write (in1
, in2
, in3
);
3490 return SCM_UNSPECIFIED
;
3494 tmg_connection_cmd (SCM arg1
, SCM arg2
, SCM arg3
) {
3495 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "connection-cmd");
3496 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "connection-cmd");
3497 SCM_ASSERT_STRING (arg3
, SCM_ARG3
, "connection-cmd");
3499 string in1
= scm_to_string (arg1
);
3500 string in2
= scm_to_string (arg2
);
3501 string in3
= scm_to_string (arg3
);
3504 tree out
= connection_cmd (in1
, in2
, in3
);
3507 return tree_to_scm (out
);
3511 tmg_connection_eval (SCM arg1
, SCM arg2
, SCM arg3
) {
3512 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "connection-eval");
3513 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "connection-eval");
3514 SCM_ASSERT_CONTENT (arg3
, SCM_ARG3
, "connection-eval");
3516 string in1
= scm_to_string (arg1
);
3517 string in2
= scm_to_string (arg2
);
3518 content in3
= scm_to_content (arg3
);
3521 tree out
= connection_eval (in1
, in2
, in3
);
3524 return tree_to_scm (out
);
3528 tmg_connection_interrupt (SCM arg1
, SCM arg2
) {
3529 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "connection-interrupt");
3530 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "connection-interrupt");
3532 string in1
= scm_to_string (arg1
);
3533 string in2
= scm_to_string (arg2
);
3536 connection_interrupt (in1
, in2
);
3539 return SCM_UNSPECIFIED
;
3543 tmg_connection_stop (SCM arg1
, SCM arg2
) {
3544 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "connection-stop");
3545 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "connection-stop");
3547 string in1
= scm_to_string (arg1
);
3548 string in2
= scm_to_string (arg2
);
3551 connection_stop (in1
, in2
);
3554 return SCM_UNSPECIFIED
;
3558 tmg_widget_hmenu (SCM arg1
) {
3559 SCM_ASSERT_ARRAY_WIDGET (arg1
, SCM_ARG1
, "widget-hmenu");
3561 array_widget in1
= scm_to_array_widget (arg1
);
3564 widget out
= horizontal_menu (in1
);
3567 return widget_to_scm (out
);
3571 tmg_widget_vmenu (SCM arg1
) {
3572 SCM_ASSERT_ARRAY_WIDGET (arg1
, SCM_ARG1
, "widget-vmenu");
3574 array_widget in1
= scm_to_array_widget (arg1
);
3577 widget out
= vertical_menu (in1
);
3580 return widget_to_scm (out
);
3584 tmg_widget_tmenu (SCM arg1
, SCM arg2
) {
3585 SCM_ASSERT_ARRAY_WIDGET (arg1
, SCM_ARG1
, "widget-tmenu");
3586 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "widget-tmenu");
3588 array_widget in1
= scm_to_array_widget (arg1
);
3589 int in2
= scm_to_int (arg2
);
3592 widget out
= tile_menu (in1
, in2
);
3595 return widget_to_scm (out
);
3599 tmg_widget_separator (SCM arg1
) {
3600 SCM_ASSERT_BOOL (arg1
, SCM_ARG1
, "widget-separator");
3602 bool in1
= scm_to_bool (arg1
);
3605 widget out
= menu_separator (in1
);
3608 return widget_to_scm (out
);
3612 tmg_widget_menu_group (SCM arg1
, SCM arg2
) {
3613 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "widget-menu-group");
3614 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "widget-menu-group");
3616 string in1
= scm_to_string (arg1
);
3617 string in2
= scm_to_string (arg2
);
3620 widget out
= menu_group (in1
, in2
);
3623 return widget_to_scm (out
);
3627 tmg_widget_pulldown_button (SCM arg1
, SCM arg2
) {
3628 SCM_ASSERT_WIDGET (arg1
, SCM_ARG1
, "widget-pulldown-button");
3629 SCM_ASSERT_PROMISE_WIDGET (arg2
, SCM_ARG2
, "widget-pulldown-button");
3631 widget in1
= scm_to_widget (arg1
);
3632 promise_widget in2
= scm_to_promise_widget (arg2
);
3635 widget out
= pulldown_button (in1
, in2
);
3638 return widget_to_scm (out
);
3642 tmg_widget_pullright_button (SCM arg1
, SCM arg2
) {
3643 SCM_ASSERT_WIDGET (arg1
, SCM_ARG1
, "widget-pullright-button");
3644 SCM_ASSERT_PROMISE_WIDGET (arg2
, SCM_ARG2
, "widget-pullright-button");
3646 widget in1
= scm_to_widget (arg1
);
3647 promise_widget in2
= scm_to_promise_widget (arg2
);
3650 widget out
= pullright_button (in1
, in2
);
3653 return widget_to_scm (out
);
3657 tmg_widget_menu_button (SCM arg1
, SCM arg2
, SCM arg3
, SCM arg4
, SCM arg5
) {
3658 SCM_ASSERT_WIDGET (arg1
, SCM_ARG1
, "widget-menu-button");
3659 SCM_ASSERT_COMMAND (arg2
, SCM_ARG2
, "widget-menu-button");
3660 SCM_ASSERT_STRING (arg3
, SCM_ARG3
, "widget-menu-button");
3661 SCM_ASSERT_STRING (arg4
, SCM_ARG4
, "widget-menu-button");
3662 SCM_ASSERT_BOOL (arg5
, SCM_ARG5
, "widget-menu-button");
3664 widget in1
= scm_to_widget (arg1
);
3665 command in2
= scm_to_command (arg2
);
3666 string in3
= scm_to_string (arg3
);
3667 string in4
= scm_to_string (arg4
);
3668 bool in5
= scm_to_bool (arg5
);
3671 widget out
= menu_button (in1
, in2
, in3
, in4
, in5
);
3674 return widget_to_scm (out
);
3678 tmg_widget_balloon (SCM arg1
, SCM arg2
) {
3679 SCM_ASSERT_WIDGET (arg1
, SCM_ARG1
, "widget-balloon");
3680 SCM_ASSERT_WIDGET (arg2
, SCM_ARG2
, "widget-balloon");
3682 widget in1
= scm_to_widget (arg1
);
3683 widget in2
= scm_to_widget (arg2
);
3686 widget out
= balloon_widget (in1
, in2
);
3689 return widget_to_scm (out
);
3693 tmg_widget_empty () {
3695 widget out
= empty_widget ();
3698 return widget_to_scm (out
);
3702 tmg_widget_text (SCM arg1
, SCM arg2
, SCM arg3
, SCM arg4
) {
3703 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "widget-text");
3704 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "widget-text");
3705 SCM_ASSERT_BOOL (arg3
, SCM_ARG3
, "widget-text");
3706 SCM_ASSERT_STRING (arg4
, SCM_ARG4
, "widget-text");
3708 string in1
= scm_to_string (arg1
);
3709 int in2
= scm_to_int (arg2
);
3710 bool in3
= scm_to_bool (arg3
);
3711 string in4
= scm_to_string (arg4
);
3714 widget out
= text_widget (in1
, in2
, in3
, in4
);
3717 return widget_to_scm (out
);
3721 tmg_widget_xpm (SCM arg1
) {
3722 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "widget-xpm");
3724 url in1
= scm_to_url (arg1
);
3727 widget out
= xpm_widget (in1
);
3730 return widget_to_scm (out
);
3734 tmg_widget_box (SCM arg1
, SCM arg2
, SCM arg3
, SCM arg4
, SCM arg5
) {
3735 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "widget-box");
3736 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "widget-box");
3737 SCM_ASSERT_INT (arg3
, SCM_ARG3
, "widget-box");
3738 SCM_ASSERT_BOOL (arg4
, SCM_ARG4
, "widget-box");
3739 SCM_ASSERT_BOOL (arg5
, SCM_ARG5
, "widget-box");
3741 scheme_tree in1
= scm_to_scheme_tree (arg1
);
3742 string in2
= scm_to_string (arg2
);
3743 int in3
= scm_to_int (arg3
);
3744 bool in4
= scm_to_bool (arg4
);
3745 bool in5
= scm_to_bool (arg5
);
3748 widget out
= box_widget (in1
, in2
, in3
, in4
, in5
);
3751 return widget_to_scm (out
);
3755 tmg_object_2promise_widget (SCM arg1
) {
3756 SCM_ASSERT_OBJECT (arg1
, SCM_ARG1
, "object->promise-widget");
3758 object in1
= scm_to_object (arg1
);
3761 promise_widget out
= as_promise_widget (in1
);
3764 return promise_widget_to_scm (out
);
3768 tmg_bib_add_period (SCM arg1
) {
3769 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "bib-add-period");
3771 scheme_tree in1
= scm_to_scheme_tree (arg1
);
3774 scheme_tree out
= bib_add_period (in1
);
3777 return scheme_tree_to_scm (out
);
3781 tmg_bib_upcase_first (SCM arg1
) {
3782 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "bib-upcase-first");
3784 scheme_tree in1
= scm_to_scheme_tree (arg1
);
3787 scheme_tree out
= bib_upcase_first (in1
);
3790 return scheme_tree_to_scm (out
);
3794 tmg_bib_locase (SCM arg1
) {
3795 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "bib-locase");
3797 scheme_tree in1
= scm_to_scheme_tree (arg1
);
3800 scheme_tree out
= bib_locase (in1
);
3803 return scheme_tree_to_scm (out
);
3807 tmg_bib_upcase (SCM arg1
) {
3808 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "bib-upcase");
3810 scheme_tree in1
= scm_to_scheme_tree (arg1
);
3813 scheme_tree out
= bib_upcase (in1
);
3816 return scheme_tree_to_scm (out
);
3820 tmg_bib_default (SCM arg1
) {
3821 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "bib-default");
3823 scheme_tree in1
= scm_to_scheme_tree (arg1
);
3826 scheme_tree out
= bib_default (in1
);
3829 return scheme_tree_to_scm (out
);
3833 tmg_bib_purify (SCM arg1
) {
3834 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "bib-purify");
3836 scheme_tree in1
= scm_to_scheme_tree (arg1
);
3839 string out
= bib_purify (in1
);
3842 return string_to_scm (out
);
3846 tmg_bib_text_length (SCM arg1
) {
3847 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "bib-text-length");
3849 scheme_tree in1
= scm_to_scheme_tree (arg1
);
3852 int out
= bib_text_length (in1
);
3855 return int_to_scm (out
);
3859 tmg_bib_prefix (SCM arg1
, SCM arg2
) {
3860 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "bib-prefix");
3861 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "bib-prefix");
3863 scheme_tree in1
= scm_to_scheme_tree (arg1
);
3864 int in2
= scm_to_int (arg2
);
3867 string out
= bib_prefix (in1
, in2
);
3870 return string_to_scm (out
);
3874 tmg_bib_emptyP (SCM arg1
, SCM arg2
) {
3875 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "bib-empty?");
3876 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "bib-empty?");
3878 scheme_tree in1
= scm_to_scheme_tree (arg1
);
3879 string in2
= scm_to_string (arg2
);
3882 bool out
= bib_empty (in1
, in2
);
3885 return bool_to_scm (out
);
3889 tmg_bib_field (SCM arg1
, SCM arg2
) {
3890 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "bib-field");
3891 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "bib-field");
3893 scheme_tree in1
= scm_to_scheme_tree (arg1
);
3894 string in2
= scm_to_string (arg2
);
3897 scheme_tree out
= bib_field (in1
, in2
);
3900 return scheme_tree_to_scm (out
);
3904 tmg_bib_abbreviate (SCM arg1
, SCM arg2
, SCM arg3
) {
3905 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "bib-abbreviate");
3906 SCM_ASSERT_SCHEME_TREE (arg2
, SCM_ARG2
, "bib-abbreviate");
3907 SCM_ASSERT_SCHEME_TREE (arg3
, SCM_ARG3
, "bib-abbreviate");
3909 scheme_tree in1
= scm_to_scheme_tree (arg1
);
3910 scheme_tree in2
= scm_to_scheme_tree (arg2
);
3911 scheme_tree in3
= scm_to_scheme_tree (arg3
);
3914 scheme_tree out
= bib_abbreviate (in1
, in2
, in3
);
3917 return scheme_tree_to_scm (out
);
3921 initialize_glue_basic () {
3922 scm_new_procedure ("texmacs-version-release", (FN
) tmg_texmacs_version_release
, 1, 0, 0);
3923 scm_new_procedure ("version-before?", (FN
) tmg_version_beforeP
, 2, 0, 0);
3924 scm_new_procedure ("os-win32?", (FN
) tmg_os_win32P
, 0, 0, 0);
3925 scm_new_procedure ("os-mingw?", (FN
) tmg_os_mingwP
, 0, 0, 0);
3926 scm_new_procedure ("os-macos?", (FN
) tmg_os_macosP
, 0, 0, 0);
3927 scm_new_procedure ("x-gui?", (FN
) tmg_x_guiP
, 0, 0, 0);
3928 scm_new_procedure ("qt-gui?", (FN
) tmg_qt_guiP
, 0, 0, 0);
3929 scm_new_procedure ("tm-output", (FN
) tmg_tm_output
, 1, 0, 0);
3930 scm_new_procedure ("tm-errput", (FN
) tmg_tm_errput
, 1, 0, 0);
3931 scm_new_procedure ("win32-display", (FN
) tmg_win32_display
, 1, 0, 0);
3932 scm_new_procedure ("scheme-dialect", (FN
) tmg_scheme_dialect
, 0, 0, 0);
3933 scm_new_procedure ("get-texmacs-path", (FN
) tmg_get_texmacs_path
, 0, 0, 0);
3934 scm_new_procedure ("plugin-list", (FN
) tmg_plugin_list
, 0, 0, 0);
3935 scm_new_procedure ("get-font-type", (FN
) tmg_get_font_type
, 0, 0, 0);
3936 scm_new_procedure ("set-font-type", (FN
) tmg_set_font_type
, 1, 0, 0);
3937 scm_new_procedure ("font-exists-in-tt?", (FN
) tmg_font_exists_in_ttP
, 1, 0, 0);
3938 scm_new_procedure ("eval-system", (FN
) tmg_eval_system
, 1, 0, 0);
3939 scm_new_procedure ("var-eval-system", (FN
) tmg_var_eval_system
, 1, 0, 0);
3940 scm_new_procedure ("get-locale-language", (FN
) tmg_get_locale_language
, 0, 0, 0);
3941 scm_new_procedure ("texmacs-time", (FN
) tmg_texmacs_time
, 0, 0, 0);
3942 scm_new_procedure ("texmacs-memory", (FN
) tmg_texmacs_memory
, 0, 0, 0);
3943 scm_new_procedure ("bench-print", (FN
) tmg_bench_print
, 1, 0, 0);
3944 scm_new_procedure ("bench-print-all", (FN
) tmg_bench_print_all
, 0, 0, 0);
3945 scm_new_procedure ("system-wait", (FN
) tmg_system_wait
, 2, 0, 0);
3946 scm_new_procedure ("set-bibtex-command", (FN
) tmg_set_bibtex_command
, 1, 0, 0);
3947 scm_new_procedure ("math-symbol-group", (FN
) tmg_math_symbol_group
, 1, 0, 0);
3948 scm_new_procedure ("math-group-members", (FN
) tmg_math_group_members
, 1, 0, 0);
3949 scm_new_procedure ("math-symbol-type", (FN
) tmg_math_symbol_type
, 1, 0, 0);
3950 scm_new_procedure ("object->command", (FN
) tmg_object_2command
, 1, 0, 0);
3951 scm_new_procedure ("exec-delayed", (FN
) tmg_exec_delayed
, 1, 0, 0);
3952 scm_new_procedure ("exec-delayed-pause", (FN
) tmg_exec_delayed_pause
, 1, 0, 0);
3953 scm_new_procedure ("set-input-language", (FN
) tmg_set_input_language
, 1, 0, 0);
3954 scm_new_procedure ("get-input-language", (FN
) tmg_get_input_language
, 0, 0, 0);
3955 scm_new_procedure ("set-output-language", (FN
) tmg_set_output_language
, 1, 0, 0);
3956 scm_new_procedure ("get-output-language", (FN
) tmg_get_output_language
, 0, 0, 0);
3957 scm_new_procedure ("translate", (FN
) tmg_translate
, 3, 0, 0);
3958 scm_new_procedure ("color", (FN
) tmg_color
, 1, 0, 0);
3959 scm_new_procedure ("new-author", (FN
) tmg_new_author
, 0, 0, 0);
3960 scm_new_procedure ("set-author", (FN
) tmg_set_author
, 1, 0, 0);
3961 scm_new_procedure ("get-author", (FN
) tmg_get_author
, 0, 0, 0);
3962 scm_new_procedure ("debug-set", (FN
) tmg_debug_set
, 2, 0, 0);
3963 scm_new_procedure ("debug-get", (FN
) tmg_debug_get
, 1, 0, 0);
3964 scm_new_procedure ("cout-buffer", (FN
) tmg_cout_buffer
, 0, 0, 0);
3965 scm_new_procedure ("cout-unbuffer", (FN
) tmg_cout_unbuffer
, 0, 0, 0);
3966 scm_new_procedure ("image->psdoc", (FN
) tmg_image_2psdoc
, 1, 0, 0);
3967 scm_new_procedure ("tree->stree", (FN
) tmg_tree_2stree
, 1, 0, 0);
3968 scm_new_procedure ("stree->tree", (FN
) tmg_stree_2tree
, 1, 0, 0);
3969 scm_new_procedure ("tree->string", (FN
) tmg_tree_2string
, 1, 0, 0);
3970 scm_new_procedure ("string->tree", (FN
) tmg_string_2tree
, 1, 0, 0);
3971 scm_new_procedure ("tm->tree", (FN
) tmg_tm_2tree
, 1, 0, 0);
3972 scm_new_procedure ("tree-atomic?", (FN
) tmg_tree_atomicP
, 1, 0, 0);
3973 scm_new_procedure ("tree-compound?", (FN
) tmg_tree_compoundP
, 1, 0, 0);
3974 scm_new_procedure ("tree-label", (FN
) tmg_tree_label
, 1, 0, 0);
3975 scm_new_procedure ("tree-children", (FN
) tmg_tree_children
, 1, 0, 0);
3976 scm_new_procedure ("tree-arity", (FN
) tmg_tree_arity
, 1, 0, 0);
3977 scm_new_procedure ("tree-child-ref", (FN
) tmg_tree_child_ref
, 2, 0, 0);
3978 scm_new_procedure ("tree-child-set!", (FN
) tmg_tree_child_setS
, 3, 0, 0);
3979 scm_new_procedure ("tree-child-insert", (FN
) tmg_tree_child_insert
, 3, 0, 0);
3980 scm_new_procedure ("tree-ip", (FN
) tmg_tree_ip
, 1, 0, 0);
3981 scm_new_procedure ("tree-active?", (FN
) tmg_tree_activeP
, 1, 0, 0);
3982 scm_new_procedure ("tree-eq?", (FN
) tmg_tree_eqP
, 2, 0, 0);
3983 scm_new_procedure ("subtree", (FN
) tmg_subtree
, 2, 0, 0);
3984 scm_new_procedure ("tree-range", (FN
) tmg_tree_range
, 3, 0, 0);
3985 scm_new_procedure ("tree-copy", (FN
) tmg_tree_copy
, 1, 0, 0);
3986 scm_new_procedure ("tree-append", (FN
) tmg_tree_append
, 2, 0, 0);
3987 scm_new_procedure ("tree-right-index", (FN
) tmg_tree_right_index
, 1, 0, 0);
3988 scm_new_procedure ("tree-label-extension?", (FN
) tmg_tree_label_extensionP
, 1, 0, 0);
3989 scm_new_procedure ("tree-multi-paragraph?", (FN
) tmg_tree_multi_paragraphP
, 1, 0, 0);
3990 scm_new_procedure ("tree-simplify", (FN
) tmg_tree_simplify
, 1, 0, 0);
3991 scm_new_procedure ("tree-accessible-child?", (FN
) tmg_tree_accessible_childP
, 2, 0, 0);
3992 scm_new_procedure ("tree-accessible-children", (FN
) tmg_tree_accessible_children
, 1, 0, 0);
3993 scm_new_procedure ("tree-load-inclusion", (FN
) tmg_tree_load_inclusion
, 1, 0, 0);
3994 scm_new_procedure ("tree-as-string", (FN
) tmg_tree_as_string
, 1, 0, 0);
3995 scm_new_procedure ("tree-extents", (FN
) tmg_tree_extents
, 1, 0, 0);
3996 scm_new_procedure ("tree-empty?", (FN
) tmg_tree_emptyP
, 1, 0, 0);
3997 scm_new_procedure ("tree-assign", (FN
) tmg_tree_assign
, 2, 0, 0);
3998 scm_new_procedure ("tree-var-insert", (FN
) tmg_tree_var_insert
, 3, 0, 0);
3999 scm_new_procedure ("tree-remove", (FN
) tmg_tree_remove
, 3, 0, 0);
4000 scm_new_procedure ("tree-split", (FN
) tmg_tree_split
, 3, 0, 0);
4001 scm_new_procedure ("tree-join", (FN
) tmg_tree_join
, 2, 0, 0);
4002 scm_new_procedure ("tree-assign-node", (FN
) tmg_tree_assign_node
, 2, 0, 0);
4003 scm_new_procedure ("tree-insert-node", (FN
) tmg_tree_insert_node
, 3, 0, 0);
4004 scm_new_procedure ("tree-remove-node", (FN
) tmg_tree_remove_node
, 2, 0, 0);
4005 scm_new_procedure ("path-inf?", (FN
) tmg_path_infP
, 2, 0, 0);
4006 scm_new_procedure ("path-inf-eq?", (FN
) tmg_path_inf_eqP
, 2, 0, 0);
4007 scm_new_procedure ("path-less?", (FN
) tmg_path_lessP
, 2, 0, 0);
4008 scm_new_procedure ("path-less-eq?", (FN
) tmg_path_less_eqP
, 2, 0, 0);
4009 scm_new_procedure ("path-start", (FN
) tmg_path_start
, 2, 0, 0);
4010 scm_new_procedure ("path-end", (FN
) tmg_path_end
, 2, 0, 0);
4011 scm_new_procedure ("path-next", (FN
) tmg_path_next
, 2, 0, 0);
4012 scm_new_procedure ("path-previous", (FN
) tmg_path_previous
, 2, 0, 0);
4013 scm_new_procedure ("path-next-word", (FN
) tmg_path_next_word
, 2, 0, 0);
4014 scm_new_procedure ("path-previous-word", (FN
) tmg_path_previous_word
, 2, 0, 0);
4015 scm_new_procedure ("path-next-node", (FN
) tmg_path_next_node
, 2, 0, 0);
4016 scm_new_procedure ("path-previous-node", (FN
) tmg_path_previous_node
, 2, 0, 0);
4017 scm_new_procedure ("path-next-tag", (FN
) tmg_path_next_tag
, 3, 0, 0);
4018 scm_new_procedure ("path-previous-tag", (FN
) tmg_path_previous_tag
, 3, 0, 0);
4019 scm_new_procedure ("path-next-tag-same-argument", (FN
) tmg_path_next_tag_same_argument
, 3, 0, 0);
4020 scm_new_procedure ("path-previous-tag-same-argument", (FN
) tmg_path_previous_tag_same_argument
, 3, 0, 0);
4021 scm_new_procedure ("path-next-argument", (FN
) tmg_path_next_argument
, 2, 0, 0);
4022 scm_new_procedure ("path-previous-argument", (FN
) tmg_path_previous_argument
, 2, 0, 0);
4023 scm_new_procedure ("tree->ids", (FN
) tmg_tree_2ids
, 1, 0, 0);
4024 scm_new_procedure ("id->trees", (FN
) tmg_id_2trees
, 1, 0, 0);
4025 scm_new_procedure ("vertex->links", (FN
) tmg_vertex_2links
, 1, 0, 0);
4026 scm_new_procedure ("tree->tree-pointer", (FN
) tmg_tree_2tree_pointer
, 1, 0, 0);
4027 scm_new_procedure ("tree-pointer-detach", (FN
) tmg_tree_pointer_detach
, 1, 0, 0);
4028 scm_new_procedure ("tree-pointer->tree", (FN
) tmg_tree_pointer_2tree
, 1, 0, 0);
4029 scm_new_procedure ("current-link-types", (FN
) tmg_current_link_types
, 0, 0, 0);
4030 scm_new_procedure ("get-locus-rendering", (FN
) tmg_get_locus_rendering
, 1, 0, 0);
4031 scm_new_procedure ("set-locus-rendering", (FN
) tmg_set_locus_rendering
, 2, 0, 0);
4032 scm_new_procedure ("declare-visited", (FN
) tmg_declare_visited
, 1, 0, 0);
4033 scm_new_procedure ("has-been-visited?", (FN
) tmg_has_been_visitedP
, 1, 0, 0);
4034 scm_new_procedure ("string-number?", (FN
) tmg_string_numberP
, 1, 0, 0);
4035 scm_new_procedure ("string-search-forwards", (FN
) tmg_string_search_forwards
, 3, 0, 0);
4036 scm_new_procedure ("string-search-backwards", (FN
) tmg_string_search_backwards
, 3, 0, 0);
4037 scm_new_procedure ("string-replace", (FN
) tmg_string_replace
, 3, 0, 0);
4038 scm_new_procedure ("string-locase-alpha?", (FN
) tmg_string_locase_alphaP
, 1, 0, 0);
4039 scm_new_procedure ("upcase-first", (FN
) tmg_upcase_first
, 1, 0, 0);
4040 scm_new_procedure ("locase-first", (FN
) tmg_locase_first
, 1, 0, 0);
4041 scm_new_procedure ("upcase-all", (FN
) tmg_upcase_all
, 1, 0, 0);
4042 scm_new_procedure ("locase-all", (FN
) tmg_locase_all
, 1, 0, 0);
4043 scm_new_procedure ("string-union", (FN
) tmg_string_union
, 2, 0, 0);
4044 scm_new_procedure ("string-minus", (FN
) tmg_string_minus
, 2, 0, 0);
4045 scm_new_procedure ("string-encode", (FN
) tmg_string_encode
, 1, 0, 0);
4046 scm_new_procedure ("string-decode", (FN
) tmg_string_decode
, 1, 0, 0);
4047 scm_new_procedure ("escape-generic", (FN
) tmg_escape_generic
, 1, 0, 0);
4048 scm_new_procedure ("escape-verbatim", (FN
) tmg_escape_verbatim
, 1, 0, 0);
4049 scm_new_procedure ("escape-shell", (FN
) tmg_escape_shell
, 1, 0, 0);
4050 scm_new_procedure ("string-convert", (FN
) tmg_string_convert
, 3, 0, 0);
4051 scm_new_procedure ("utf8->cork", (FN
) tmg_utf8_2cork
, 1, 0, 0);
4052 scm_new_procedure ("cork->utf8", (FN
) tmg_cork_2utf8
, 1, 0, 0);
4053 scm_new_procedure ("utf8->html", (FN
) tmg_utf8_2html
, 1, 0, 0);
4054 scm_new_procedure ("tm->xml-name", (FN
) tmg_tm_2xml_name
, 1, 0, 0);
4055 scm_new_procedure ("old-tm->xml-cdata", (FN
) tmg_old_tm_2xml_cdata
, 1, 0, 0);
4056 scm_new_procedure ("tm->xml-cdata", (FN
) tmg_tm_2xml_cdata
, 1, 0, 0);
4057 scm_new_procedure ("xml-name->tm", (FN
) tmg_xml_name_2tm
, 1, 0, 0);
4058 scm_new_procedure ("old-xml-cdata->tm", (FN
) tmg_old_xml_cdata_2tm
, 1, 0, 0);
4059 scm_new_procedure ("xml-unspace", (FN
) tmg_xml_unspace
, 3, 0, 0);
4060 scm_new_procedure ("define-grammar-rule", (FN
) tmg_define_grammar_rule
, 2, 0, 0);
4061 scm_new_procedure ("grammar-parse", (FN
) tmg_grammar_parse
, 2, 0, 0);
4062 scm_new_procedure ("parse-texmacs", (FN
) tmg_parse_texmacs
, 1, 0, 0);
4063 scm_new_procedure ("serialize-texmacs", (FN
) tmg_serialize_texmacs
, 1, 0, 0);
4064 scm_new_procedure ("parse-texmacs-snippet", (FN
) tmg_parse_texmacs_snippet
, 1, 0, 0);
4065 scm_new_procedure ("serialize-texmacs-snippet", (FN
) tmg_serialize_texmacs_snippet
, 1, 0, 0);
4066 scm_new_procedure ("texmacs->stm", (FN
) tmg_texmacs_2stm
, 1, 0, 0);
4067 scm_new_procedure ("stm->texmacs", (FN
) tmg_stm_2texmacs
, 1, 0, 0);
4068 scm_new_procedure ("stm-snippet->texmacs", (FN
) tmg_stm_snippet_2texmacs
, 1, 0, 0);
4069 scm_new_procedure ("cpp-texmacs->verbatim", (FN
) tmg_cpp_texmacs_2verbatim
, 3, 0, 0);
4070 scm_new_procedure ("cpp-verbatim-snippet->texmacs", (FN
) tmg_cpp_verbatim_snippet_2texmacs
, 3, 0, 0);
4071 scm_new_procedure ("cpp-verbatim->texmacs", (FN
) tmg_cpp_verbatim_2texmacs
, 3, 0, 0);
4072 scm_new_procedure ("parse-latex", (FN
) tmg_parse_latex
, 1, 0, 0);
4073 scm_new_procedure ("parse-latex-document", (FN
) tmg_parse_latex_document
, 1, 0, 0);
4074 scm_new_procedure ("latex->texmacs", (FN
) tmg_latex_2texmacs
, 1, 0, 0);
4075 scm_new_procedure ("parse-xml", (FN
) tmg_parse_xml
, 1, 0, 0);
4076 scm_new_procedure ("parse-html", (FN
) tmg_parse_html
, 1, 0, 0);
4077 scm_new_procedure ("parse-bib", (FN
) tmg_parse_bib
, 1, 0, 0);
4078 scm_new_procedure ("upgrade-tmml", (FN
) tmg_upgrade_tmml
, 1, 0, 0);
4079 scm_new_procedure ("string->url", (FN
) tmg_string_2url
, 1, 0, 0);
4080 scm_new_procedure ("url", (FN
) tmg_url
, 2, 0, 0);
4081 scm_new_procedure ("url-system", (FN
) tmg_url_system
, 1, 0, 0);
4082 scm_new_procedure ("url-none", (FN
) tmg_url_none
, 0, 0, 0);
4083 scm_new_procedure ("url-any", (FN
) tmg_url_any
, 0, 0, 0);
4084 scm_new_procedure ("url-wildcard", (FN
) tmg_url_wildcard
, 1, 0, 0);
4085 scm_new_procedure ("url-parent", (FN
) tmg_url_parent
, 0, 0, 0);
4086 scm_new_procedure ("url-append", (FN
) tmg_url_append
, 2, 0, 0);
4087 scm_new_procedure ("url-or", (FN
) tmg_url_or
, 2, 0, 0);
4088 scm_new_procedure ("url->string", (FN
) tmg_url_2string
, 1, 0, 0);
4089 scm_new_procedure ("url-none?", (FN
) tmg_url_noneP
, 1, 0, 0);
4090 scm_new_procedure ("url-rooted-web?", (FN
) tmg_url_rooted_webP
, 1, 0, 0);
4091 scm_new_procedure ("url-concat?", (FN
) tmg_url_concatP
, 1, 0, 0);
4092 scm_new_procedure ("url-or?", (FN
) tmg_url_orP
, 1, 0, 0);
4093 scm_new_procedure ("url-ref", (FN
) tmg_url_ref
, 2, 0, 0);
4094 scm_new_procedure ("url-tail", (FN
) tmg_url_tail
, 1, 0, 0);
4095 scm_new_procedure ("url-suffix", (FN
) tmg_url_suffix
, 1, 0, 0);
4096 scm_new_procedure ("url-glue", (FN
) tmg_url_glue
, 2, 0, 0);
4097 scm_new_procedure ("url-unglue", (FN
) tmg_url_unglue
, 2, 0, 0);
4098 scm_new_procedure ("url-relative", (FN
) tmg_url_relative
, 2, 0, 0);
4099 scm_new_procedure ("url-expand", (FN
) tmg_url_expand
, 1, 0, 0);
4100 scm_new_procedure ("url-factor", (FN
) tmg_url_factor
, 1, 0, 0);
4101 scm_new_procedure ("url-delta", (FN
) tmg_url_delta
, 2, 0, 0);
4102 scm_new_procedure ("url-secure?", (FN
) tmg_url_secureP
, 1, 0, 0);
4103 scm_new_procedure ("url-descends?", (FN
) tmg_url_descendsP
, 2, 0, 0);
4104 scm_new_procedure ("url-complete", (FN
) tmg_url_complete
, 2, 0, 0);
4105 scm_new_procedure ("url-resolve", (FN
) tmg_url_resolve
, 2, 0, 0);
4106 scm_new_procedure ("url-resolve-in-path", (FN
) tmg_url_resolve_in_path
, 1, 0, 0);
4107 scm_new_procedure ("url-exists?", (FN
) tmg_url_existsP
, 1, 0, 0);
4108 scm_new_procedure ("url-exists-in-path?", (FN
) tmg_url_exists_in_pathP
, 1, 0, 0);
4109 scm_new_procedure ("url-exists-in-tex?", (FN
) tmg_url_exists_in_texP
, 1, 0, 0);
4110 scm_new_procedure ("url-concretize", (FN
) tmg_url_concretize
, 1, 0, 0);
4111 scm_new_procedure ("url-materialize", (FN
) tmg_url_materialize
, 2, 0, 0);
4112 scm_new_procedure ("url-test?", (FN
) tmg_url_testP
, 2, 0, 0);
4113 scm_new_procedure ("url-regular?", (FN
) tmg_url_regularP
, 1, 0, 0);
4114 scm_new_procedure ("url-directory?", (FN
) tmg_url_directoryP
, 1, 0, 0);
4115 scm_new_procedure ("url-link?", (FN
) tmg_url_linkP
, 1, 0, 0);
4116 scm_new_procedure ("url-newer?", (FN
) tmg_url_newerP
, 2, 0, 0);
4117 scm_new_procedure ("url-last-modified", (FN
) tmg_url_last_modified
, 1, 0, 0);
4118 scm_new_procedure ("url-temp", (FN
) tmg_url_temp
, 0, 0, 0);
4119 scm_new_procedure ("url-scratch", (FN
) tmg_url_scratch
, 3, 0, 0);
4120 scm_new_procedure ("url-scratch?", (FN
) tmg_url_scratchP
, 1, 0, 0);
4121 scm_new_procedure ("string-save", (FN
) tmg_string_save
, 2, 0, 0);
4122 scm_new_procedure ("string-load", (FN
) tmg_string_load
, 1, 0, 0);
4123 scm_new_procedure ("system-move", (FN
) tmg_system_move
, 2, 0, 0);
4124 scm_new_procedure ("system-copy", (FN
) tmg_system_copy
, 2, 0, 0);
4125 scm_new_procedure ("system-remove", (FN
) tmg_system_remove
, 1, 0, 0);
4126 scm_new_procedure ("system-mkdir", (FN
) tmg_system_mkdir
, 1, 0, 0);
4127 scm_new_procedure ("system-search-score", (FN
) tmg_system_search_score
, 2, 0, 0);
4128 scm_new_procedure ("system-1", (FN
) tmg_system_1
, 2, 0, 0);
4129 scm_new_procedure ("system-2", (FN
) tmg_system_2
, 3, 0, 0);
4130 scm_new_procedure ("tmfs-set", (FN
) tmg_tmfs_set
, 2, 0, 0);
4131 scm_new_procedure ("tmfs-reset", (FN
) tmg_tmfs_reset
, 2, 0, 0);
4132 scm_new_procedure ("tmfs-get", (FN
) tmg_tmfs_get
, 1, 0, 0);
4133 scm_new_procedure ("tmfs-new-save", (FN
) tmg_tmfs_new_save
, 2, 0, 0);
4134 scm_new_procedure ("tmfs-new-remove", (FN
) tmg_tmfs_new_remove
, 1, 0, 0);
4135 scm_new_procedure ("tmfs-new-load", (FN
) tmg_tmfs_new_load
, 1, 0, 0);
4136 scm_new_procedure ("tmfs-create-ressource", (FN
) tmg_tmfs_create_ressource
, 0, 0, 0);
4137 scm_new_procedure ("tmfs-ressource-head", (FN
) tmg_tmfs_ressource_head
, 1, 0, 0);
4138 scm_new_procedure ("tmfs-ressource-versions", (FN
) tmg_tmfs_ressource_versions
, 1, 0, 0);
4139 scm_new_procedure ("tmfs-save-ressource", (FN
) tmg_tmfs_save_ressource
, 3, 0, 0);
4140 scm_new_procedure ("tmfs-load-ressource-file", (FN
) tmg_tmfs_load_ressource_file
, 1, 0, 0);
4141 scm_new_procedure ("tmfs-load-ressource-properties", (FN
) tmg_tmfs_load_ressource_properties
, 1, 0, 0);
4142 scm_new_procedure ("tmfs-create-user", (FN
) tmg_tmfs_create_user
, 1, 0, 0);
4143 scm_new_procedure ("tmfs-search-user", (FN
) tmg_tmfs_search_user
, 1, 0, 0);
4144 scm_new_procedure ("tmfs-set-user", (FN
) tmg_tmfs_set_user
, 1, 0, 0);
4145 scm_new_procedure ("tmfs-get-user", (FN
) tmg_tmfs_get_user
, 0, 0, 0);
4146 scm_new_procedure ("tmfs-allows?", (FN
) tmg_tmfs_allowsP
, 2, 0, 0);
4147 scm_new_procedure ("tmfs-set-attributes", (FN
) tmg_tmfs_set_attributes
, 2, 0, 0);
4148 scm_new_procedure ("tmfs-get-attributes", (FN
) tmg_tmfs_get_attributes
, 1, 0, 0);
4149 scm_new_procedure ("tmfs-add-attributes", (FN
) tmg_tmfs_add_attributes
, 2, 0, 0);
4150 scm_new_procedure ("tmfs-remove-attributes", (FN
) tmg_tmfs_remove_attributes
, 2, 0, 0);
4151 scm_new_procedure ("tmfs-change-attributes", (FN
) tmg_tmfs_change_attributes
, 2, 0, 0);
4152 scm_new_procedure ("tmfs-query", (FN
) tmg_tmfs_query
, 1, 0, 0);
4153 scm_new_procedure ("solutions->collection", (FN
) tmg_solutions_2collection
, 2, 0, 0);
4154 scm_new_procedure ("tmfs-create-file", (FN
) tmg_tmfs_create_file
, 2, 0, 0);
4155 scm_new_procedure ("tmfs-create-file-in", (FN
) tmg_tmfs_create_file_in
, 3, 0, 0);
4156 scm_new_procedure ("tmfs-search-file", (FN
) tmg_tmfs_search_file
, 1, 0, 0);
4157 scm_new_procedure ("tmfs-save-file", (FN
) tmg_tmfs_save_file
, 2, 0, 0);
4158 scm_new_procedure ("tmfs-load-file", (FN
) tmg_tmfs_load_file
, 1, 0, 0);
4159 scm_new_procedure ("tmfs-create-project", (FN
) tmg_tmfs_create_project
, 1, 0, 0);
4160 scm_new_procedure ("tmfs-search-project", (FN
) tmg_tmfs_search_project
, 1, 0, 0);
4161 scm_new_procedure ("tmfs-get-file-projects", (FN
) tmg_tmfs_get_file_projects
, 1, 0, 0);
4162 scm_new_procedure ("tmfs-get-project-files", (FN
) tmg_tmfs_get_project_files
, 1, 0, 0);
4163 scm_new_procedure ("tmfs-create-branch", (FN
) tmg_tmfs_create_branch
, 2, 0, 0);
4164 scm_new_procedure ("tmfs-set-root", (FN
) tmg_tmfs_set_root
, 2, 0, 0);
4165 scm_new_procedure ("tmfs-get-root", (FN
) tmg_tmfs_get_root
, 1, 0, 0);
4166 scm_new_procedure ("tmfs-import", (FN
) tmg_tmfs_import
, 1, 0, 0);
4167 scm_new_procedure ("tmfs-export", (FN
) tmg_tmfs_export
, 1, 0, 0);
4168 scm_new_procedure ("server-start", (FN
) tmg_server_start
, 0, 0, 0);
4169 scm_new_procedure ("server-stop", (FN
) tmg_server_stop
, 0, 0, 0);
4170 scm_new_procedure ("server-read", (FN
) tmg_server_read
, 1, 0, 0);
4171 scm_new_procedure ("server-write", (FN
) tmg_server_write
, 2, 0, 0);
4172 scm_new_procedure ("client-start", (FN
) tmg_client_start
, 1, 0, 0);
4173 scm_new_procedure ("client-stop", (FN
) tmg_client_stop
, 0, 0, 0);
4174 scm_new_procedure ("client-read", (FN
) tmg_client_read
, 0, 0, 0);
4175 scm_new_procedure ("client-write", (FN
) tmg_client_write
, 1, 0, 0);
4176 scm_new_procedure ("enter-secure-mode", (FN
) tmg_enter_secure_mode
, 0, 0, 0);
4177 scm_new_procedure ("connection-start", (FN
) tmg_connection_start
, 2, 0, 0);
4178 scm_new_procedure ("connection-status", (FN
) tmg_connection_status
, 2, 0, 0);
4179 scm_new_procedure ("connection-write-string", (FN
) tmg_connection_write_string
, 3, 0, 0);
4180 scm_new_procedure ("connection-write", (FN
) tmg_connection_write
, 3, 0, 0);
4181 scm_new_procedure ("connection-cmd", (FN
) tmg_connection_cmd
, 3, 0, 0);
4182 scm_new_procedure ("connection-eval", (FN
) tmg_connection_eval
, 3, 0, 0);
4183 scm_new_procedure ("connection-interrupt", (FN
) tmg_connection_interrupt
, 2, 0, 0);
4184 scm_new_procedure ("connection-stop", (FN
) tmg_connection_stop
, 2, 0, 0);
4185 scm_new_procedure ("widget-hmenu", (FN
) tmg_widget_hmenu
, 1, 0, 0);
4186 scm_new_procedure ("widget-vmenu", (FN
) tmg_widget_vmenu
, 1, 0, 0);
4187 scm_new_procedure ("widget-tmenu", (FN
) tmg_widget_tmenu
, 2, 0, 0);
4188 scm_new_procedure ("widget-separator", (FN
) tmg_widget_separator
, 1, 0, 0);
4189 scm_new_procedure ("widget-menu-group", (FN
) tmg_widget_menu_group
, 2, 0, 0);
4190 scm_new_procedure ("widget-pulldown-button", (FN
) tmg_widget_pulldown_button
, 2, 0, 0);
4191 scm_new_procedure ("widget-pullright-button", (FN
) tmg_widget_pullright_button
, 2, 0, 0);
4192 scm_new_procedure ("widget-menu-button", (FN
) tmg_widget_menu_button
, 5, 0, 0);
4193 scm_new_procedure ("widget-balloon", (FN
) tmg_widget_balloon
, 2, 0, 0);
4194 scm_new_procedure ("widget-empty", (FN
) tmg_widget_empty
, 0, 0, 0);
4195 scm_new_procedure ("widget-text", (FN
) tmg_widget_text
, 4, 0, 0);
4196 scm_new_procedure ("widget-xpm", (FN
) tmg_widget_xpm
, 1, 0, 0);
4197 scm_new_procedure ("widget-box", (FN
) tmg_widget_box
, 5, 0, 0);
4198 scm_new_procedure ("object->promise-widget", (FN
) tmg_object_2promise_widget
, 1, 0, 0);
4199 scm_new_procedure ("bib-add-period", (FN
) tmg_bib_add_period
, 1, 0, 0);
4200 scm_new_procedure ("bib-upcase-first", (FN
) tmg_bib_upcase_first
, 1, 0, 0);
4201 scm_new_procedure ("bib-locase", (FN
) tmg_bib_locase
, 1, 0, 0);
4202 scm_new_procedure ("bib-upcase", (FN
) tmg_bib_upcase
, 1, 0, 0);
4203 scm_new_procedure ("bib-default", (FN
) tmg_bib_default
, 1, 0, 0);
4204 scm_new_procedure ("bib-purify", (FN
) tmg_bib_purify
, 1, 0, 0);
4205 scm_new_procedure ("bib-text-length", (FN
) tmg_bib_text_length
, 1, 0, 0);
4206 scm_new_procedure ("bib-prefix", (FN
) tmg_bib_prefix
, 2, 0, 0);
4207 scm_new_procedure ("bib-empty?", (FN
) tmg_bib_emptyP
, 2, 0, 0);
4208 scm_new_procedure ("bib-field", (FN
) tmg_bib_field
, 2, 0, 0);
4209 scm_new_procedure ("bib-abbreviate", (FN
) tmg_bib_abbreviate
, 3, 0, 0);