mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 01:00:20 +02:00
* unif.c, symbols.c, strings.c, stacks.c, random.c, print.c,
posix.c: Eliminated a bunch of SCM_NIMP(..)s that are now redundant with the safer macros. Patch from Dirk Hermann applied by hand. Thanks Dirk! * scm_validate.h: Added SCM_VALIDATE_VECTOR_OR_DVECTOR for some uses in random.c. * ramap.c: whitespace change.
This commit is contained in:
parent
339999c72e
commit
368cf54d89
9 changed files with 24 additions and 37 deletions
|
@ -305,15 +305,13 @@ loop:
|
|||
return nprot || SCM_BOOL(SCM_INUMP(prot) && SCM_INUM(prot)<=0);
|
||||
case scm_tc7_svect:
|
||||
return ( nprot
|
||||
|| (SCM_NIMP (prot)
|
||||
&& SCM_SYMBOLP (prot)
|
||||
|| (SCM_SYMBOLP (prot)
|
||||
&& (1 == SCM_LENGTH (prot))
|
||||
&& ('s' == SCM_CHARS (prot)[0])));
|
||||
#ifdef HAVE_LONG_LONGS
|
||||
case scm_tc7_llvect:
|
||||
return ( nprot
|
||||
|| (SCM_NIMP (prot)
|
||||
&& SCM_SYMBOLP (prot)
|
||||
|| (SCM_SYMBOLP (prot)
|
||||
&& (1 == SCM_LENGTH (prot))
|
||||
&& ('s' == SCM_CHARS (prot)[0])));
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue