mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-19 02:00:26 +02:00
* deprecated.h, deprecated.c, numbers.h (SCM_INUMP, SCM_NINUMP,
SCM_INUM): Deprecated by reenaming them to SCM_I_INUMP, SCM_I_NINUMP and SCM_I_INUM, respectively and adding deprecated versions to deprecated.h and deprecated.c. Changed all uses to either use the SCM_I_ variants or scm_is_*, scm_to_*, or scm_from_*, as appropriate.
This commit is contained in:
parent
928e0f4210
commit
e11e83f3d9
59 changed files with 840 additions and 1172 deletions
|
@ -240,7 +240,7 @@ scm_wrong_type_arg (const char *subr, int pos, SCM bad_value)
|
|||
(pos == 0) ? "Wrong type argument: ~S"
|
||||
: "Wrong type argument in position ~A: ~S",
|
||||
(pos == 0) ? scm_list_1 (bad_value)
|
||||
: scm_list_2 (SCM_I_MAKINUM (pos), bad_value),
|
||||
: scm_list_2 (scm_from_int (pos), bad_value),
|
||||
SCM_BOOL_F);
|
||||
}
|
||||
|
||||
|
@ -257,7 +257,7 @@ scm_wrong_type_arg_msg (const char *subr, int pos, SCM bad_value, const char *sz
|
|||
scm_error (scm_arg_type_key,
|
||||
subr,
|
||||
"Wrong type argument in position ~A (expecting ~A): ~S",
|
||||
scm_list_3 (SCM_I_MAKINUM (pos), msg, bad_value),
|
||||
scm_list_3 (scm_from_int (pos), msg, bad_value),
|
||||
SCM_BOOL_F);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue