[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

make-regexp flag error check

From: Kevin Ryde
Subject: make-regexp flag error check
Date: Sat, 24 Jul 2004 09:15:04 +1000
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)

This would be for 1.6, the new scm_to_int fixes it in the head.

        * regex-posix.c (scm_make_regexp): Use SCM_VALIDATE_INT_COPY on flag
        arguments, previously type was not checked.

In particular this raises an error if you pass regexp/icase etc as a
symbol instead of realizing it's a variable.  I think the docs can be
amended to make that clearer too.

Attachment: regex-posix.c.make-args.diff
Description: Text document

Attachment: regexp.test.make-args.diff
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]