1.0.46.9: detect invalid use of :PREDICATE with DEFSTRUCT :TYPE
authorNikodemus Siivola <nikodemus@random-state.net>
Sun, 20 Feb 2011 10:48:32 +0000 (10:48 +0000)
committerNikodemus Siivola <nikodemus@random-state.net>
Sun, 20 Feb 2011 10:48:32 +0000 (10:48 +0000)
commit3120740c3569735b00123b94b61679f56e253ea6
treec7fa90bffbc13c365d8ace57c78fe4ae7f86215b
parente1ed4073f01962ff46a227ffb8a852d42070dee6
1.0.46.9: detect invalid use of :PREDICATE with DEFSTRUCT :TYPE

 Based on patch by Roman Marynchak, lp#520607.

 In case there are :TYPE and :PREDICATE options specified, :NAMED DEFSTRUCT
 option should be specified too. To check this, add the flag for :PREDICATE
 option in the function SB-KERNEL::PARSE-DEFSTRUCT-NAME-AND-OPTIONS, and
 verify that the flag is set, :TYPEP is set but :NAMED option is not provided.

 Also includes the regression test.
NEWS
src/code/defstruct.lisp
tests/defstruct.impure.lisp
version.lisp-expr