mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-16 08:40:19 +02:00
* list.h (scm_list_1, scm_list_2, scm_list_3, scm_list_4, scm_list_5,
scm_list_n): New functions. (SCM_LIST0, SCM_LIST1, SCM_LIST2, SCM_LIST3, SCM_LIST4, SCM_LIST5, SCM_LIST6, SCM_LIST7, SCM_LIST8, SCM_LIST9, scm_listify): Deprecated. (lots of files): Use the new functions. * goops.c (CALL_GF1, CALL_GF2, CALL_GF3, CALL_GF4): Use scm_call_N. * strings.c: #include "libguile/deprecation.h".
This commit is contained in:
parent
02d9f38817
commit
1afff62054
38 changed files with 368 additions and 300 deletions
|
@ -973,16 +973,15 @@ SCM_DEFINE (scm_simple_format, "simple-format", 2, 0, 1,
|
|||
start = p + 1;
|
||||
continue;
|
||||
default:
|
||||
scm_misc_error (s_scm_simple_format,
|
||||
"FORMAT: Unsupported format option ~~~A - use (ice-9 format) instead",
|
||||
SCM_LIST1 (SCM_MAKE_CHAR (*p)));
|
||||
SCM_MISC_ERROR ("FORMAT: Unsupported format option ~~~A - use (ice-9 format) instead",
|
||||
scm_list_1 (SCM_MAKE_CHAR (*p)));
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (!SCM_CONSP (args))
|
||||
scm_misc_error (s_scm_simple_format, "FORMAT: Missing argument for ~~~A",
|
||||
SCM_LIST1 (SCM_MAKE_CHAR (*p)));
|
||||
SCM_MISC_ERROR ("FORMAT: Missing argument for ~~~A",
|
||||
scm_list_1 (SCM_MAKE_CHAR (*p)));
|
||||
|
||||
scm_lfwrite (start, p - start - 1, destination);
|
||||
scm_prin1 (SCM_CAR (args), destination, writingp);
|
||||
|
@ -992,8 +991,8 @@ SCM_DEFINE (scm_simple_format, "simple-format", 2, 0, 1,
|
|||
|
||||
scm_lfwrite (start, p - start, destination);
|
||||
if (args != SCM_EOL)
|
||||
scm_misc_error (s_scm_simple_format,
|
||||
"FORMAT: ~A superfluous arguments", SCM_LIST1 (scm_length (args)));
|
||||
SCM_MISC_ERROR ("FORMAT: ~A superfluous arguments",
|
||||
scm_list_1 (scm_length (args)));
|
||||
|
||||
if (fReturnString)
|
||||
answer = scm_strport_to_string (destination);
|
||||
|
@ -1110,7 +1109,7 @@ scm_init_print ()
|
|||
scm_init_opts (scm_print_options, scm_print_opts, SCM_N_PRINT_OPTIONS);
|
||||
vtable = scm_make_vtable_vtable (scm_nullstr, SCM_INUM0, SCM_EOL);
|
||||
layout = scm_make_struct_layout (scm_makfrom0str (SCM_PRINT_STATE_LAYOUT));
|
||||
type = scm_make_struct (vtable, SCM_INUM0, SCM_LIST1 (layout));
|
||||
type = scm_make_struct (vtable, SCM_INUM0, scm_list_1 (layout));
|
||||
scm_set_struct_vtable_name_x (type, scm_str2symbol ("print-state"));
|
||||
print_state_pool = scm_permanent_object (scm_cons (type, SCM_EOL));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue