Implement user-defined unparser methods for entities.
authorTaylor R Campbell <campbell@mumble.net>
Thu, 14 Oct 2010 04:50:52 +0000 (04:50 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Thu, 14 Oct 2010 04:50:52 +0000 (04:50 +0000)
commit06adf6b3ff28ba2d90825f93ee8dfacd0447c3f8
tree984fdf9a255753de7e2b9ee8f8ba81f3fc4d6b4b
parentd07d687eb3cb0c9a34bb39bd78c13a89960b840f
Implement user-defined unparser methods for entities.

New DEFINE-STRUCTURE option PRINT-ENTITY-PROCEDURE is like
PRINT-PROCEDURE, except that the second argument to the procedure
is not a structure instance itself but an entity whose extra is a
structure instance.

New procedure SET-RECORD-TYPE-ENTITY-UNPARSER-METHOD! is like
SET-RECORD-TYPE-UNPARSER-METHOD! with the same difference.

New optional argument to MAKE-RECORD-TYPE specifies an entity
unparser method.

Existing code should be unaffected by the changes, including
existing compiled code that used DEFINE-STRUCTURE.
src/runtime/defstr.scm
src/runtime/record.scm
src/runtime/runtime.pkg
src/runtime/unpars.scm