mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-24 20:30:28 +02:00
* alist.c, chars.c, dynl.c, net_db.c, numbers.c, unif.c: Use
SCM_NUM2ULONG instead of scm_num2ulong; SCM_NUM2LONG instead of scm_num2long; SCM_WTA instead of scm_wta. Only done for when FUNC_NAME was used as an argument of the macro and the formal argument name was the explicit argument in the old function call. These were just missed in my first pass of changes.
This commit is contained in:
parent
f334710588
commit
4638e08794
6 changed files with 13 additions and 14 deletions
|
@ -1536,7 +1536,7 @@ loop:
|
|||
if (!SCM_UNBNDP (start))
|
||||
{
|
||||
offset =
|
||||
scm_num2long (start, (char *) SCM_ARG3, FUNC_NAME);
|
||||
SCM_NUM2LONG (3, start);
|
||||
|
||||
if (offset < 0 || offset >= cend)
|
||||
scm_out_of_range (FUNC_NAME, start);
|
||||
|
@ -1544,7 +1544,7 @@ loop:
|
|||
if (!SCM_UNBNDP (end))
|
||||
{
|
||||
long tend =
|
||||
scm_num2long (end, (char *) SCM_ARG4, FUNC_NAME);
|
||||
SCM_NUM2LONG (4, end);
|
||||
|
||||
if (tend <= offset || tend > cend)
|
||||
scm_out_of_range (FUNC_NAME, end);
|
||||
|
@ -1647,7 +1647,7 @@ loop:
|
|||
switch SCM_TYP7 (v)
|
||||
{
|
||||
default:
|
||||
badarg1:scm_wta (v, (char *) SCM_ARG1, FUNC_NAME);
|
||||
badarg1:SCM_WTA (1, v);
|
||||
case scm_tc7_smob:
|
||||
SCM_ASRTGO (SCM_ARRAYP (v), badarg1);
|
||||
v = scm_ra2contig (v, 1);
|
||||
|
@ -1694,7 +1694,7 @@ loop:
|
|||
if (!SCM_UNBNDP (start))
|
||||
{
|
||||
offset =
|
||||
scm_num2long (start, (char *) SCM_ARG3, FUNC_NAME);
|
||||
SCM_NUM2LONG (3, start);
|
||||
|
||||
if (offset < 0 || offset >= cend)
|
||||
scm_out_of_range (FUNC_NAME, start);
|
||||
|
@ -1702,7 +1702,7 @@ loop:
|
|||
if (!SCM_UNBNDP (end))
|
||||
{
|
||||
long tend =
|
||||
scm_num2long (end, (char *) SCM_ARG4, FUNC_NAME);
|
||||
SCM_NUM2LONG (4, end);
|
||||
|
||||
if (tend <= offset || tend > cend)
|
||||
scm_out_of_range (FUNC_NAME, end);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue