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_image_2psdoc (SCM arg1
) {
476 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "image->psdoc");
478 url in1
= scm_to_url (arg1
);
481 string out
= image_to_psdoc (in1
);
484 return string_to_scm (out
);
488 tmg_tree_2stree (SCM arg1
) {
489 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree->stree");
491 tree in1
= scm_to_tree (arg1
);
494 scheme_tree out
= tree_to_scheme_tree (in1
);
497 return scheme_tree_to_scm (out
);
501 tmg_stree_2tree (SCM arg1
) {
502 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "stree->tree");
504 scheme_tree in1
= scm_to_scheme_tree (arg1
);
507 tree out
= scheme_tree_to_tree (in1
);
510 return tree_to_scm (out
);
514 tmg_tree_2string (SCM arg1
) {
515 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree->string");
517 tree in1
= scm_to_tree (arg1
);
520 string out
= coerce_tree_string (in1
);
523 return string_to_scm (out
);
527 tmg_string_2tree (SCM arg1
) {
528 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string->tree");
530 string in1
= scm_to_string (arg1
);
533 tree out
= coerce_string_tree (in1
);
536 return tree_to_scm (out
);
540 tmg_tm_2tree (SCM arg1
) {
541 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "tm->tree");
543 content in1
= scm_to_content (arg1
);
546 tree out
= tree (in1
);
549 return tree_to_scm (out
);
553 tmg_tree_atomicP (SCM arg1
) {
554 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-atomic?");
556 tree in1
= scm_to_tree (arg1
);
559 bool out
= is_atomic (in1
);
562 return bool_to_scm (out
);
566 tmg_tree_compoundP (SCM arg1
) {
567 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-compound?");
569 tree in1
= scm_to_tree (arg1
);
572 bool out
= is_compound (in1
);
575 return bool_to_scm (out
);
579 tmg_tree_label (SCM arg1
) {
580 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-label");
582 tree in1
= scm_to_tree (arg1
);
585 tree_label out
= L (in1
);
588 return tree_label_to_scm (out
);
592 tmg_tree_children (SCM arg1
) {
593 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-children");
595 tree in1
= scm_to_tree (arg1
);
598 array_tree out
= A (in1
);
601 return array_tree_to_scm (out
);
605 tmg_tree_arity (SCM arg1
) {
606 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-arity");
608 tree in1
= scm_to_tree (arg1
);
614 return int_to_scm (out
);
618 tmg_tree_child_ref (SCM arg1
, SCM arg2
) {
619 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-child-ref");
620 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "tree-child-ref");
622 tree in1
= scm_to_tree (arg1
);
623 int in2
= scm_to_int (arg2
);
626 tree out
= tree_ref (in1
, in2
);
629 return tree_to_scm (out
);
633 tmg_tree_child_setS (SCM arg1
, SCM arg2
, SCM arg3
) {
634 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-child-set!");
635 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "tree-child-set!");
636 SCM_ASSERT_CONTENT (arg3
, SCM_ARG3
, "tree-child-set!");
638 tree in1
= scm_to_tree (arg1
);
639 int in2
= scm_to_int (arg2
);
640 content in3
= scm_to_content (arg3
);
643 tree out
= tree_set (in1
, in2
, in3
);
646 return tree_to_scm (out
);
650 tmg_tree_child_insert (SCM arg1
, SCM arg2
, SCM arg3
) {
651 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "tree-child-insert");
652 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "tree-child-insert");
653 SCM_ASSERT_CONTENT (arg3
, SCM_ARG3
, "tree-child-insert");
655 content in1
= scm_to_content (arg1
);
656 int in2
= scm_to_int (arg2
);
657 content in3
= scm_to_content (arg3
);
660 tree out
= tree_child_insert (in1
, in2
, in3
);
663 return tree_to_scm (out
);
667 tmg_tree_ip (SCM arg1
) {
668 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-ip");
670 tree in1
= scm_to_tree (arg1
);
673 path out
= obtain_ip (in1
);
676 return path_to_scm (out
);
680 tmg_tree_activeP (SCM arg1
) {
681 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-active?");
683 tree in1
= scm_to_tree (arg1
);
686 bool out
= tree_active (in1
);
689 return bool_to_scm (out
);
693 tmg_tree_eqP (SCM arg1
, SCM arg2
) {
694 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-eq?");
695 SCM_ASSERT_TREE (arg2
, SCM_ARG2
, "tree-eq?");
697 tree in1
= scm_to_tree (arg1
);
698 tree in2
= scm_to_tree (arg2
);
701 bool out
= strong_equal (in1
, in2
);
704 return bool_to_scm (out
);
708 tmg_subtree (SCM arg1
, SCM arg2
) {
709 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "subtree");
710 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "subtree");
712 tree in1
= scm_to_tree (arg1
);
713 path in2
= scm_to_path (arg2
);
716 tree out
= subtree (in1
, in2
);
719 return tree_to_scm (out
);
723 tmg_tree_range (SCM arg1
, SCM arg2
, SCM arg3
) {
724 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-range");
725 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "tree-range");
726 SCM_ASSERT_INT (arg3
, SCM_ARG3
, "tree-range");
728 tree in1
= scm_to_tree (arg1
);
729 int in2
= scm_to_int (arg2
);
730 int in3
= scm_to_int (arg3
);
733 tree out
= tree_range (in1
, in2
, in3
);
736 return tree_to_scm (out
);
740 tmg_tree_copy (SCM arg1
) {
741 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-copy");
743 tree in1
= scm_to_tree (arg1
);
746 tree out
= copy (in1
);
749 return tree_to_scm (out
);
753 tmg_tree_append (SCM arg1
, SCM arg2
) {
754 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-append");
755 SCM_ASSERT_TREE (arg2
, SCM_ARG2
, "tree-append");
757 tree in1
= scm_to_tree (arg1
);
758 tree in2
= scm_to_tree (arg2
);
761 tree out
= tree_append (in1
, in2
);
764 return tree_to_scm (out
);
768 tmg_tree_right_index (SCM arg1
) {
769 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-right-index");
771 tree in1
= scm_to_tree (arg1
);
774 int out
= right_index (in1
);
777 return int_to_scm (out
);
781 tmg_tree_label_extensionP (SCM arg1
) {
782 SCM_ASSERT_TREE_LABEL (arg1
, SCM_ARG1
, "tree-label-extension?");
784 tree_label in1
= scm_to_tree_label (arg1
);
787 bool out
= is_extension (in1
);
790 return bool_to_scm (out
);
794 tmg_tree_multi_paragraphP (SCM arg1
) {
795 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-multi-paragraph?");
797 tree in1
= scm_to_tree (arg1
);
800 bool out
= is_multi_paragraph (in1
);
803 return bool_to_scm (out
);
807 tmg_tree_simplify (SCM arg1
) {
808 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-simplify");
810 tree in1
= scm_to_tree (arg1
);
813 tree out
= simplify_correct (in1
);
816 return tree_to_scm (out
);
820 tmg_tree_accessible_childP (SCM arg1
, SCM arg2
) {
821 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-accessible-child?");
822 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "tree-accessible-child?");
824 tree in1
= scm_to_tree (arg1
);
825 int in2
= scm_to_int (arg2
);
828 bool out
= is_accessible_child (in1
, in2
);
831 return bool_to_scm (out
);
835 tmg_tree_accessible_children (SCM arg1
) {
836 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-accessible-children");
838 tree in1
= scm_to_tree (arg1
);
841 array_tree out
= accessible_children (in1
);
844 return array_tree_to_scm (out
);
848 tmg_tree_load_inclusion (SCM arg1
) {
849 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "tree-load-inclusion");
851 url in1
= scm_to_url (arg1
);
854 tree out
= load_inclusion (in1
);
857 return tree_to_scm (out
);
861 tmg_tree_as_string (SCM arg1
) {
862 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-as-string");
864 tree in1
= scm_to_tree (arg1
);
867 string out
= var_as_string (in1
);
870 return string_to_scm (out
);
874 tmg_tree_extents (SCM arg1
) {
875 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "tree-extents");
877 content in1
= scm_to_content (arg1
);
880 tree out
= tree_extents (in1
);
883 return tree_to_scm (out
);
887 tmg_tree_emptyP (SCM arg1
) {
888 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "tree-empty?");
890 content in1
= scm_to_content (arg1
);
893 bool out
= is_empty (in1
);
896 return bool_to_scm (out
);
900 tmg_tree_assign (SCM arg1
, SCM arg2
) {
901 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-assign");
902 SCM_ASSERT_CONTENT (arg2
, SCM_ARG2
, "tree-assign");
904 tree in1
= scm_to_tree (arg1
);
905 content in2
= scm_to_content (arg2
);
908 tree out
= tree_assign (in1
, in2
);
911 return tree_to_scm (out
);
915 tmg_tree_var_insert (SCM arg1
, SCM arg2
, SCM arg3
) {
916 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-var-insert");
917 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "tree-var-insert");
918 SCM_ASSERT_CONTENT (arg3
, SCM_ARG3
, "tree-var-insert");
920 tree in1
= scm_to_tree (arg1
);
921 int in2
= scm_to_int (arg2
);
922 content in3
= scm_to_content (arg3
);
925 tree out
= tree_insert (in1
, in2
, in3
);
928 return tree_to_scm (out
);
932 tmg_tree_remove (SCM arg1
, SCM arg2
, SCM arg3
) {
933 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-remove");
934 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "tree-remove");
935 SCM_ASSERT_INT (arg3
, SCM_ARG3
, "tree-remove");
937 tree in1
= scm_to_tree (arg1
);
938 int in2
= scm_to_int (arg2
);
939 int in3
= scm_to_int (arg3
);
942 tree out
= tree_remove (in1
, in2
, in3
);
945 return tree_to_scm (out
);
949 tmg_tree_split (SCM arg1
, SCM arg2
, SCM arg3
) {
950 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-split");
951 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "tree-split");
952 SCM_ASSERT_INT (arg3
, SCM_ARG3
, "tree-split");
954 tree in1
= scm_to_tree (arg1
);
955 int in2
= scm_to_int (arg2
);
956 int in3
= scm_to_int (arg3
);
959 tree out
= tree_split (in1
, in2
, in3
);
962 return tree_to_scm (out
);
966 tmg_tree_join (SCM arg1
, SCM arg2
) {
967 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-join");
968 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "tree-join");
970 tree in1
= scm_to_tree (arg1
);
971 int in2
= scm_to_int (arg2
);
974 tree out
= tree_join (in1
, in2
);
977 return tree_to_scm (out
);
981 tmg_tree_assign_node (SCM arg1
, SCM arg2
) {
982 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-assign-node");
983 SCM_ASSERT_TREE_LABEL (arg2
, SCM_ARG2
, "tree-assign-node");
985 tree in1
= scm_to_tree (arg1
);
986 tree_label in2
= scm_to_tree_label (arg2
);
989 tree out
= tree_assign_node (in1
, in2
);
992 return tree_to_scm (out
);
996 tmg_tree_insert_node (SCM arg1
, SCM arg2
, SCM arg3
) {
997 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-insert-node");
998 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "tree-insert-node");
999 SCM_ASSERT_CONTENT (arg3
, SCM_ARG3
, "tree-insert-node");
1001 tree in1
= scm_to_tree (arg1
);
1002 int in2
= scm_to_int (arg2
);
1003 content in3
= scm_to_content (arg3
);
1006 tree out
= tree_insert_node (in1
, in2
, in3
);
1009 return tree_to_scm (out
);
1013 tmg_tree_remove_node (SCM arg1
, SCM arg2
) {
1014 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree-remove-node");
1015 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "tree-remove-node");
1017 tree in1
= scm_to_tree (arg1
);
1018 int in2
= scm_to_int (arg2
);
1021 tree out
= tree_remove_node (in1
, in2
);
1024 return tree_to_scm (out
);
1028 tmg_path_infP (SCM arg1
, SCM arg2
) {
1029 SCM_ASSERT_PATH (arg1
, SCM_ARG1
, "path-inf?");
1030 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-inf?");
1032 path in1
= scm_to_path (arg1
);
1033 path in2
= scm_to_path (arg2
);
1036 bool out
= path_inf (in1
, in2
);
1039 return bool_to_scm (out
);
1043 tmg_path_inf_eqP (SCM arg1
, SCM arg2
) {
1044 SCM_ASSERT_PATH (arg1
, SCM_ARG1
, "path-inf-eq?");
1045 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-inf-eq?");
1047 path in1
= scm_to_path (arg1
);
1048 path in2
= scm_to_path (arg2
);
1051 bool out
= path_inf_eq (in1
, in2
);
1054 return bool_to_scm (out
);
1058 tmg_path_lessP (SCM arg1
, SCM arg2
) {
1059 SCM_ASSERT_PATH (arg1
, SCM_ARG1
, "path-less?");
1060 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-less?");
1062 path in1
= scm_to_path (arg1
);
1063 path in2
= scm_to_path (arg2
);
1066 bool out
= path_less (in1
, in2
);
1069 return bool_to_scm (out
);
1073 tmg_path_less_eqP (SCM arg1
, SCM arg2
) {
1074 SCM_ASSERT_PATH (arg1
, SCM_ARG1
, "path-less-eq?");
1075 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-less-eq?");
1077 path in1
= scm_to_path (arg1
);
1078 path in2
= scm_to_path (arg2
);
1081 bool out
= path_less_eq (in1
, in2
);
1084 return bool_to_scm (out
);
1088 tmg_path_start (SCM arg1
, SCM arg2
) {
1089 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-start");
1090 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-start");
1092 content in1
= scm_to_content (arg1
);
1093 path in2
= scm_to_path (arg2
);
1096 path out
= start (in1
, in2
);
1099 return path_to_scm (out
);
1103 tmg_path_end (SCM arg1
, SCM arg2
) {
1104 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-end");
1105 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-end");
1107 content in1
= scm_to_content (arg1
);
1108 path in2
= scm_to_path (arg2
);
1111 path out
= end (in1
, in2
);
1114 return path_to_scm (out
);
1118 tmg_path_next (SCM arg1
, SCM arg2
) {
1119 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-next");
1120 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-next");
1122 content in1
= scm_to_content (arg1
);
1123 path in2
= scm_to_path (arg2
);
1126 path out
= next_valid (in1
, in2
);
1129 return path_to_scm (out
);
1133 tmg_path_previous (SCM arg1
, SCM arg2
) {
1134 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-previous");
1135 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-previous");
1137 content in1
= scm_to_content (arg1
);
1138 path in2
= scm_to_path (arg2
);
1141 path out
= previous_valid (in1
, in2
);
1144 return path_to_scm (out
);
1148 tmg_path_next_word (SCM arg1
, SCM arg2
) {
1149 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-next-word");
1150 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-next-word");
1152 content in1
= scm_to_content (arg1
);
1153 path in2
= scm_to_path (arg2
);
1156 path out
= next_word (in1
, in2
);
1159 return path_to_scm (out
);
1163 tmg_path_previous_word (SCM arg1
, SCM arg2
) {
1164 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-previous-word");
1165 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-previous-word");
1167 content in1
= scm_to_content (arg1
);
1168 path in2
= scm_to_path (arg2
);
1171 path out
= previous_word (in1
, in2
);
1174 return path_to_scm (out
);
1178 tmg_path_next_node (SCM arg1
, SCM arg2
) {
1179 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-next-node");
1180 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-next-node");
1182 content in1
= scm_to_content (arg1
);
1183 path in2
= scm_to_path (arg2
);
1186 path out
= next_node (in1
, in2
);
1189 return path_to_scm (out
);
1193 tmg_path_previous_node (SCM arg1
, SCM arg2
) {
1194 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-previous-node");
1195 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-previous-node");
1197 content in1
= scm_to_content (arg1
);
1198 path in2
= scm_to_path (arg2
);
1201 path out
= previous_node (in1
, in2
);
1204 return path_to_scm (out
);
1208 tmg_path_next_tag (SCM arg1
, SCM arg2
, SCM arg3
) {
1209 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-next-tag");
1210 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-next-tag");
1211 SCM_ASSERT_SCHEME_TREE (arg3
, SCM_ARG3
, "path-next-tag");
1213 content in1
= scm_to_content (arg1
);
1214 path in2
= scm_to_path (arg2
);
1215 scheme_tree in3
= scm_to_scheme_tree (arg3
);
1218 path out
= next_tag (in1
, in2
, in3
);
1221 return path_to_scm (out
);
1225 tmg_path_previous_tag (SCM arg1
, SCM arg2
, SCM arg3
) {
1226 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-previous-tag");
1227 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-previous-tag");
1228 SCM_ASSERT_SCHEME_TREE (arg3
, SCM_ARG3
, "path-previous-tag");
1230 content in1
= scm_to_content (arg1
);
1231 path in2
= scm_to_path (arg2
);
1232 scheme_tree in3
= scm_to_scheme_tree (arg3
);
1235 path out
= previous_tag (in1
, in2
, in3
);
1238 return path_to_scm (out
);
1242 tmg_path_next_tag_same_argument (SCM arg1
, SCM arg2
, SCM arg3
) {
1243 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-next-tag-same-argument");
1244 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-next-tag-same-argument");
1245 SCM_ASSERT_SCHEME_TREE (arg3
, SCM_ARG3
, "path-next-tag-same-argument");
1247 content in1
= scm_to_content (arg1
);
1248 path in2
= scm_to_path (arg2
);
1249 scheme_tree in3
= scm_to_scheme_tree (arg3
);
1252 path out
= next_tag_same_argument (in1
, in2
, in3
);
1255 return path_to_scm (out
);
1259 tmg_path_previous_tag_same_argument (SCM arg1
, SCM arg2
, SCM arg3
) {
1260 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-previous-tag-same-argument");
1261 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-previous-tag-same-argument");
1262 SCM_ASSERT_SCHEME_TREE (arg3
, SCM_ARG3
, "path-previous-tag-same-argument");
1264 content in1
= scm_to_content (arg1
);
1265 path in2
= scm_to_path (arg2
);
1266 scheme_tree in3
= scm_to_scheme_tree (arg3
);
1269 path out
= previous_tag_same_argument (in1
, in2
, in3
);
1272 return path_to_scm (out
);
1276 tmg_path_next_argument (SCM arg1
, SCM arg2
) {
1277 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-next-argument");
1278 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-next-argument");
1280 content in1
= scm_to_content (arg1
);
1281 path in2
= scm_to_path (arg2
);
1284 path out
= next_argument (in1
, in2
);
1287 return path_to_scm (out
);
1291 tmg_path_previous_argument (SCM arg1
, SCM arg2
) {
1292 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "path-previous-argument");
1293 SCM_ASSERT_PATH (arg2
, SCM_ARG2
, "path-previous-argument");
1295 content in1
= scm_to_content (arg1
);
1296 path in2
= scm_to_path (arg2
);
1299 path out
= previous_argument (in1
, in2
);
1302 return path_to_scm (out
);
1306 tmg_tree_2ids (SCM arg1
) {
1307 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree->ids");
1309 tree in1
= scm_to_tree (arg1
);
1312 list_string out
= get_ids (in1
);
1315 return list_string_to_scm (out
);
1319 tmg_id_2trees (SCM arg1
) {
1320 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "id->trees");
1322 string in1
= scm_to_string (arg1
);
1325 list_tree out
= get_trees (in1
);
1328 return list_tree_to_scm (out
);
1332 tmg_vertex_2links (SCM arg1
) {
1333 SCM_ASSERT_CONTENT (arg1
, SCM_ARG1
, "vertex->links");
1335 content in1
= scm_to_content (arg1
);
1338 list_tree out
= get_links (in1
);
1341 return list_tree_to_scm (out
);
1345 tmg_tree_2tree_pointer (SCM arg1
) {
1346 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "tree->tree-pointer");
1348 tree in1
= scm_to_tree (arg1
);
1351 observer out
= tree_pointer_new (in1
);
1354 return observer_to_scm (out
);
1358 tmg_tree_pointer_detach (SCM arg1
) {
1359 SCM_ASSERT_OBSERVER (arg1
, SCM_ARG1
, "tree-pointer-detach");
1361 observer in1
= scm_to_observer (arg1
);
1364 tree_pointer_delete (in1
);
1367 return SCM_UNSPECIFIED
;
1371 tmg_tree_pointer_2tree (SCM arg1
) {
1372 SCM_ASSERT_OBSERVER (arg1
, SCM_ARG1
, "tree-pointer->tree");
1374 observer in1
= scm_to_observer (arg1
);
1377 tree out
= obtain_tree (in1
);
1380 return tree_to_scm (out
);
1384 tmg_current_link_types () {
1386 list_string out
= all_link_types ();
1389 return list_string_to_scm (out
);
1393 tmg_get_locus_rendering (SCM arg1
) {
1394 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "get-locus-rendering");
1396 string in1
= scm_to_string (arg1
);
1399 string out
= get_locus_rendering (in1
);
1402 return string_to_scm (out
);
1406 tmg_set_locus_rendering (SCM arg1
, SCM arg2
) {
1407 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "set-locus-rendering");
1408 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "set-locus-rendering");
1410 string in1
= scm_to_string (arg1
);
1411 string in2
= scm_to_string (arg2
);
1414 set_locus_rendering (in1
, in2
);
1417 return SCM_UNSPECIFIED
;
1421 tmg_declare_visited (SCM arg1
) {
1422 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "declare-visited");
1424 string in1
= scm_to_string (arg1
);
1427 declare_visited (in1
);
1430 return SCM_UNSPECIFIED
;
1434 tmg_has_been_visitedP (SCM arg1
) {
1435 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "has-been-visited?");
1437 string in1
= scm_to_string (arg1
);
1440 bool out
= has_been_visited (in1
);
1443 return bool_to_scm (out
);
1447 tmg_string_numberP (SCM arg1
) {
1448 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string-number?");
1450 string in1
= scm_to_string (arg1
);
1453 bool out
= is_double (in1
);
1456 return bool_to_scm (out
);
1460 tmg_string_search_forwards (SCM arg1
, SCM arg2
, SCM arg3
) {
1461 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string-search-forwards");
1462 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "string-search-forwards");
1463 SCM_ASSERT_STRING (arg3
, SCM_ARG3
, "string-search-forwards");
1465 string in1
= scm_to_string (arg1
);
1466 int in2
= scm_to_int (arg2
);
1467 string in3
= scm_to_string (arg3
);
1470 int out
= search_forwards (in1
, in2
, in3
);
1473 return int_to_scm (out
);
1477 tmg_string_search_backwards (SCM arg1
, SCM arg2
, SCM arg3
) {
1478 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string-search-backwards");
1479 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "string-search-backwards");
1480 SCM_ASSERT_STRING (arg3
, SCM_ARG3
, "string-search-backwards");
1482 string in1
= scm_to_string (arg1
);
1483 int in2
= scm_to_int (arg2
);
1484 string in3
= scm_to_string (arg3
);
1487 int out
= search_backwards (in1
, in2
, in3
);
1490 return int_to_scm (out
);
1494 tmg_string_replace (SCM arg1
, SCM arg2
, SCM arg3
) {
1495 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string-replace");
1496 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "string-replace");
1497 SCM_ASSERT_STRING (arg3
, SCM_ARG3
, "string-replace");
1499 string in1
= scm_to_string (arg1
);
1500 string in2
= scm_to_string (arg2
);
1501 string in3
= scm_to_string (arg3
);
1504 string out
= replace (in1
, in2
, in3
);
1507 return string_to_scm (out
);
1511 tmg_string_locase_alphaP (SCM arg1
) {
1512 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string-locase-alpha?");
1514 string in1
= scm_to_string (arg1
);
1517 bool out
= is_locase_alpha (in1
);
1520 return bool_to_scm (out
);
1524 tmg_upcase_first (SCM arg1
) {
1525 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "upcase-first");
1527 string in1
= scm_to_string (arg1
);
1530 string out
= upcase_first (in1
);
1533 return string_to_scm (out
);
1537 tmg_locase_first (SCM arg1
) {
1538 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "locase-first");
1540 string in1
= scm_to_string (arg1
);
1543 string out
= locase_first (in1
);
1546 return string_to_scm (out
);
1550 tmg_upcase_all (SCM arg1
) {
1551 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "upcase-all");
1553 string in1
= scm_to_string (arg1
);
1556 string out
= upcase_all (in1
);
1559 return string_to_scm (out
);
1563 tmg_locase_all (SCM arg1
) {
1564 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "locase-all");
1566 string in1
= scm_to_string (arg1
);
1569 string out
= locase_all (in1
);
1572 return string_to_scm (out
);
1576 tmg_string_union (SCM arg1
, SCM arg2
) {
1577 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string-union");
1578 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "string-union");
1580 string in1
= scm_to_string (arg1
);
1581 string in2
= scm_to_string (arg2
);
1584 string out
= string_union (in1
, in2
);
1587 return string_to_scm (out
);
1591 tmg_string_minus (SCM arg1
, SCM arg2
) {
1592 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string-minus");
1593 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "string-minus");
1595 string in1
= scm_to_string (arg1
);
1596 string in2
= scm_to_string (arg2
);
1599 string out
= string_minus (in1
, in2
);
1602 return string_to_scm (out
);
1606 tmg_string_encode (SCM arg1
) {
1607 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string-encode");
1609 string in1
= scm_to_string (arg1
);
1612 string out
= tm_encode (in1
);
1615 return string_to_scm (out
);
1619 tmg_string_decode (SCM arg1
) {
1620 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string-decode");
1622 string in1
= scm_to_string (arg1
);
1625 string out
= tm_decode (in1
);
1628 return string_to_scm (out
);
1632 tmg_escape_generic (SCM arg1
) {
1633 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "escape-generic");
1635 string in1
= scm_to_string (arg1
);
1638 string out
= escape_generic (in1
);
1641 return string_to_scm (out
);
1645 tmg_escape_verbatim (SCM arg1
) {
1646 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "escape-verbatim");
1648 string in1
= scm_to_string (arg1
);
1651 string out
= escape_verbatim (in1
);
1654 return string_to_scm (out
);
1658 tmg_escape_shell (SCM arg1
) {
1659 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "escape-shell");
1661 string in1
= scm_to_string (arg1
);
1664 string out
= escape_sh (in1
);
1667 return string_to_scm (out
);
1671 tmg_string_convert (SCM arg1
, SCM arg2
, SCM arg3
) {
1672 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string-convert");
1673 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "string-convert");
1674 SCM_ASSERT_STRING (arg3
, SCM_ARG3
, "string-convert");
1676 string in1
= scm_to_string (arg1
);
1677 string in2
= scm_to_string (arg2
);
1678 string in3
= scm_to_string (arg3
);
1681 string out
= convert (in1
, in2
, in3
);
1684 return string_to_scm (out
);
1688 tmg_utf8_2cork (SCM arg1
) {
1689 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "utf8->cork");
1691 string in1
= scm_to_string (arg1
);
1694 string out
= utf8_to_cork (in1
);
1697 return string_to_scm (out
);
1701 tmg_cork_2utf8 (SCM arg1
) {
1702 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "cork->utf8");
1704 string in1
= scm_to_string (arg1
);
1707 string out
= cork_to_utf8 (in1
);
1710 return string_to_scm (out
);
1714 tmg_utf8_2html (SCM arg1
) {
1715 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "utf8->html");
1717 string in1
= scm_to_string (arg1
);
1720 string out
= utf8_to_html (in1
);
1723 return string_to_scm (out
);
1727 tmg_tm_2xml_name (SCM arg1
) {
1728 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tm->xml-name");
1730 string in1
= scm_to_string (arg1
);
1733 string out
= tm_to_xml_name (in1
);
1736 return string_to_scm (out
);
1740 tmg_old_tm_2xml_cdata (SCM arg1
) {
1741 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "old-tm->xml-cdata");
1743 string in1
= scm_to_string (arg1
);
1746 string out
= old_tm_to_xml_cdata (in1
);
1749 return string_to_scm (out
);
1753 tmg_tm_2xml_cdata (SCM arg1
) {
1754 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tm->xml-cdata");
1756 string in1
= scm_to_string (arg1
);
1759 object out
= tm_to_xml_cdata (in1
);
1762 return object_to_scm (out
);
1766 tmg_xml_name_2tm (SCM arg1
) {
1767 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "xml-name->tm");
1769 string in1
= scm_to_string (arg1
);
1772 string out
= xml_name_to_tm (in1
);
1775 return string_to_scm (out
);
1779 tmg_old_xml_cdata_2tm (SCM arg1
) {
1780 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "old-xml-cdata->tm");
1782 string in1
= scm_to_string (arg1
);
1785 string out
= old_xml_cdata_to_tm (in1
);
1788 return string_to_scm (out
);
1792 tmg_xml_unspace (SCM arg1
, SCM arg2
, SCM arg3
) {
1793 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "xml-unspace");
1794 SCM_ASSERT_BOOL (arg2
, SCM_ARG2
, "xml-unspace");
1795 SCM_ASSERT_BOOL (arg3
, SCM_ARG3
, "xml-unspace");
1797 string in1
= scm_to_string (arg1
);
1798 bool in2
= scm_to_bool (arg2
);
1799 bool in3
= scm_to_bool (arg3
);
1802 string out
= xml_unspace (in1
, in2
, in3
);
1805 return string_to_scm (out
);
1809 tmg_define_grammar_rule (SCM arg1
, SCM arg2
) {
1810 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "define-grammar-rule");
1811 SCM_ASSERT_TREE (arg2
, SCM_ARG2
, "define-grammar-rule");
1813 tree in1
= scm_to_tree (arg1
);
1814 tree in2
= scm_to_tree (arg2
);
1817 define_grammar_rule (in1
, in2
);
1820 return SCM_UNSPECIFIED
;
1824 tmg_grammar_parse (SCM arg1
, SCM arg2
) {
1825 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "grammar-parse");
1826 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "grammar-parse");
1828 tree in1
= scm_to_tree (arg1
);
1829 string in2
= scm_to_string (arg2
);
1832 int out
= grammar_parse (in1
, in2
);
1835 return int_to_scm (out
);
1839 tmg_parse_texmacs (SCM arg1
) {
1840 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "parse-texmacs");
1842 string in1
= scm_to_string (arg1
);
1845 tree out
= texmacs_document_to_tree (in1
);
1848 return tree_to_scm (out
);
1852 tmg_serialize_texmacs (SCM arg1
) {
1853 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "serialize-texmacs");
1855 tree in1
= scm_to_tree (arg1
);
1858 string out
= tree_to_texmacs (in1
);
1861 return string_to_scm (out
);
1865 tmg_parse_texmacs_snippet (SCM arg1
) {
1866 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "parse-texmacs-snippet");
1868 string in1
= scm_to_string (arg1
);
1871 tree out
= texmacs_to_tree (in1
);
1874 return tree_to_scm (out
);
1878 tmg_serialize_texmacs_snippet (SCM arg1
) {
1879 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "serialize-texmacs-snippet");
1881 tree in1
= scm_to_tree (arg1
);
1884 string out
= tree_to_texmacs (in1
);
1887 return string_to_scm (out
);
1891 tmg_texmacs_2stm (SCM arg1
) {
1892 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "texmacs->stm");
1894 tree in1
= scm_to_tree (arg1
);
1897 string out
= tree_to_scheme (in1
);
1900 return string_to_scm (out
);
1904 tmg_stm_2texmacs (SCM arg1
) {
1905 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "stm->texmacs");
1907 string in1
= scm_to_string (arg1
);
1910 tree out
= scheme_document_to_tree (in1
);
1913 return tree_to_scm (out
);
1917 tmg_stm_snippet_2texmacs (SCM arg1
) {
1918 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "stm-snippet->texmacs");
1920 string in1
= scm_to_string (arg1
);
1923 tree out
= scheme_to_tree (in1
);
1926 return tree_to_scm (out
);
1930 tmg_cpp_texmacs_2verbatim (SCM arg1
, SCM arg2
, SCM arg3
) {
1931 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "cpp-texmacs->verbatim");
1932 SCM_ASSERT_BOOL (arg2
, SCM_ARG2
, "cpp-texmacs->verbatim");
1933 SCM_ASSERT_STRING (arg3
, SCM_ARG3
, "cpp-texmacs->verbatim");
1935 tree in1
= scm_to_tree (arg1
);
1936 bool in2
= scm_to_bool (arg2
);
1937 string in3
= scm_to_string (arg3
);
1940 string out
= tree_to_verbatim (in1
, in2
, in3
);
1943 return string_to_scm (out
);
1947 tmg_cpp_verbatim_snippet_2texmacs (SCM arg1
, SCM arg2
, SCM arg3
) {
1948 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "cpp-verbatim-snippet->texmacs");
1949 SCM_ASSERT_BOOL (arg2
, SCM_ARG2
, "cpp-verbatim-snippet->texmacs");
1950 SCM_ASSERT_STRING (arg3
, SCM_ARG3
, "cpp-verbatim-snippet->texmacs");
1952 string in1
= scm_to_string (arg1
);
1953 bool in2
= scm_to_bool (arg2
);
1954 string in3
= scm_to_string (arg3
);
1957 tree out
= verbatim_to_tree (in1
, in2
, in3
);
1960 return tree_to_scm (out
);
1964 tmg_cpp_verbatim_2texmacs (SCM arg1
, SCM arg2
, SCM arg3
) {
1965 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "cpp-verbatim->texmacs");
1966 SCM_ASSERT_BOOL (arg2
, SCM_ARG2
, "cpp-verbatim->texmacs");
1967 SCM_ASSERT_STRING (arg3
, SCM_ARG3
, "cpp-verbatim->texmacs");
1969 string in1
= scm_to_string (arg1
);
1970 bool in2
= scm_to_bool (arg2
);
1971 string in3
= scm_to_string (arg3
);
1974 tree out
= verbatim_document_to_tree (in1
, in2
, in3
);
1977 return tree_to_scm (out
);
1981 tmg_parse_latex (SCM arg1
) {
1982 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "parse-latex");
1984 string in1
= scm_to_string (arg1
);
1987 tree out
= parse_latex (in1
);
1990 return tree_to_scm (out
);
1994 tmg_parse_latex_document (SCM arg1
) {
1995 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "parse-latex-document");
1997 string in1
= scm_to_string (arg1
);
2000 tree out
= parse_latex_document (in1
);
2003 return tree_to_scm (out
);
2007 tmg_latex_2texmacs (SCM arg1
) {
2008 SCM_ASSERT_TREE (arg1
, SCM_ARG1
, "latex->texmacs");
2010 tree in1
= scm_to_tree (arg1
);
2013 tree out
= latex_to_tree (in1
);
2016 return tree_to_scm (out
);
2020 tmg_parse_xml (SCM arg1
) {
2021 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "parse-xml");
2023 string in1
= scm_to_string (arg1
);
2026 scheme_tree out
= parse_xml (in1
);
2029 return scheme_tree_to_scm (out
);
2033 tmg_parse_html (SCM arg1
) {
2034 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "parse-html");
2036 string in1
= scm_to_string (arg1
);
2039 scheme_tree out
= parse_html (in1
);
2042 return scheme_tree_to_scm (out
);
2046 tmg_parse_bib (SCM arg1
) {
2047 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "parse-bib");
2049 string in1
= scm_to_string (arg1
);
2052 tree out
= parse_bib (in1
);
2055 return tree_to_scm (out
);
2059 tmg_upgrade_tmml (SCM arg1
) {
2060 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "upgrade-tmml");
2062 scheme_tree in1
= scm_to_scheme_tree (arg1
);
2065 tree out
= tmml_upgrade (in1
);
2068 return tree_to_scm (out
);
2072 tmg_string_2url (SCM arg1
) {
2073 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string->url");
2075 string in1
= scm_to_string (arg1
);
2081 return url_to_scm (out
);
2085 tmg_url (SCM arg1
, SCM arg2
) {
2086 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "url");
2087 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "url");
2089 string in1
= scm_to_string (arg1
);
2090 string in2
= scm_to_string (arg2
);
2093 url out
= url (in1
, in2
);
2096 return url_to_scm (out
);
2100 tmg_url_system (SCM arg1
) {
2101 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "url-system");
2103 string in1
= scm_to_string (arg1
);
2106 url out
= url_system (in1
);
2109 return url_to_scm (out
);
2115 url out
= url_none ();
2118 return url_to_scm (out
);
2124 url out
= url_wildcard ();
2127 return url_to_scm (out
);
2131 tmg_url_wildcard (SCM arg1
) {
2132 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "url-wildcard");
2134 string in1
= scm_to_string (arg1
);
2137 url out
= url_wildcard (in1
);
2140 return url_to_scm (out
);
2146 url out
= url_parent ();
2149 return url_to_scm (out
);
2153 tmg_url_append (SCM arg1
, SCM arg2
) {
2154 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-append");
2155 SCM_ASSERT_URL (arg2
, SCM_ARG2
, "url-append");
2157 url in1
= scm_to_url (arg1
);
2158 url in2
= scm_to_url (arg2
);
2161 url out
= url_concat (in1
, in2
);
2164 return url_to_scm (out
);
2168 tmg_url_or (SCM arg1
, SCM arg2
) {
2169 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-or");
2170 SCM_ASSERT_URL (arg2
, SCM_ARG2
, "url-or");
2172 url in1
= scm_to_url (arg1
);
2173 url in2
= scm_to_url (arg2
);
2176 url out
= url_or (in1
, in2
);
2179 return url_to_scm (out
);
2183 tmg_url_2string (SCM arg1
) {
2184 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url->string");
2186 url in1
= scm_to_url (arg1
);
2189 string out
= as_string (in1
);
2192 return string_to_scm (out
);
2196 tmg_url_noneP (SCM arg1
) {
2197 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-none?");
2199 url in1
= scm_to_url (arg1
);
2202 bool out
= is_none (in1
);
2205 return bool_to_scm (out
);
2209 tmg_url_rooted_webP (SCM arg1
) {
2210 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-rooted-web?");
2212 url in1
= scm_to_url (arg1
);
2215 bool out
= is_rooted_web (in1
);
2218 return bool_to_scm (out
);
2222 tmg_url_concatP (SCM arg1
) {
2223 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-concat?");
2225 url in1
= scm_to_url (arg1
);
2228 bool out
= is_concat (in1
);
2231 return bool_to_scm (out
);
2235 tmg_url_orP (SCM arg1
) {
2236 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-or?");
2238 url in1
= scm_to_url (arg1
);
2241 bool out
= is_or (in1
);
2244 return bool_to_scm (out
);
2248 tmg_url_ref (SCM arg1
, SCM arg2
) {
2249 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-ref");
2250 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "url-ref");
2252 url in1
= scm_to_url (arg1
);
2253 int in2
= scm_to_int (arg2
);
2256 url out
= url_ref (in1
, in2
);
2259 return url_to_scm (out
);
2263 tmg_url_tail (SCM arg1
) {
2264 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-tail");
2266 url in1
= scm_to_url (arg1
);
2269 url out
= tail (in1
);
2272 return url_to_scm (out
);
2276 tmg_url_suffix (SCM arg1
) {
2277 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-suffix");
2279 url in1
= scm_to_url (arg1
);
2282 string out
= suffix (in1
);
2285 return string_to_scm (out
);
2289 tmg_url_glue (SCM arg1
, SCM arg2
) {
2290 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-glue");
2291 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "url-glue");
2293 url in1
= scm_to_url (arg1
);
2294 string in2
= scm_to_string (arg2
);
2297 url out
= glue (in1
, in2
);
2300 return url_to_scm (out
);
2304 tmg_url_unglue (SCM arg1
, SCM arg2
) {
2305 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-unglue");
2306 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "url-unglue");
2308 url in1
= scm_to_url (arg1
);
2309 int in2
= scm_to_int (arg2
);
2312 url out
= unglue (in1
, in2
);
2315 return url_to_scm (out
);
2319 tmg_url_relative (SCM arg1
, SCM arg2
) {
2320 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-relative");
2321 SCM_ASSERT_URL (arg2
, SCM_ARG2
, "url-relative");
2323 url in1
= scm_to_url (arg1
);
2324 url in2
= scm_to_url (arg2
);
2327 url out
= relative (in1
, in2
);
2330 return url_to_scm (out
);
2334 tmg_url_expand (SCM arg1
) {
2335 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-expand");
2337 url in1
= scm_to_url (arg1
);
2340 url out
= expand (in1
);
2343 return url_to_scm (out
);
2347 tmg_url_factor (SCM arg1
) {
2348 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-factor");
2350 url in1
= scm_to_url (arg1
);
2353 url out
= factor (in1
);
2356 return url_to_scm (out
);
2360 tmg_url_delta (SCM arg1
, SCM arg2
) {
2361 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-delta");
2362 SCM_ASSERT_URL (arg2
, SCM_ARG2
, "url-delta");
2364 url in1
= scm_to_url (arg1
);
2365 url in2
= scm_to_url (arg2
);
2368 url out
= delta (in1
, in2
);
2371 return url_to_scm (out
);
2375 tmg_url_secureP (SCM arg1
) {
2376 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-secure?");
2378 url in1
= scm_to_url (arg1
);
2381 bool out
= is_secure (in1
);
2384 return bool_to_scm (out
);
2388 tmg_url_descendsP (SCM arg1
, SCM arg2
) {
2389 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-descends?");
2390 SCM_ASSERT_URL (arg2
, SCM_ARG2
, "url-descends?");
2392 url in1
= scm_to_url (arg1
);
2393 url in2
= scm_to_url (arg2
);
2396 bool out
= descends (in1
, in2
);
2399 return bool_to_scm (out
);
2403 tmg_url_complete (SCM arg1
, SCM arg2
) {
2404 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-complete");
2405 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "url-complete");
2407 url in1
= scm_to_url (arg1
);
2408 string in2
= scm_to_string (arg2
);
2411 url out
= complete (in1
, in2
);
2414 return url_to_scm (out
);
2418 tmg_url_resolve (SCM arg1
, SCM arg2
) {
2419 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-resolve");
2420 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "url-resolve");
2422 url in1
= scm_to_url (arg1
);
2423 string in2
= scm_to_string (arg2
);
2426 url out
= resolve (in1
, in2
);
2429 return url_to_scm (out
);
2433 tmg_url_resolve_in_path (SCM arg1
) {
2434 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-resolve-in-path");
2436 url in1
= scm_to_url (arg1
);
2439 url out
= resolve_in_path (in1
);
2442 return url_to_scm (out
);
2446 tmg_url_existsP (SCM arg1
) {
2447 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-exists?");
2449 url in1
= scm_to_url (arg1
);
2452 bool out
= exists (in1
);
2455 return bool_to_scm (out
);
2459 tmg_url_exists_in_pathP (SCM arg1
) {
2460 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-exists-in-path?");
2462 url in1
= scm_to_url (arg1
);
2465 bool out
= exists_in_path (in1
);
2468 return bool_to_scm (out
);
2472 tmg_url_exists_in_texP (SCM arg1
) {
2473 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-exists-in-tex?");
2475 url in1
= scm_to_url (arg1
);
2478 bool out
= exists_in_tex (in1
);
2481 return bool_to_scm (out
);
2485 tmg_url_concretize (SCM arg1
) {
2486 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-concretize");
2488 url in1
= scm_to_url (arg1
);
2491 string out
= concretize (in1
);
2494 return string_to_scm (out
);
2498 tmg_url_materialize (SCM arg1
, SCM arg2
) {
2499 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-materialize");
2500 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "url-materialize");
2502 url in1
= scm_to_url (arg1
);
2503 string in2
= scm_to_string (arg2
);
2506 string out
= materialize (in1
, in2
);
2509 return string_to_scm (out
);
2513 tmg_url_testP (SCM arg1
, SCM arg2
) {
2514 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-test?");
2515 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "url-test?");
2517 url in1
= scm_to_url (arg1
);
2518 string in2
= scm_to_string (arg2
);
2521 bool out
= is_of_type (in1
, in2
);
2524 return bool_to_scm (out
);
2528 tmg_url_regularP (SCM arg1
) {
2529 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-regular?");
2531 url in1
= scm_to_url (arg1
);
2534 bool out
= is_regular (in1
);
2537 return bool_to_scm (out
);
2541 tmg_url_directoryP (SCM arg1
) {
2542 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-directory?");
2544 url in1
= scm_to_url (arg1
);
2547 bool out
= is_directory (in1
);
2550 return bool_to_scm (out
);
2554 tmg_url_linkP (SCM arg1
) {
2555 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-link?");
2557 url in1
= scm_to_url (arg1
);
2560 bool out
= is_symbolic_link (in1
);
2563 return bool_to_scm (out
);
2567 tmg_url_newerP (SCM arg1
, SCM arg2
) {
2568 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-newer?");
2569 SCM_ASSERT_URL (arg2
, SCM_ARG2
, "url-newer?");
2571 url in1
= scm_to_url (arg1
);
2572 url in2
= scm_to_url (arg2
);
2575 bool out
= is_newer (in1
, in2
);
2578 return bool_to_scm (out
);
2582 tmg_url_last_modified (SCM arg1
) {
2583 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-last-modified");
2585 url in1
= scm_to_url (arg1
);
2588 int out
= last_modified (in1
);
2591 return int_to_scm (out
);
2597 url out
= url_temp ();
2600 return url_to_scm (out
);
2604 tmg_url_scratch (SCM arg1
, SCM arg2
, SCM arg3
) {
2605 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "url-scratch");
2606 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "url-scratch");
2607 SCM_ASSERT_INT (arg3
, SCM_ARG3
, "url-scratch");
2609 string in1
= scm_to_string (arg1
);
2610 string in2
= scm_to_string (arg2
);
2611 int in3
= scm_to_int (arg3
);
2614 url out
= url_scratch (in1
, in2
, in3
);
2617 return url_to_scm (out
);
2621 tmg_url_scratchP (SCM arg1
) {
2622 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "url-scratch?");
2624 url in1
= scm_to_url (arg1
);
2627 bool out
= is_scratch (in1
);
2630 return bool_to_scm (out
);
2634 tmg_string_save (SCM arg1
, SCM arg2
) {
2635 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "string-save");
2636 SCM_ASSERT_URL (arg2
, SCM_ARG2
, "string-save");
2638 string in1
= scm_to_string (arg1
);
2639 url in2
= scm_to_url (arg2
);
2642 string_save (in1
, in2
);
2645 return SCM_UNSPECIFIED
;
2649 tmg_string_load (SCM arg1
) {
2650 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "string-load");
2652 url in1
= scm_to_url (arg1
);
2655 string out
= string_load (in1
);
2658 return string_to_scm (out
);
2662 tmg_system_move (SCM arg1
, SCM arg2
) {
2663 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "system-move");
2664 SCM_ASSERT_URL (arg2
, SCM_ARG2
, "system-move");
2666 url in1
= scm_to_url (arg1
);
2667 url in2
= scm_to_url (arg2
);
2673 return SCM_UNSPECIFIED
;
2677 tmg_system_copy (SCM arg1
, SCM arg2
) {
2678 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "system-copy");
2679 SCM_ASSERT_URL (arg2
, SCM_ARG2
, "system-copy");
2681 url in1
= scm_to_url (arg1
);
2682 url in2
= scm_to_url (arg2
);
2688 return SCM_UNSPECIFIED
;
2692 tmg_system_remove (SCM arg1
) {
2693 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "system-remove");
2695 url in1
= scm_to_url (arg1
);
2701 return SCM_UNSPECIFIED
;
2705 tmg_system_mkdir (SCM arg1
) {
2706 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "system-mkdir");
2708 url in1
= scm_to_url (arg1
);
2714 return SCM_UNSPECIFIED
;
2718 tmg_system_search_score (SCM arg1
, SCM arg2
) {
2719 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "system-search-score");
2720 SCM_ASSERT_ARRAY_STRING (arg2
, SCM_ARG2
, "system-search-score");
2722 url in1
= scm_to_url (arg1
);
2723 array_string in2
= scm_to_array_string (arg2
);
2726 int out
= search_score (in1
, in2
);
2729 return int_to_scm (out
);
2733 tmg_system_1 (SCM arg1
, SCM arg2
) {
2734 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "system-1");
2735 SCM_ASSERT_URL (arg2
, SCM_ARG2
, "system-1");
2737 string in1
= scm_to_string (arg1
);
2738 url in2
= scm_to_url (arg2
);
2744 return SCM_UNSPECIFIED
;
2748 tmg_system_2 (SCM arg1
, SCM arg2
, SCM arg3
) {
2749 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "system-2");
2750 SCM_ASSERT_URL (arg2
, SCM_ARG2
, "system-2");
2751 SCM_ASSERT_URL (arg3
, SCM_ARG3
, "system-2");
2753 string in1
= scm_to_string (arg1
);
2754 url in2
= scm_to_url (arg2
);
2755 url in3
= scm_to_url (arg3
);
2758 system (in1
, in2
, in3
);
2761 return SCM_UNSPECIFIED
;
2765 tmg_tmfs_set (SCM arg1
, SCM arg2
) {
2766 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-set");
2767 SCM_ASSERT_COLLECTION (arg2
, SCM_ARG2
, "tmfs-set");
2769 string in1
= scm_to_string (arg1
);
2770 collection in2
= scm_to_collection (arg2
);
2773 tmfs_set (in1
, in2
);
2776 return SCM_UNSPECIFIED
;
2780 tmg_tmfs_reset (SCM arg1
, SCM arg2
) {
2781 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-reset");
2782 SCM_ASSERT_COLLECTION (arg2
, SCM_ARG2
, "tmfs-reset");
2784 string in1
= scm_to_string (arg1
);
2785 collection in2
= scm_to_collection (arg2
);
2788 tmfs_reset (in1
, in2
);
2791 return SCM_UNSPECIFIED
;
2795 tmg_tmfs_get (SCM arg1
) {
2796 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-get");
2798 string in1
= scm_to_string (arg1
);
2801 collection out
= tmfs_get (in1
);
2804 return collection_to_scm (out
);
2808 tmg_tmfs_new_save (SCM arg1
, SCM arg2
) {
2809 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-new-save");
2810 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "tmfs-new-save");
2812 string in1
= scm_to_string (arg1
);
2813 string in2
= scm_to_string (arg2
);
2816 tmfs_save (in1
, in2
);
2819 return SCM_UNSPECIFIED
;
2823 tmg_tmfs_new_remove (SCM arg1
) {
2824 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-new-remove");
2826 string in1
= scm_to_string (arg1
);
2832 return SCM_UNSPECIFIED
;
2836 tmg_tmfs_new_load (SCM arg1
) {
2837 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-new-load");
2839 string in1
= scm_to_string (arg1
);
2842 string out
= tmfs_load (in1
);
2845 return string_to_scm (out
);
2849 tmg_tmfs_create_ressource () {
2851 string out
= tmfs_create_ressource ();
2854 return string_to_scm (out
);
2858 tmg_tmfs_ressource_head (SCM arg1
) {
2859 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-ressource-head");
2861 string in1
= scm_to_string (arg1
);
2864 string out
= tmfs_get_head (in1
);
2867 return string_to_scm (out
);
2871 tmg_tmfs_ressource_versions (SCM arg1
) {
2872 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-ressource-versions");
2874 string in1
= scm_to_string (arg1
);
2877 collection out
= tmfs_get_versions (in1
);
2880 return collection_to_scm (out
);
2884 tmg_tmfs_save_ressource (SCM arg1
, SCM arg2
, SCM arg3
) {
2885 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-save-ressource");
2886 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "tmfs-save-ressource");
2887 SCM_ASSERT_PROPERTIES (arg3
, SCM_ARG3
, "tmfs-save-ressource");
2889 string in1
= scm_to_string (arg1
);
2890 string in2
= scm_to_string (arg2
);
2891 properties in3
= scm_to_properties (arg3
);
2894 tmfs_save_ressource (in1
, in2
, in3
);
2897 return SCM_UNSPECIFIED
;
2901 tmg_tmfs_load_ressource_file (SCM arg1
) {
2902 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-load-ressource-file");
2904 string in1
= scm_to_string (arg1
);
2907 string out
= tmfs_load_ressource_file (in1
);
2910 return string_to_scm (out
);
2914 tmg_tmfs_load_ressource_properties (SCM arg1
) {
2915 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-load-ressource-properties");
2917 string in1
= scm_to_string (arg1
);
2920 properties out
= tmfs_load_ressource_properties (in1
);
2923 return properties_to_scm (out
);
2927 tmg_tmfs_create_user (SCM arg1
) {
2928 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-create-user");
2930 string in1
= scm_to_string (arg1
);
2933 string out
= tmfs_create_user (in1
);
2936 return string_to_scm (out
);
2940 tmg_tmfs_search_user (SCM arg1
) {
2941 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-search-user");
2943 string in1
= scm_to_string (arg1
);
2946 collection out
= tmfs_search_user (in1
);
2949 return collection_to_scm (out
);
2953 tmg_tmfs_set_user (SCM arg1
) {
2954 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-set-user");
2956 string in1
= scm_to_string (arg1
);
2959 tmfs_set_user (in1
);
2962 return SCM_UNSPECIFIED
;
2966 tmg_tmfs_get_user () {
2968 string out
= tmfs_get_user ();
2971 return string_to_scm (out
);
2975 tmg_tmfs_allowsP (SCM arg1
, SCM arg2
) {
2976 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-allows?");
2977 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "tmfs-allows?");
2979 string in1
= scm_to_string (arg1
);
2980 string in2
= scm_to_string (arg2
);
2983 bool out
= tmfs_allows (in1
, in2
);
2986 return bool_to_scm (out
);
2990 tmg_tmfs_set_attributes (SCM arg1
, SCM arg2
) {
2991 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-set-attributes");
2992 SCM_ASSERT_PROPERTIES (arg2
, SCM_ARG2
, "tmfs-set-attributes");
2994 string in1
= scm_to_string (arg1
);
2995 properties in2
= scm_to_properties (arg2
);
2998 tmfs_set_attributes (in1
, in2
);
3001 return SCM_UNSPECIFIED
;
3005 tmg_tmfs_get_attributes (SCM arg1
) {
3006 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-get-attributes");
3008 string in1
= scm_to_string (arg1
);
3011 properties out
= tmfs_get_attributes (in1
);
3014 return properties_to_scm (out
);
3018 tmg_tmfs_add_attributes (SCM arg1
, SCM arg2
) {
3019 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-add-attributes");
3020 SCM_ASSERT_PROPERTIES (arg2
, SCM_ARG2
, "tmfs-add-attributes");
3022 string in1
= scm_to_string (arg1
);
3023 properties in2
= scm_to_properties (arg2
);
3026 tmfs_add_attributes (in1
, in2
);
3029 return SCM_UNSPECIFIED
;
3033 tmg_tmfs_remove_attributes (SCM arg1
, SCM arg2
) {
3034 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-remove-attributes");
3035 SCM_ASSERT_PROPERTIES (arg2
, SCM_ARG2
, "tmfs-remove-attributes");
3037 string in1
= scm_to_string (arg1
);
3038 properties in2
= scm_to_properties (arg2
);
3041 tmfs_remove_attributes (in1
, in2
);
3044 return SCM_UNSPECIFIED
;
3048 tmg_tmfs_change_attributes (SCM arg1
, SCM arg2
) {
3049 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-change-attributes");
3050 SCM_ASSERT_PROPERTIES (arg2
, SCM_ARG2
, "tmfs-change-attributes");
3052 string in1
= scm_to_string (arg1
);
3053 properties in2
= scm_to_properties (arg2
);
3056 tmfs_change_attributes (in1
, in2
);
3059 return SCM_UNSPECIFIED
;
3063 tmg_tmfs_query (SCM arg1
) {
3064 SCM_ASSERT_PROPERTIES (arg1
, SCM_ARG1
, "tmfs-query");
3066 properties in1
= scm_to_properties (arg1
);
3069 solutions out
= tmfs_query (in1
);
3072 return solutions_to_scm (out
);
3076 tmg_solutions_2collection (SCM arg1
, SCM arg2
) {
3077 SCM_ASSERT_SOLUTIONS (arg1
, SCM_ARG1
, "solutions->collection");
3078 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "solutions->collection");
3080 solutions in1
= scm_to_solutions (arg1
);
3081 string in2
= scm_to_string (arg2
);
3084 collection out
= as_collection (in1
, in2
);
3087 return collection_to_scm (out
);
3091 tmg_tmfs_create_file (SCM arg1
, SCM arg2
) {
3092 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-create-file");
3093 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "tmfs-create-file");
3095 string in1
= scm_to_string (arg1
);
3096 string in2
= scm_to_string (arg2
);
3099 string out
= tmfs_create_file (in1
, in2
);
3102 return string_to_scm (out
);
3106 tmg_tmfs_create_file_in (SCM arg1
, SCM arg2
, SCM arg3
) {
3107 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-create-file-in");
3108 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "tmfs-create-file-in");
3109 SCM_ASSERT_STRING (arg3
, SCM_ARG3
, "tmfs-create-file-in");
3111 string in1
= scm_to_string (arg1
);
3112 string in2
= scm_to_string (arg2
);
3113 string in3
= scm_to_string (arg3
);
3116 string out
= tmfs_create_file (in1
, in2
, in3
);
3119 return string_to_scm (out
);
3123 tmg_tmfs_search_file (SCM arg1
) {
3124 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-search-file");
3126 string in1
= scm_to_string (arg1
);
3129 collection out
= tmfs_search_file (in1
);
3132 return collection_to_scm (out
);
3136 tmg_tmfs_save_file (SCM arg1
, SCM arg2
) {
3137 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-save-file");
3138 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "tmfs-save-file");
3140 string in1
= scm_to_string (arg1
);
3141 string in2
= scm_to_string (arg2
);
3144 tmfs_save_file (in1
, in2
);
3147 return SCM_UNSPECIFIED
;
3151 tmg_tmfs_load_file (SCM arg1
) {
3152 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-load-file");
3154 string in1
= scm_to_string (arg1
);
3157 string out
= tmfs_load_file (in1
);
3160 return string_to_scm (out
);
3164 tmg_tmfs_create_project (SCM arg1
) {
3165 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-create-project");
3167 string in1
= scm_to_string (arg1
);
3170 string out
= tmfs_create_project (in1
);
3173 return string_to_scm (out
);
3177 tmg_tmfs_search_project (SCM arg1
) {
3178 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-search-project");
3180 string in1
= scm_to_string (arg1
);
3183 collection out
= tmfs_search_project (in1
);
3186 return collection_to_scm (out
);
3190 tmg_tmfs_get_file_projects (SCM arg1
) {
3191 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-get-file-projects");
3193 string in1
= scm_to_string (arg1
);
3196 collection out
= tmfs_get_file_projects (in1
);
3199 return collection_to_scm (out
);
3203 tmg_tmfs_get_project_files (SCM arg1
) {
3204 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-get-project-files");
3206 string in1
= scm_to_string (arg1
);
3209 collection out
= tmfs_get_project_files (in1
);
3212 return collection_to_scm (out
);
3216 tmg_tmfs_create_branch (SCM arg1
, SCM arg2
) {
3217 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-create-branch");
3218 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "tmfs-create-branch");
3220 string in1
= scm_to_string (arg1
);
3221 string in2
= scm_to_string (arg2
);
3224 string out
= tmfs_create_branch (in1
, in2
);
3227 return string_to_scm (out
);
3231 tmg_tmfs_set_root (SCM arg1
, SCM arg2
) {
3232 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-set-root");
3233 SCM_ASSERT_URL (arg2
, SCM_ARG2
, "tmfs-set-root");
3235 string in1
= scm_to_string (arg1
);
3236 url in2
= scm_to_url (arg2
);
3239 tmfs_set_root (in1
, in2
);
3242 return SCM_UNSPECIFIED
;
3246 tmg_tmfs_get_root (SCM arg1
) {
3247 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "tmfs-get-root");
3249 string in1
= scm_to_string (arg1
);
3252 url out
= tmfs_get_root (in1
);
3255 return url_to_scm (out
);
3259 tmg_tmfs_import (SCM arg1
) {
3260 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "tmfs-import");
3262 url in1
= scm_to_url (arg1
);
3268 return SCM_UNSPECIFIED
;
3272 tmg_tmfs_export (SCM arg1
) {
3273 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "tmfs-export");
3275 url in1
= scm_to_url (arg1
);
3281 return SCM_UNSPECIFIED
;
3285 tmg_server_start () {
3290 return SCM_UNSPECIFIED
;
3294 tmg_server_stop () {
3299 return SCM_UNSPECIFIED
;
3303 tmg_server_read (SCM arg1
) {
3304 SCM_ASSERT_INT (arg1
, SCM_ARG1
, "server-read");
3306 int in1
= scm_to_int (arg1
);
3309 string out
= server_read (in1
);
3312 return string_to_scm (out
);
3316 tmg_server_write (SCM arg1
, SCM arg2
) {
3317 SCM_ASSERT_INT (arg1
, SCM_ARG1
, "server-write");
3318 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "server-write");
3320 int in1
= scm_to_int (arg1
);
3321 string in2
= scm_to_string (arg2
);
3324 server_write (in1
, in2
);
3327 return SCM_UNSPECIFIED
;
3331 tmg_client_start (SCM arg1
) {
3332 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "client-start");
3334 string in1
= scm_to_string (arg1
);
3340 return SCM_UNSPECIFIED
;
3344 tmg_client_stop () {
3349 return SCM_UNSPECIFIED
;
3353 tmg_client_read () {
3355 string out
= client_read ();
3358 return string_to_scm (out
);
3362 tmg_client_write (SCM arg1
) {
3363 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "client-write");
3365 string in1
= scm_to_string (arg1
);
3371 return SCM_UNSPECIFIED
;
3375 tmg_enter_secure_mode () {
3377 enter_secure_mode ();
3380 return SCM_UNSPECIFIED
;
3384 tmg_connection_start (SCM arg1
, SCM arg2
) {
3385 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "connection-start");
3386 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "connection-start");
3388 string in1
= scm_to_string (arg1
);
3389 string in2
= scm_to_string (arg2
);
3392 string out
= connection_start (in1
, in2
);
3395 return string_to_scm (out
);
3399 tmg_connection_status (SCM arg1
, SCM arg2
) {
3400 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "connection-status");
3401 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "connection-status");
3403 string in1
= scm_to_string (arg1
);
3404 string in2
= scm_to_string (arg2
);
3407 int out
= connection_status (in1
, in2
);
3410 return int_to_scm (out
);
3414 tmg_connection_write (SCM arg1
, SCM arg2
, SCM arg3
) {
3415 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "connection-write");
3416 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "connection-write");
3417 SCM_ASSERT_CONTENT (arg3
, SCM_ARG3
, "connection-write");
3419 string in1
= scm_to_string (arg1
);
3420 string in2
= scm_to_string (arg2
);
3421 content in3
= scm_to_content (arg3
);
3424 connection_write (in1
, in2
, in3
);
3427 return SCM_UNSPECIFIED
;
3431 tmg_connection_cmd (SCM arg1
, SCM arg2
, SCM arg3
) {
3432 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "connection-cmd");
3433 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "connection-cmd");
3434 SCM_ASSERT_STRING (arg3
, SCM_ARG3
, "connection-cmd");
3436 string in1
= scm_to_string (arg1
);
3437 string in2
= scm_to_string (arg2
);
3438 string in3
= scm_to_string (arg3
);
3441 tree out
= connection_cmd (in1
, in2
, in3
);
3444 return tree_to_scm (out
);
3448 tmg_connection_eval (SCM arg1
, SCM arg2
, SCM arg3
) {
3449 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "connection-eval");
3450 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "connection-eval");
3451 SCM_ASSERT_CONTENT (arg3
, SCM_ARG3
, "connection-eval");
3453 string in1
= scm_to_string (arg1
);
3454 string in2
= scm_to_string (arg2
);
3455 content in3
= scm_to_content (arg3
);
3458 tree out
= connection_eval (in1
, in2
, in3
);
3461 return tree_to_scm (out
);
3465 tmg_connection_interrupt (SCM arg1
, SCM arg2
) {
3466 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "connection-interrupt");
3467 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "connection-interrupt");
3469 string in1
= scm_to_string (arg1
);
3470 string in2
= scm_to_string (arg2
);
3473 connection_interrupt (in1
, in2
);
3476 return SCM_UNSPECIFIED
;
3480 tmg_connection_stop (SCM arg1
, SCM arg2
) {
3481 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "connection-stop");
3482 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "connection-stop");
3484 string in1
= scm_to_string (arg1
);
3485 string in2
= scm_to_string (arg2
);
3488 connection_stop (in1
, in2
);
3491 return SCM_UNSPECIFIED
;
3495 tmg_widget_hmenu (SCM arg1
) {
3496 SCM_ASSERT_ARRAY_WIDGET (arg1
, SCM_ARG1
, "widget-hmenu");
3498 array_widget in1
= scm_to_array_widget (arg1
);
3501 widget out
= horizontal_menu (in1
);
3504 return widget_to_scm (out
);
3508 tmg_widget_vmenu (SCM arg1
) {
3509 SCM_ASSERT_ARRAY_WIDGET (arg1
, SCM_ARG1
, "widget-vmenu");
3511 array_widget in1
= scm_to_array_widget (arg1
);
3514 widget out
= vertical_menu (in1
);
3517 return widget_to_scm (out
);
3521 tmg_widget_tmenu (SCM arg1
, SCM arg2
) {
3522 SCM_ASSERT_ARRAY_WIDGET (arg1
, SCM_ARG1
, "widget-tmenu");
3523 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "widget-tmenu");
3525 array_widget in1
= scm_to_array_widget (arg1
);
3526 int in2
= scm_to_int (arg2
);
3529 widget out
= tile_menu (in1
, in2
);
3532 return widget_to_scm (out
);
3536 tmg_widget_separator (SCM arg1
) {
3537 SCM_ASSERT_BOOL (arg1
, SCM_ARG1
, "widget-separator");
3539 bool in1
= scm_to_bool (arg1
);
3542 widget out
= menu_separator (in1
);
3545 return widget_to_scm (out
);
3549 tmg_widget_menu_group (SCM arg1
, SCM arg2
) {
3550 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "widget-menu-group");
3551 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "widget-menu-group");
3553 string in1
= scm_to_string (arg1
);
3554 string in2
= scm_to_string (arg2
);
3557 widget out
= menu_group (in1
, in2
);
3560 return widget_to_scm (out
);
3564 tmg_widget_pulldown_button (SCM arg1
, SCM arg2
) {
3565 SCM_ASSERT_WIDGET (arg1
, SCM_ARG1
, "widget-pulldown-button");
3566 SCM_ASSERT_PROMISE_WIDGET (arg2
, SCM_ARG2
, "widget-pulldown-button");
3568 widget in1
= scm_to_widget (arg1
);
3569 promise_widget in2
= scm_to_promise_widget (arg2
);
3572 widget out
= pulldown_button (in1
, in2
);
3575 return widget_to_scm (out
);
3579 tmg_widget_pullright_button (SCM arg1
, SCM arg2
) {
3580 SCM_ASSERT_WIDGET (arg1
, SCM_ARG1
, "widget-pullright-button");
3581 SCM_ASSERT_PROMISE_WIDGET (arg2
, SCM_ARG2
, "widget-pullright-button");
3583 widget in1
= scm_to_widget (arg1
);
3584 promise_widget in2
= scm_to_promise_widget (arg2
);
3587 widget out
= pullright_button (in1
, in2
);
3590 return widget_to_scm (out
);
3594 tmg_widget_menu_button (SCM arg1
, SCM arg2
, SCM arg3
, SCM arg4
, SCM arg5
) {
3595 SCM_ASSERT_WIDGET (arg1
, SCM_ARG1
, "widget-menu-button");
3596 SCM_ASSERT_COMMAND (arg2
, SCM_ARG2
, "widget-menu-button");
3597 SCM_ASSERT_STRING (arg3
, SCM_ARG3
, "widget-menu-button");
3598 SCM_ASSERT_STRING (arg4
, SCM_ARG4
, "widget-menu-button");
3599 SCM_ASSERT_BOOL (arg5
, SCM_ARG5
, "widget-menu-button");
3601 widget in1
= scm_to_widget (arg1
);
3602 command in2
= scm_to_command (arg2
);
3603 string in3
= scm_to_string (arg3
);
3604 string in4
= scm_to_string (arg4
);
3605 bool in5
= scm_to_bool (arg5
);
3608 widget out
= menu_button (in1
, in2
, in3
, in4
, in5
);
3611 return widget_to_scm (out
);
3615 tmg_widget_balloon (SCM arg1
, SCM arg2
) {
3616 SCM_ASSERT_WIDGET (arg1
, SCM_ARG1
, "widget-balloon");
3617 SCM_ASSERT_WIDGET (arg2
, SCM_ARG2
, "widget-balloon");
3619 widget in1
= scm_to_widget (arg1
);
3620 widget in2
= scm_to_widget (arg2
);
3623 widget out
= balloon_widget (in1
, in2
);
3626 return widget_to_scm (out
);
3630 tmg_widget_empty () {
3632 widget out
= empty_widget ();
3635 return widget_to_scm (out
);
3639 tmg_widget_text (SCM arg1
, SCM arg2
, SCM arg3
, SCM arg4
) {
3640 SCM_ASSERT_STRING (arg1
, SCM_ARG1
, "widget-text");
3641 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "widget-text");
3642 SCM_ASSERT_BOOL (arg3
, SCM_ARG3
, "widget-text");
3643 SCM_ASSERT_STRING (arg4
, SCM_ARG4
, "widget-text");
3645 string in1
= scm_to_string (arg1
);
3646 int in2
= scm_to_int (arg2
);
3647 bool in3
= scm_to_bool (arg3
);
3648 string in4
= scm_to_string (arg4
);
3651 widget out
= text_widget (in1
, in2
, in3
, in4
);
3654 return widget_to_scm (out
);
3658 tmg_widget_xpm (SCM arg1
) {
3659 SCM_ASSERT_URL (arg1
, SCM_ARG1
, "widget-xpm");
3661 url in1
= scm_to_url (arg1
);
3664 widget out
= xpm_widget (in1
);
3667 return widget_to_scm (out
);
3671 tmg_widget_box (SCM arg1
, SCM arg2
, SCM arg3
, SCM arg4
, SCM arg5
) {
3672 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "widget-box");
3673 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "widget-box");
3674 SCM_ASSERT_INT (arg3
, SCM_ARG3
, "widget-box");
3675 SCM_ASSERT_BOOL (arg4
, SCM_ARG4
, "widget-box");
3676 SCM_ASSERT_BOOL (arg5
, SCM_ARG5
, "widget-box");
3678 scheme_tree in1
= scm_to_scheme_tree (arg1
);
3679 string in2
= scm_to_string (arg2
);
3680 int in3
= scm_to_int (arg3
);
3681 bool in4
= scm_to_bool (arg4
);
3682 bool in5
= scm_to_bool (arg5
);
3685 widget out
= box_widget (in1
, in2
, in3
, in4
, in5
);
3688 return widget_to_scm (out
);
3692 tmg_object_2promise_widget (SCM arg1
) {
3693 SCM_ASSERT_OBJECT (arg1
, SCM_ARG1
, "object->promise-widget");
3695 object in1
= scm_to_object (arg1
);
3698 promise_widget out
= as_promise_widget (in1
);
3701 return promise_widget_to_scm (out
);
3705 tmg_bib_add_period (SCM arg1
) {
3706 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "bib-add-period");
3708 scheme_tree in1
= scm_to_scheme_tree (arg1
);
3711 scheme_tree out
= bib_add_period (in1
);
3714 return scheme_tree_to_scm (out
);
3718 tmg_bib_upcase_first (SCM arg1
) {
3719 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "bib-upcase-first");
3721 scheme_tree in1
= scm_to_scheme_tree (arg1
);
3724 scheme_tree out
= bib_upcase_first (in1
);
3727 return scheme_tree_to_scm (out
);
3731 tmg_bib_locase (SCM arg1
) {
3732 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "bib-locase");
3734 scheme_tree in1
= scm_to_scheme_tree (arg1
);
3737 scheme_tree out
= bib_locase (in1
);
3740 return scheme_tree_to_scm (out
);
3744 tmg_bib_upcase (SCM arg1
) {
3745 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "bib-upcase");
3747 scheme_tree in1
= scm_to_scheme_tree (arg1
);
3750 scheme_tree out
= bib_upcase (in1
);
3753 return scheme_tree_to_scm (out
);
3757 tmg_bib_default (SCM arg1
) {
3758 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "bib-default");
3760 scheme_tree in1
= scm_to_scheme_tree (arg1
);
3763 scheme_tree out
= bib_default (in1
);
3766 return scheme_tree_to_scm (out
);
3770 tmg_bib_purify (SCM arg1
) {
3771 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "bib-purify");
3773 scheme_tree in1
= scm_to_scheme_tree (arg1
);
3776 string out
= bib_purify (in1
);
3779 return string_to_scm (out
);
3783 tmg_bib_text_length (SCM arg1
) {
3784 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "bib-text-length");
3786 scheme_tree in1
= scm_to_scheme_tree (arg1
);
3789 int out
= bib_text_length (in1
);
3792 return int_to_scm (out
);
3796 tmg_bib_prefix (SCM arg1
, SCM arg2
) {
3797 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "bib-prefix");
3798 SCM_ASSERT_INT (arg2
, SCM_ARG2
, "bib-prefix");
3800 scheme_tree in1
= scm_to_scheme_tree (arg1
);
3801 int in2
= scm_to_int (arg2
);
3804 string out
= bib_prefix (in1
, in2
);
3807 return string_to_scm (out
);
3811 tmg_bib_emptyP (SCM arg1
, SCM arg2
) {
3812 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "bib-empty?");
3813 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "bib-empty?");
3815 scheme_tree in1
= scm_to_scheme_tree (arg1
);
3816 string in2
= scm_to_string (arg2
);
3819 bool out
= bib_empty (in1
, in2
);
3822 return bool_to_scm (out
);
3826 tmg_bib_field (SCM arg1
, SCM arg2
) {
3827 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "bib-field");
3828 SCM_ASSERT_STRING (arg2
, SCM_ARG2
, "bib-field");
3830 scheme_tree in1
= scm_to_scheme_tree (arg1
);
3831 string in2
= scm_to_string (arg2
);
3834 scheme_tree out
= bib_field (in1
, in2
);
3837 return scheme_tree_to_scm (out
);
3841 tmg_bib_abbreviate (SCM arg1
, SCM arg2
, SCM arg3
) {
3842 SCM_ASSERT_SCHEME_TREE (arg1
, SCM_ARG1
, "bib-abbreviate");
3843 SCM_ASSERT_SCHEME_TREE (arg2
, SCM_ARG2
, "bib-abbreviate");
3844 SCM_ASSERT_SCHEME_TREE (arg3
, SCM_ARG3
, "bib-abbreviate");
3846 scheme_tree in1
= scm_to_scheme_tree (arg1
);
3847 scheme_tree in2
= scm_to_scheme_tree (arg2
);
3848 scheme_tree in3
= scm_to_scheme_tree (arg3
);
3851 scheme_tree out
= bib_abbreviate (in1
, in2
, in3
);
3854 return scheme_tree_to_scm (out
);
3858 initialize_glue_basic () {
3859 scm_new_procedure ("texmacs-version-release", (FN
) tmg_texmacs_version_release
, 1, 0, 0);
3860 scm_new_procedure ("version-before?", (FN
) tmg_version_beforeP
, 2, 0, 0);
3861 scm_new_procedure ("os-win32?", (FN
) tmg_os_win32P
, 0, 0, 0);
3862 scm_new_procedure ("os-mingw?", (FN
) tmg_os_mingwP
, 0, 0, 0);
3863 scm_new_procedure ("os-macos?", (FN
) tmg_os_macosP
, 0, 0, 0);
3864 scm_new_procedure ("x-gui?", (FN
) tmg_x_guiP
, 0, 0, 0);
3865 scm_new_procedure ("qt-gui?", (FN
) tmg_qt_guiP
, 0, 0, 0);
3866 scm_new_procedure ("tm-output", (FN
) tmg_tm_output
, 1, 0, 0);
3867 scm_new_procedure ("tm-errput", (FN
) tmg_tm_errput
, 1, 0, 0);
3868 scm_new_procedure ("win32-display", (FN
) tmg_win32_display
, 1, 0, 0);
3869 scm_new_procedure ("scheme-dialect", (FN
) tmg_scheme_dialect
, 0, 0, 0);
3870 scm_new_procedure ("get-texmacs-path", (FN
) tmg_get_texmacs_path
, 0, 0, 0);
3871 scm_new_procedure ("plugin-list", (FN
) tmg_plugin_list
, 0, 0, 0);
3872 scm_new_procedure ("get-font-type", (FN
) tmg_get_font_type
, 0, 0, 0);
3873 scm_new_procedure ("set-font-type", (FN
) tmg_set_font_type
, 1, 0, 0);
3874 scm_new_procedure ("font-exists-in-tt?", (FN
) tmg_font_exists_in_ttP
, 1, 0, 0);
3875 scm_new_procedure ("eval-system", (FN
) tmg_eval_system
, 1, 0, 0);
3876 scm_new_procedure ("var-eval-system", (FN
) tmg_var_eval_system
, 1, 0, 0);
3877 scm_new_procedure ("get-locale-language", (FN
) tmg_get_locale_language
, 0, 0, 0);
3878 scm_new_procedure ("texmacs-time", (FN
) tmg_texmacs_time
, 0, 0, 0);
3879 scm_new_procedure ("texmacs-memory", (FN
) tmg_texmacs_memory
, 0, 0, 0);
3880 scm_new_procedure ("bench-print", (FN
) tmg_bench_print
, 1, 0, 0);
3881 scm_new_procedure ("bench-print-all", (FN
) tmg_bench_print_all
, 0, 0, 0);
3882 scm_new_procedure ("system-wait", (FN
) tmg_system_wait
, 2, 0, 0);
3883 scm_new_procedure ("set-bibtex-command", (FN
) tmg_set_bibtex_command
, 1, 0, 0);
3884 scm_new_procedure ("math-symbol-group", (FN
) tmg_math_symbol_group
, 1, 0, 0);
3885 scm_new_procedure ("math-group-members", (FN
) tmg_math_group_members
, 1, 0, 0);
3886 scm_new_procedure ("math-symbol-type", (FN
) tmg_math_symbol_type
, 1, 0, 0);
3887 scm_new_procedure ("object->command", (FN
) tmg_object_2command
, 1, 0, 0);
3888 scm_new_procedure ("exec-delayed", (FN
) tmg_exec_delayed
, 1, 0, 0);
3889 scm_new_procedure ("exec-delayed-pause", (FN
) tmg_exec_delayed_pause
, 1, 0, 0);
3890 scm_new_procedure ("set-input-language", (FN
) tmg_set_input_language
, 1, 0, 0);
3891 scm_new_procedure ("get-input-language", (FN
) tmg_get_input_language
, 0, 0, 0);
3892 scm_new_procedure ("set-output-language", (FN
) tmg_set_output_language
, 1, 0, 0);
3893 scm_new_procedure ("get-output-language", (FN
) tmg_get_output_language
, 0, 0, 0);
3894 scm_new_procedure ("translate", (FN
) tmg_translate
, 3, 0, 0);
3895 scm_new_procedure ("color", (FN
) tmg_color
, 1, 0, 0);
3896 scm_new_procedure ("new-author", (FN
) tmg_new_author
, 0, 0, 0);
3897 scm_new_procedure ("set-author", (FN
) tmg_set_author
, 1, 0, 0);
3898 scm_new_procedure ("get-author", (FN
) tmg_get_author
, 0, 0, 0);
3899 scm_new_procedure ("image->psdoc", (FN
) tmg_image_2psdoc
, 1, 0, 0);
3900 scm_new_procedure ("tree->stree", (FN
) tmg_tree_2stree
, 1, 0, 0);
3901 scm_new_procedure ("stree->tree", (FN
) tmg_stree_2tree
, 1, 0, 0);
3902 scm_new_procedure ("tree->string", (FN
) tmg_tree_2string
, 1, 0, 0);
3903 scm_new_procedure ("string->tree", (FN
) tmg_string_2tree
, 1, 0, 0);
3904 scm_new_procedure ("tm->tree", (FN
) tmg_tm_2tree
, 1, 0, 0);
3905 scm_new_procedure ("tree-atomic?", (FN
) tmg_tree_atomicP
, 1, 0, 0);
3906 scm_new_procedure ("tree-compound?", (FN
) tmg_tree_compoundP
, 1, 0, 0);
3907 scm_new_procedure ("tree-label", (FN
) tmg_tree_label
, 1, 0, 0);
3908 scm_new_procedure ("tree-children", (FN
) tmg_tree_children
, 1, 0, 0);
3909 scm_new_procedure ("tree-arity", (FN
) tmg_tree_arity
, 1, 0, 0);
3910 scm_new_procedure ("tree-child-ref", (FN
) tmg_tree_child_ref
, 2, 0, 0);
3911 scm_new_procedure ("tree-child-set!", (FN
) tmg_tree_child_setS
, 3, 0, 0);
3912 scm_new_procedure ("tree-child-insert", (FN
) tmg_tree_child_insert
, 3, 0, 0);
3913 scm_new_procedure ("tree-ip", (FN
) tmg_tree_ip
, 1, 0, 0);
3914 scm_new_procedure ("tree-active?", (FN
) tmg_tree_activeP
, 1, 0, 0);
3915 scm_new_procedure ("tree-eq?", (FN
) tmg_tree_eqP
, 2, 0, 0);
3916 scm_new_procedure ("subtree", (FN
) tmg_subtree
, 2, 0, 0);
3917 scm_new_procedure ("tree-range", (FN
) tmg_tree_range
, 3, 0, 0);
3918 scm_new_procedure ("tree-copy", (FN
) tmg_tree_copy
, 1, 0, 0);
3919 scm_new_procedure ("tree-append", (FN
) tmg_tree_append
, 2, 0, 0);
3920 scm_new_procedure ("tree-right-index", (FN
) tmg_tree_right_index
, 1, 0, 0);
3921 scm_new_procedure ("tree-label-extension?", (FN
) tmg_tree_label_extensionP
, 1, 0, 0);
3922 scm_new_procedure ("tree-multi-paragraph?", (FN
) tmg_tree_multi_paragraphP
, 1, 0, 0);
3923 scm_new_procedure ("tree-simplify", (FN
) tmg_tree_simplify
, 1, 0, 0);
3924 scm_new_procedure ("tree-accessible-child?", (FN
) tmg_tree_accessible_childP
, 2, 0, 0);
3925 scm_new_procedure ("tree-accessible-children", (FN
) tmg_tree_accessible_children
, 1, 0, 0);
3926 scm_new_procedure ("tree-load-inclusion", (FN
) tmg_tree_load_inclusion
, 1, 0, 0);
3927 scm_new_procedure ("tree-as-string", (FN
) tmg_tree_as_string
, 1, 0, 0);
3928 scm_new_procedure ("tree-extents", (FN
) tmg_tree_extents
, 1, 0, 0);
3929 scm_new_procedure ("tree-empty?", (FN
) tmg_tree_emptyP
, 1, 0, 0);
3930 scm_new_procedure ("tree-assign", (FN
) tmg_tree_assign
, 2, 0, 0);
3931 scm_new_procedure ("tree-var-insert", (FN
) tmg_tree_var_insert
, 3, 0, 0);
3932 scm_new_procedure ("tree-remove", (FN
) tmg_tree_remove
, 3, 0, 0);
3933 scm_new_procedure ("tree-split", (FN
) tmg_tree_split
, 3, 0, 0);
3934 scm_new_procedure ("tree-join", (FN
) tmg_tree_join
, 2, 0, 0);
3935 scm_new_procedure ("tree-assign-node", (FN
) tmg_tree_assign_node
, 2, 0, 0);
3936 scm_new_procedure ("tree-insert-node", (FN
) tmg_tree_insert_node
, 3, 0, 0);
3937 scm_new_procedure ("tree-remove-node", (FN
) tmg_tree_remove_node
, 2, 0, 0);
3938 scm_new_procedure ("path-inf?", (FN
) tmg_path_infP
, 2, 0, 0);
3939 scm_new_procedure ("path-inf-eq?", (FN
) tmg_path_inf_eqP
, 2, 0, 0);
3940 scm_new_procedure ("path-less?", (FN
) tmg_path_lessP
, 2, 0, 0);
3941 scm_new_procedure ("path-less-eq?", (FN
) tmg_path_less_eqP
, 2, 0, 0);
3942 scm_new_procedure ("path-start", (FN
) tmg_path_start
, 2, 0, 0);
3943 scm_new_procedure ("path-end", (FN
) tmg_path_end
, 2, 0, 0);
3944 scm_new_procedure ("path-next", (FN
) tmg_path_next
, 2, 0, 0);
3945 scm_new_procedure ("path-previous", (FN
) tmg_path_previous
, 2, 0, 0);
3946 scm_new_procedure ("path-next-word", (FN
) tmg_path_next_word
, 2, 0, 0);
3947 scm_new_procedure ("path-previous-word", (FN
) tmg_path_previous_word
, 2, 0, 0);
3948 scm_new_procedure ("path-next-node", (FN
) tmg_path_next_node
, 2, 0, 0);
3949 scm_new_procedure ("path-previous-node", (FN
) tmg_path_previous_node
, 2, 0, 0);
3950 scm_new_procedure ("path-next-tag", (FN
) tmg_path_next_tag
, 3, 0, 0);
3951 scm_new_procedure ("path-previous-tag", (FN
) tmg_path_previous_tag
, 3, 0, 0);
3952 scm_new_procedure ("path-next-tag-same-argument", (FN
) tmg_path_next_tag_same_argument
, 3, 0, 0);
3953 scm_new_procedure ("path-previous-tag-same-argument", (FN
) tmg_path_previous_tag_same_argument
, 3, 0, 0);
3954 scm_new_procedure ("path-next-argument", (FN
) tmg_path_next_argument
, 2, 0, 0);
3955 scm_new_procedure ("path-previous-argument", (FN
) tmg_path_previous_argument
, 2, 0, 0);
3956 scm_new_procedure ("tree->ids", (FN
) tmg_tree_2ids
, 1, 0, 0);
3957 scm_new_procedure ("id->trees", (FN
) tmg_id_2trees
, 1, 0, 0);
3958 scm_new_procedure ("vertex->links", (FN
) tmg_vertex_2links
, 1, 0, 0);
3959 scm_new_procedure ("tree->tree-pointer", (FN
) tmg_tree_2tree_pointer
, 1, 0, 0);
3960 scm_new_procedure ("tree-pointer-detach", (FN
) tmg_tree_pointer_detach
, 1, 0, 0);
3961 scm_new_procedure ("tree-pointer->tree", (FN
) tmg_tree_pointer_2tree
, 1, 0, 0);
3962 scm_new_procedure ("current-link-types", (FN
) tmg_current_link_types
, 0, 0, 0);
3963 scm_new_procedure ("get-locus-rendering", (FN
) tmg_get_locus_rendering
, 1, 0, 0);
3964 scm_new_procedure ("set-locus-rendering", (FN
) tmg_set_locus_rendering
, 2, 0, 0);
3965 scm_new_procedure ("declare-visited", (FN
) tmg_declare_visited
, 1, 0, 0);
3966 scm_new_procedure ("has-been-visited?", (FN
) tmg_has_been_visitedP
, 1, 0, 0);
3967 scm_new_procedure ("string-number?", (FN
) tmg_string_numberP
, 1, 0, 0);
3968 scm_new_procedure ("string-search-forwards", (FN
) tmg_string_search_forwards
, 3, 0, 0);
3969 scm_new_procedure ("string-search-backwards", (FN
) tmg_string_search_backwards
, 3, 0, 0);
3970 scm_new_procedure ("string-replace", (FN
) tmg_string_replace
, 3, 0, 0);
3971 scm_new_procedure ("string-locase-alpha?", (FN
) tmg_string_locase_alphaP
, 1, 0, 0);
3972 scm_new_procedure ("upcase-first", (FN
) tmg_upcase_first
, 1, 0, 0);
3973 scm_new_procedure ("locase-first", (FN
) tmg_locase_first
, 1, 0, 0);
3974 scm_new_procedure ("upcase-all", (FN
) tmg_upcase_all
, 1, 0, 0);
3975 scm_new_procedure ("locase-all", (FN
) tmg_locase_all
, 1, 0, 0);
3976 scm_new_procedure ("string-union", (FN
) tmg_string_union
, 2, 0, 0);
3977 scm_new_procedure ("string-minus", (FN
) tmg_string_minus
, 2, 0, 0);
3978 scm_new_procedure ("string-encode", (FN
) tmg_string_encode
, 1, 0, 0);
3979 scm_new_procedure ("string-decode", (FN
) tmg_string_decode
, 1, 0, 0);
3980 scm_new_procedure ("escape-generic", (FN
) tmg_escape_generic
, 1, 0, 0);
3981 scm_new_procedure ("escape-verbatim", (FN
) tmg_escape_verbatim
, 1, 0, 0);
3982 scm_new_procedure ("escape-shell", (FN
) tmg_escape_shell
, 1, 0, 0);
3983 scm_new_procedure ("string-convert", (FN
) tmg_string_convert
, 3, 0, 0);
3984 scm_new_procedure ("utf8->cork", (FN
) tmg_utf8_2cork
, 1, 0, 0);
3985 scm_new_procedure ("cork->utf8", (FN
) tmg_cork_2utf8
, 1, 0, 0);
3986 scm_new_procedure ("utf8->html", (FN
) tmg_utf8_2html
, 1, 0, 0);
3987 scm_new_procedure ("tm->xml-name", (FN
) tmg_tm_2xml_name
, 1, 0, 0);
3988 scm_new_procedure ("old-tm->xml-cdata", (FN
) tmg_old_tm_2xml_cdata
, 1, 0, 0);
3989 scm_new_procedure ("tm->xml-cdata", (FN
) tmg_tm_2xml_cdata
, 1, 0, 0);
3990 scm_new_procedure ("xml-name->tm", (FN
) tmg_xml_name_2tm
, 1, 0, 0);
3991 scm_new_procedure ("old-xml-cdata->tm", (FN
) tmg_old_xml_cdata_2tm
, 1, 0, 0);
3992 scm_new_procedure ("xml-unspace", (FN
) tmg_xml_unspace
, 3, 0, 0);
3993 scm_new_procedure ("define-grammar-rule", (FN
) tmg_define_grammar_rule
, 2, 0, 0);
3994 scm_new_procedure ("grammar-parse", (FN
) tmg_grammar_parse
, 2, 0, 0);
3995 scm_new_procedure ("parse-texmacs", (FN
) tmg_parse_texmacs
, 1, 0, 0);
3996 scm_new_procedure ("serialize-texmacs", (FN
) tmg_serialize_texmacs
, 1, 0, 0);
3997 scm_new_procedure ("parse-texmacs-snippet", (FN
) tmg_parse_texmacs_snippet
, 1, 0, 0);
3998 scm_new_procedure ("serialize-texmacs-snippet", (FN
) tmg_serialize_texmacs_snippet
, 1, 0, 0);
3999 scm_new_procedure ("texmacs->stm", (FN
) tmg_texmacs_2stm
, 1, 0, 0);
4000 scm_new_procedure ("stm->texmacs", (FN
) tmg_stm_2texmacs
, 1, 0, 0);
4001 scm_new_procedure ("stm-snippet->texmacs", (FN
) tmg_stm_snippet_2texmacs
, 1, 0, 0);
4002 scm_new_procedure ("cpp-texmacs->verbatim", (FN
) tmg_cpp_texmacs_2verbatim
, 3, 0, 0);
4003 scm_new_procedure ("cpp-verbatim-snippet->texmacs", (FN
) tmg_cpp_verbatim_snippet_2texmacs
, 3, 0, 0);
4004 scm_new_procedure ("cpp-verbatim->texmacs", (FN
) tmg_cpp_verbatim_2texmacs
, 3, 0, 0);
4005 scm_new_procedure ("parse-latex", (FN
) tmg_parse_latex
, 1, 0, 0);
4006 scm_new_procedure ("parse-latex-document", (FN
) tmg_parse_latex_document
, 1, 0, 0);
4007 scm_new_procedure ("latex->texmacs", (FN
) tmg_latex_2texmacs
, 1, 0, 0);
4008 scm_new_procedure ("parse-xml", (FN
) tmg_parse_xml
, 1, 0, 0);
4009 scm_new_procedure ("parse-html", (FN
) tmg_parse_html
, 1, 0, 0);
4010 scm_new_procedure ("parse-bib", (FN
) tmg_parse_bib
, 1, 0, 0);
4011 scm_new_procedure ("upgrade-tmml", (FN
) tmg_upgrade_tmml
, 1, 0, 0);
4012 scm_new_procedure ("string->url", (FN
) tmg_string_2url
, 1, 0, 0);
4013 scm_new_procedure ("url", (FN
) tmg_url
, 2, 0, 0);
4014 scm_new_procedure ("url-system", (FN
) tmg_url_system
, 1, 0, 0);
4015 scm_new_procedure ("url-none", (FN
) tmg_url_none
, 0, 0, 0);
4016 scm_new_procedure ("url-any", (FN
) tmg_url_any
, 0, 0, 0);
4017 scm_new_procedure ("url-wildcard", (FN
) tmg_url_wildcard
, 1, 0, 0);
4018 scm_new_procedure ("url-parent", (FN
) tmg_url_parent
, 0, 0, 0);
4019 scm_new_procedure ("url-append", (FN
) tmg_url_append
, 2, 0, 0);
4020 scm_new_procedure ("url-or", (FN
) tmg_url_or
, 2, 0, 0);
4021 scm_new_procedure ("url->string", (FN
) tmg_url_2string
, 1, 0, 0);
4022 scm_new_procedure ("url-none?", (FN
) tmg_url_noneP
, 1, 0, 0);
4023 scm_new_procedure ("url-rooted-web?", (FN
) tmg_url_rooted_webP
, 1, 0, 0);
4024 scm_new_procedure ("url-concat?", (FN
) tmg_url_concatP
, 1, 0, 0);
4025 scm_new_procedure ("url-or?", (FN
) tmg_url_orP
, 1, 0, 0);
4026 scm_new_procedure ("url-ref", (FN
) tmg_url_ref
, 2, 0, 0);
4027 scm_new_procedure ("url-tail", (FN
) tmg_url_tail
, 1, 0, 0);
4028 scm_new_procedure ("url-suffix", (FN
) tmg_url_suffix
, 1, 0, 0);
4029 scm_new_procedure ("url-glue", (FN
) tmg_url_glue
, 2, 0, 0);
4030 scm_new_procedure ("url-unglue", (FN
) tmg_url_unglue
, 2, 0, 0);
4031 scm_new_procedure ("url-relative", (FN
) tmg_url_relative
, 2, 0, 0);
4032 scm_new_procedure ("url-expand", (FN
) tmg_url_expand
, 1, 0, 0);
4033 scm_new_procedure ("url-factor", (FN
) tmg_url_factor
, 1, 0, 0);
4034 scm_new_procedure ("url-delta", (FN
) tmg_url_delta
, 2, 0, 0);
4035 scm_new_procedure ("url-secure?", (FN
) tmg_url_secureP
, 1, 0, 0);
4036 scm_new_procedure ("url-descends?", (FN
) tmg_url_descendsP
, 2, 0, 0);
4037 scm_new_procedure ("url-complete", (FN
) tmg_url_complete
, 2, 0, 0);
4038 scm_new_procedure ("url-resolve", (FN
) tmg_url_resolve
, 2, 0, 0);
4039 scm_new_procedure ("url-resolve-in-path", (FN
) tmg_url_resolve_in_path
, 1, 0, 0);
4040 scm_new_procedure ("url-exists?", (FN
) tmg_url_existsP
, 1, 0, 0);
4041 scm_new_procedure ("url-exists-in-path?", (FN
) tmg_url_exists_in_pathP
, 1, 0, 0);
4042 scm_new_procedure ("url-exists-in-tex?", (FN
) tmg_url_exists_in_texP
, 1, 0, 0);
4043 scm_new_procedure ("url-concretize", (FN
) tmg_url_concretize
, 1, 0, 0);
4044 scm_new_procedure ("url-materialize", (FN
) tmg_url_materialize
, 2, 0, 0);
4045 scm_new_procedure ("url-test?", (FN
) tmg_url_testP
, 2, 0, 0);
4046 scm_new_procedure ("url-regular?", (FN
) tmg_url_regularP
, 1, 0, 0);
4047 scm_new_procedure ("url-directory?", (FN
) tmg_url_directoryP
, 1, 0, 0);
4048 scm_new_procedure ("url-link?", (FN
) tmg_url_linkP
, 1, 0, 0);
4049 scm_new_procedure ("url-newer?", (FN
) tmg_url_newerP
, 2, 0, 0);
4050 scm_new_procedure ("url-last-modified", (FN
) tmg_url_last_modified
, 1, 0, 0);
4051 scm_new_procedure ("url-temp", (FN
) tmg_url_temp
, 0, 0, 0);
4052 scm_new_procedure ("url-scratch", (FN
) tmg_url_scratch
, 3, 0, 0);
4053 scm_new_procedure ("url-scratch?", (FN
) tmg_url_scratchP
, 1, 0, 0);
4054 scm_new_procedure ("string-save", (FN
) tmg_string_save
, 2, 0, 0);
4055 scm_new_procedure ("string-load", (FN
) tmg_string_load
, 1, 0, 0);
4056 scm_new_procedure ("system-move", (FN
) tmg_system_move
, 2, 0, 0);
4057 scm_new_procedure ("system-copy", (FN
) tmg_system_copy
, 2, 0, 0);
4058 scm_new_procedure ("system-remove", (FN
) tmg_system_remove
, 1, 0, 0);
4059 scm_new_procedure ("system-mkdir", (FN
) tmg_system_mkdir
, 1, 0, 0);
4060 scm_new_procedure ("system-search-score", (FN
) tmg_system_search_score
, 2, 0, 0);
4061 scm_new_procedure ("system-1", (FN
) tmg_system_1
, 2, 0, 0);
4062 scm_new_procedure ("system-2", (FN
) tmg_system_2
, 3, 0, 0);
4063 scm_new_procedure ("tmfs-set", (FN
) tmg_tmfs_set
, 2, 0, 0);
4064 scm_new_procedure ("tmfs-reset", (FN
) tmg_tmfs_reset
, 2, 0, 0);
4065 scm_new_procedure ("tmfs-get", (FN
) tmg_tmfs_get
, 1, 0, 0);
4066 scm_new_procedure ("tmfs-new-save", (FN
) tmg_tmfs_new_save
, 2, 0, 0);
4067 scm_new_procedure ("tmfs-new-remove", (FN
) tmg_tmfs_new_remove
, 1, 0, 0);
4068 scm_new_procedure ("tmfs-new-load", (FN
) tmg_tmfs_new_load
, 1, 0, 0);
4069 scm_new_procedure ("tmfs-create-ressource", (FN
) tmg_tmfs_create_ressource
, 0, 0, 0);
4070 scm_new_procedure ("tmfs-ressource-head", (FN
) tmg_tmfs_ressource_head
, 1, 0, 0);
4071 scm_new_procedure ("tmfs-ressource-versions", (FN
) tmg_tmfs_ressource_versions
, 1, 0, 0);
4072 scm_new_procedure ("tmfs-save-ressource", (FN
) tmg_tmfs_save_ressource
, 3, 0, 0);
4073 scm_new_procedure ("tmfs-load-ressource-file", (FN
) tmg_tmfs_load_ressource_file
, 1, 0, 0);
4074 scm_new_procedure ("tmfs-load-ressource-properties", (FN
) tmg_tmfs_load_ressource_properties
, 1, 0, 0);
4075 scm_new_procedure ("tmfs-create-user", (FN
) tmg_tmfs_create_user
, 1, 0, 0);
4076 scm_new_procedure ("tmfs-search-user", (FN
) tmg_tmfs_search_user
, 1, 0, 0);
4077 scm_new_procedure ("tmfs-set-user", (FN
) tmg_tmfs_set_user
, 1, 0, 0);
4078 scm_new_procedure ("tmfs-get-user", (FN
) tmg_tmfs_get_user
, 0, 0, 0);
4079 scm_new_procedure ("tmfs-allows?", (FN
) tmg_tmfs_allowsP
, 2, 0, 0);
4080 scm_new_procedure ("tmfs-set-attributes", (FN
) tmg_tmfs_set_attributes
, 2, 0, 0);
4081 scm_new_procedure ("tmfs-get-attributes", (FN
) tmg_tmfs_get_attributes
, 1, 0, 0);
4082 scm_new_procedure ("tmfs-add-attributes", (FN
) tmg_tmfs_add_attributes
, 2, 0, 0);
4083 scm_new_procedure ("tmfs-remove-attributes", (FN
) tmg_tmfs_remove_attributes
, 2, 0, 0);
4084 scm_new_procedure ("tmfs-change-attributes", (FN
) tmg_tmfs_change_attributes
, 2, 0, 0);
4085 scm_new_procedure ("tmfs-query", (FN
) tmg_tmfs_query
, 1, 0, 0);
4086 scm_new_procedure ("solutions->collection", (FN
) tmg_solutions_2collection
, 2, 0, 0);
4087 scm_new_procedure ("tmfs-create-file", (FN
) tmg_tmfs_create_file
, 2, 0, 0);
4088 scm_new_procedure ("tmfs-create-file-in", (FN
) tmg_tmfs_create_file_in
, 3, 0, 0);
4089 scm_new_procedure ("tmfs-search-file", (FN
) tmg_tmfs_search_file
, 1, 0, 0);
4090 scm_new_procedure ("tmfs-save-file", (FN
) tmg_tmfs_save_file
, 2, 0, 0);
4091 scm_new_procedure ("tmfs-load-file", (FN
) tmg_tmfs_load_file
, 1, 0, 0);
4092 scm_new_procedure ("tmfs-create-project", (FN
) tmg_tmfs_create_project
, 1, 0, 0);
4093 scm_new_procedure ("tmfs-search-project", (FN
) tmg_tmfs_search_project
, 1, 0, 0);
4094 scm_new_procedure ("tmfs-get-file-projects", (FN
) tmg_tmfs_get_file_projects
, 1, 0, 0);
4095 scm_new_procedure ("tmfs-get-project-files", (FN
) tmg_tmfs_get_project_files
, 1, 0, 0);
4096 scm_new_procedure ("tmfs-create-branch", (FN
) tmg_tmfs_create_branch
, 2, 0, 0);
4097 scm_new_procedure ("tmfs-set-root", (FN
) tmg_tmfs_set_root
, 2, 0, 0);
4098 scm_new_procedure ("tmfs-get-root", (FN
) tmg_tmfs_get_root
, 1, 0, 0);
4099 scm_new_procedure ("tmfs-import", (FN
) tmg_tmfs_import
, 1, 0, 0);
4100 scm_new_procedure ("tmfs-export", (FN
) tmg_tmfs_export
, 1, 0, 0);
4101 scm_new_procedure ("server-start", (FN
) tmg_server_start
, 0, 0, 0);
4102 scm_new_procedure ("server-stop", (FN
) tmg_server_stop
, 0, 0, 0);
4103 scm_new_procedure ("server-read", (FN
) tmg_server_read
, 1, 0, 0);
4104 scm_new_procedure ("server-write", (FN
) tmg_server_write
, 2, 0, 0);
4105 scm_new_procedure ("client-start", (FN
) tmg_client_start
, 1, 0, 0);
4106 scm_new_procedure ("client-stop", (FN
) tmg_client_stop
, 0, 0, 0);
4107 scm_new_procedure ("client-read", (FN
) tmg_client_read
, 0, 0, 0);
4108 scm_new_procedure ("client-write", (FN
) tmg_client_write
, 1, 0, 0);
4109 scm_new_procedure ("enter-secure-mode", (FN
) tmg_enter_secure_mode
, 0, 0, 0);
4110 scm_new_procedure ("connection-start", (FN
) tmg_connection_start
, 2, 0, 0);
4111 scm_new_procedure ("connection-status", (FN
) tmg_connection_status
, 2, 0, 0);
4112 scm_new_procedure ("connection-write", (FN
) tmg_connection_write
, 3, 0, 0);
4113 scm_new_procedure ("connection-cmd", (FN
) tmg_connection_cmd
, 3, 0, 0);
4114 scm_new_procedure ("connection-eval", (FN
) tmg_connection_eval
, 3, 0, 0);
4115 scm_new_procedure ("connection-interrupt", (FN
) tmg_connection_interrupt
, 2, 0, 0);
4116 scm_new_procedure ("connection-stop", (FN
) tmg_connection_stop
, 2, 0, 0);
4117 scm_new_procedure ("widget-hmenu", (FN
) tmg_widget_hmenu
, 1, 0, 0);
4118 scm_new_procedure ("widget-vmenu", (FN
) tmg_widget_vmenu
, 1, 0, 0);
4119 scm_new_procedure ("widget-tmenu", (FN
) tmg_widget_tmenu
, 2, 0, 0);
4120 scm_new_procedure ("widget-separator", (FN
) tmg_widget_separator
, 1, 0, 0);
4121 scm_new_procedure ("widget-menu-group", (FN
) tmg_widget_menu_group
, 2, 0, 0);
4122 scm_new_procedure ("widget-pulldown-button", (FN
) tmg_widget_pulldown_button
, 2, 0, 0);
4123 scm_new_procedure ("widget-pullright-button", (FN
) tmg_widget_pullright_button
, 2, 0, 0);
4124 scm_new_procedure ("widget-menu-button", (FN
) tmg_widget_menu_button
, 5, 0, 0);
4125 scm_new_procedure ("widget-balloon", (FN
) tmg_widget_balloon
, 2, 0, 0);
4126 scm_new_procedure ("widget-empty", (FN
) tmg_widget_empty
, 0, 0, 0);
4127 scm_new_procedure ("widget-text", (FN
) tmg_widget_text
, 4, 0, 0);
4128 scm_new_procedure ("widget-xpm", (FN
) tmg_widget_xpm
, 1, 0, 0);
4129 scm_new_procedure ("widget-box", (FN
) tmg_widget_box
, 5, 0, 0);
4130 scm_new_procedure ("object->promise-widget", (FN
) tmg_object_2promise_widget
, 1, 0, 0);
4131 scm_new_procedure ("bib-add-period", (FN
) tmg_bib_add_period
, 1, 0, 0);
4132 scm_new_procedure ("bib-upcase-first", (FN
) tmg_bib_upcase_first
, 1, 0, 0);
4133 scm_new_procedure ("bib-locase", (FN
) tmg_bib_locase
, 1, 0, 0);
4134 scm_new_procedure ("bib-upcase", (FN
) tmg_bib_upcase
, 1, 0, 0);
4135 scm_new_procedure ("bib-default", (FN
) tmg_bib_default
, 1, 0, 0);
4136 scm_new_procedure ("bib-purify", (FN
) tmg_bib_purify
, 1, 0, 0);
4137 scm_new_procedure ("bib-text-length", (FN
) tmg_bib_text_length
, 1, 0, 0);
4138 scm_new_procedure ("bib-prefix", (FN
) tmg_bib_prefix
, 2, 0, 0);
4139 scm_new_procedure ("bib-empty?", (FN
) tmg_bib_emptyP
, 2, 0, 0);
4140 scm_new_procedure ("bib-field", (FN
) tmg_bib_field
, 2, 0, 0);
4141 scm_new_procedure ("bib-abbreviate", (FN
) tmg_bib_abbreviate
, 3, 0, 0);