Parent Directory | Revision Log
|Links to HEAD:||(view) (annotate)|
|Links to release-18e-branch:||(view) (annotate)|
Get rid of a compiler warning about an unused variable.
* src/code/macros.lisp (dolist): Add original declaration to the form evaluating the result form, for the case where VAR is declared special.
For CASE and friends, the OTHERWISE clause is an OTHERWISE clause only if it's the last clause. Otherwise, it's just a normal clause.
Generalized function names. * code/macros.lisp (evaluate-declaration-context): Use valid-function-name-p.
Generalized function names. * code/fdefinition.lisp (*valid-function-names*): New variable. (%define-function-name-syntax, valid-function-name-p): New functions. (define-function-name-syntax): New macro. (toplevel): Define the syntax of setf function names. (fdefinition-object): Use valid-function-name-p. * compiler/proclaim.lisp (check-function-name): Use valid-function-name-p. * compiler/ir1tran.lisp (function): Use valid-function-name-p. * code/profile.lisp (%report-times): Use valid-function-name-p. * code/macros.lisp (defun): Use valid-function-name-p. * code/eval.lisp (eval): Use valid-function-name-p. * code/describe.lisp (describe-aux, describe-function-name): Use valid-function-name-p. * code/exports.lisp ("EXTENSIONS"): Add define-function-name-syntax and valid-function-name-p.
From Eric Marsden: fix typos in comments, signal more specific error types, remove some stale code, fix a few compiler warnings in the runtime.
PSETQ was not handling symbol macros. Use PSETF to implement PSETQ. (From SBCL.)
Fix typo in MULTIPLE-VALUE-SETQ. Noted by Eric Marsden.
Reinstate the check for properly formed vars list.
MULTIPLE-VALUE-SETQ was mishandling variables that were symbol macros. Use the version from SBCL.
DOLIST was not properly establishing a tagbody for the body, as shown by the gcl ANSI test suite. Use the version from SBCL.
The previous checkin adding multiple-values support to push and pushnew screwed up the evaluation order. Fix that, and get the evaluation order correct for multiple-values too.
PUSH and PUSHNEW support multiple values as places.
Reinstate the special case handling when PLACE is a symbol (and not a macro or symbol-macro). This allows use of push/pushnew in kernel.core again. Solution suggested by Christophe Rhodes.
o Fix pushnew evaluation order. (Fix provided by Gerd Moellman.) o For push, pushnew, and pop, we can't shortcut get-setf-method because even though place might be a symbol, it might be from a symbol-macrolet. Always use get-setf-method.
CTYPECASE and ETYPECASE also accept T and OTHERWISE as keys, just like CCASE and ECASE.
ECASE and CCASE are allowed to use T and OTHERWISE as regular keys instead of as the otherwise-clause. Print a simple warning about this being bad style.
SHIFTF supports multiple-values, as required by ANSI CL.
Changed compile-time behavior of DEFCONSTANT to work like DEFMACRO and DEFINE-COMPILER-MACRO. This fixes buggy behavior when DEFCONSTANT is not at top level.
dotimes fix to enable optimization in cases of nested dotimes with compile-time-known upper bound. Too bad the compiler can't figure this out itself. (From Martin Cracauer.)
From Pekka P. Pirinen via c.l.l Allow only one doc-string in system:parse-body.
From Tim Moore: Arrange for ANSI behaviour regarding DEFMACRO processing. It has compile-time effect only at top level now.
Change calls to obsolete define-setf-method to define-setf-expander.
First step in removing some CLtL1/CLtL2 exports from COMMON-LISP package.
Fixes to make proclaim and declaim work as in ANSI spec.
Really remove the macro for LOCALLY, which is now a special form.
Remove the macro for LOCALLY, which is now a special form; from Raymond Toy.
Add support for define-symbol-macro.
Reworking of the values-type system to overcome a number of inconsistencies causing problems: o Redefine coerce-to-values to convert a single value type into (values type), rather than the former definition (values type &rest t). A single value type such as fixnum is now equivalent to (values fixnum). Values-type-union and values-type-intersection will canonicalise values types with a single value such as (values fixnum) back to a single value type such as fixnum. o Now when the compiler makes assertions for the first value of continuations that may be generating multiple values it asserts the type as (values type &rest t), or as (value &optional type &rest t) if it is not sure that the continuation does generate a value. o Enhance the type check generation to better handle the now common values types with optional and rest arguments. Add the new function Values-types-asserted which converts asserted optional and rest arguments to required arguments that have been proven to be delivered, Thus an assertion such as (values &optional fixnum &rest t) will generate a fixnum type check if the proven type if (values t). o The compiler is now far more likely to pickup attempts to use an assertion to select a subset of values. For example (the (values fixnum) (values x y)) will generated a compiler warning. o Update single values type assertions where appropriate to clarify that the received values may be optional or that multiple values may be received. For example, a macro argument which had been asserted to be a list via (the list ,...) would now be asserted to be (the (values &optional list &rest t)) etc. o Have the IR1 translator for THE convert single value types into (values &optional type &rest t) so that code such as (the fixnum (values x y)) will still work acceptably. This does not restrict the possible type assertions as the values types may be used and are not modified.
For the various case macros, do not generate an error during macro-expansion when there are no cases as this appears unnecessary according to the ANSI CL spec; from Raymond Toy.
Define SAP-ref-64 setf function macros on all ports.
Fix PSETQ to return Nil; from Peter Van Eynde.
Define a VALUES setf expander. Update references to the obsolete define-setf-method to define-setf-expander
Fixes and improvements to July-14 commit dealing with condition types in calls to error. From Douglas.
This revision merges in many of the fixes for ANSI condition types in various calls to ERROR. Those easily handled by using new condition types simple-file-error and simple-program-error are included. The only functional change here is that the function CHARACTER no longer accepts an integer argument so as to be ANSI compliant. This may break some code.
PSETQ should return nil. Fix from Peter VanEynde.
Fix doc. typos "the the" -> "the".
Minor change to inhibit compiler notes about dead code removal when WITH-INPUT-FROM-STRING was called with an END argument.
Change %set-documentation to (setf documentation) to help operation with PCL loaded.
New shiftf from Bruno Haible fixes problem with duplicated places.
Prevent warnings from eg (case key (t))
Add ANSI lambda macro
initial post 1.3.7 merge
Werkowskis source kit 1.03.7
Fix headed boilerplate.
Added: (defsetf sap-ref-64 %set-sap-ref-64) and (defsetf signed-sap-ref-64 %set-signed-sap-ref-64) for the Alpha.
changed %deftype to use interface functions instead of (info type class ...)
Changed uses of RESTART-CASE to be detectable calls to error.
format-string -> format-control
Changed renamed get-setf-method-multiple-value to get-setf-expansion and define-setf-method to define-setf-expander. The old names are also defined for backward compatibility.
Really really fixed get-setf-method-multiple-value for local macros. Also, in the recursive calls, people were not propagating the environment through, and in some places were not recursing with the multiple-value version.
Rip out NS-BOOT conditionals.
new structure branch & tuning, see new_struct
Changed DOLIST not to introduce the spurious let around the result form when there is no result form. Also, just read the var in the spurious let, instead of using IGNORABLE, since the var might be special.
In %defsetf, don't bother creating temp vars for constants. This is necessary so that keywords stay keywords, and are not changed to gensyms.
Changed GET-SETF-METHOD-MULTIPLE-VALUE to try to macroexpand-1 the form when it's an atom in case it's a symbol-macro as per the X3J13 cleanup SYMBOL-MACROLET-SEMANTICS:SPECIAL-FORM. Now you can safely INCF, etc. symbol macros where the macroexpansion has side effects.
Fixed SETF of GETF to evaluate the various parts in the correct order as per X3J13 cleanup SETF-SUB-METHODS:DELAYED-ACCESS-STORES.
Fixed bug in NTH-VALUE where it expanded into bogus code unless ``n'' was a constant integer.
X3J13 cleanup SETF-MULTIPLE-STORE-VARIABLES: Extend the semantics of the macros SETF, PSETF, SHIFTF, ROTATEF, and ASSERT to allow "places" whose SETF methods have more than one "store variable". In such cases, the macros accept as many values from the newvalue form as there are store variables. As usual, extra values are ignored and missing values default to NIL. Extend the long form of DEFSETF to allow the specification of more than one "store variable", with the obvious semantics. Clarify that GET-SETF-METHOD signals an error if there would be more than one store-variable.
Changed the DEFSETF for SYMBOL-FUNCTION and SYMBOL-PLIST to FSET and %SET-SYMBOL-PLIST.
Changed all SAP-REF-mumble functions to take the offset in bytes.
Merged Lange's enhancement to NTH-VALUE; it now doesn't cons for non-constant N less than 3.
Fixed get-setf-method to only inhibit for local functions, not local macros too. Removed some bootstrapping code.
Added :PACKAGE constext declaration.
Frobbed SETF a bit more. We still always call GET-SETF-METHOD to let it do its thing, but if the result is just a call to the inverse, then directly call the inverse w/o any let binding. This makes setf inverses usable without the full interpreter.
Changed DEFSETF and DEFINE-SETF-METHOD to call a common subfunction, %DEFINE-SETF-MACRO, which checks for any existing definition as a slot accessor or other setf function. Changed GET-SETF-METHOD to ignore setf macros (always global) when there is a local macro or function. Changed SETF to always call GET-SETF-METHOD, instead of special-casing setf inverses. I was tired to keeping the duplicated code consistent. Generalized the special casing in SETF of APPLY. We now go for the SETF function when called on any symbol in the Lisp package. Now SETF of APPLY will work on all Common Lisp functions, instead of just two.
Fixed WITH-COMPILATION-UNIT keyword to be :OVERRIDE instead of :FORCE. Also, added :OPTIMIZE and :OPTIMIZE-INTERFACE for changing the "global" compilation policy within the dynamic extent. Added :CONTEXT-DECLARATIONS, which provides a way to insert declarations conditional on pattern mathcing of the context in which the definition appears. So you can compiler all external functions safe, or whatever.
New file header with RCS header FILE-COMMENT.
ignore => ignore
Added Dan's NTH-VALUE macro.
In destructuring-bind, pass NIL to parse-defmacro as the name, 'cause there is no name.
Ack. Maybe this time I got defsetter correct.
Changed a use of analyze1 to parse-defmacro.
Changed to use Blaine's parse-defmacro. Stripped out lots of bootstrapping code. Ripped out loop, 'cause the full blown loop macro now exists in it's own file.
Made DEFTYPE warn if redefining a structure and flame if a primitive type. Fixed it to test FBOUNDP on the right symbol so that %NOTE-TYPE-DEFINED can get called. Changed %%DEFUN to use DEFINE-FUNCTION-NAME and also to blow away any assumed type info.
Random stuff to get define-setf-method to cross compile.
Moved MIPS branch onto trunk; no merge necessary.
Flushed commented-out PUTF macro. Changed %PRIMITIVE PUTF to be %PUTF so that we can interpret SETF GETF.
Added UNSIGNED-BYTE declarations in DOTIMES to help type inference.
Changed DEFTYPE to expand into %DEFTYPE, and made %DEFTYPE call %NOTE-TYPE-DEFINED.
Merged non-descriptor changes: revision 184.108.40.206 date: 90/04/09 00:00:09; author: ram; state: Exp; lines added/del: 1/1 Fixed typo. ---------------------------- revision 220.127.116.11 date: 90/03/27 13:18:14; author: ram; state: Exp; lines added/del: 11/6 Changed WITH-COMPILATION-UNIT to hack delayed unknown type warnings. We define a handler for PARSE-UNKNOWN-TYPE.
.../systems-work/code/macros.lisp, 10-Feb-90 13:06:45, Edit by MBB. WITH-OUTPUT-TO-STRING-APPEND-STYLE: Changed the doc-string to exploit the new standard that was already there. WITH-OPEN-FILE-DOES-NOT-EXIST: Modified WITH-OPEN-FILE to not execute the body when OPEN fails. This is the new standard.
Added some missing commas in DEFTYPE.
Made %DEFMACRO set the interpreted function name to "DEFMACRO <name>" rather than just <name>. Also, changed %DEFUN to set the function name.
Changed DEFTYPE to use INFO instead of plist hackery.
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.
|Powered by ViewVC 1.1.5|