for mmap objcodes, store the fd in the third word, as a scheme int
authorAndy Wingo <wingo@pobox.com>
Thu, 27 Jan 2011 12:11:02 +0000 (13:11 +0100)
committerAndy Wingo <wingo@pobox.com>
Thu, 27 Jan 2011 12:11:02 +0000 (13:11 +0100)
commit6ce3666ff2a8f73a6abab17535dc27051f8ab8b6
tree8d8e35e367d8740011b2cbb37336125e5d868510
parentf9654187b1ff0e20dfcb66da963eae62f4d03be1
for mmap objcodes, store the fd in the third word, as a scheme int

This leaves space for native code.

* libguile/objcodes.h (SCM_OBJCODE_NATIVE_CODE)
  (SCM_SET_OBJCODE_NATIVE_CODE): Reserve the fourth word of objcode for
  "native code", whatever that means.

* libguile/objcodes.c: Update a comment.
  (make_objcode_by_mmap): Put the fd in the third word.
libguile/objcodes.c
libguile/objcodes.h