mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 03:30:27 +02:00
objcodes.c comments
* libguile/objcodes.c: Comments from Noah Lavine
This commit is contained in:
parent
9a690dfb45
commit
4b02bf47f4
1 changed files with 12 additions and 2 deletions
|
@ -33,8 +33,10 @@
|
|||
#include "programs.h"
|
||||
#include "objcodes.h"
|
||||
|
||||
/* SCM_OBJCODE_COOKIE is defined in _scm.h */
|
||||
/* The length of the header must be a multiple of 8 bytes. */
|
||||
/* SCM_OBJCODE_COOKIE, defined in _scm.h, is a magic value prepended
|
||||
to objcode on disk but not in memory.
|
||||
|
||||
The length of the header must be a multiple of 8 bytes. */
|
||||
verify (((sizeof (SCM_OBJCODE_COOKIE) - 1) & 7) == 0);
|
||||
|
||||
|
||||
|
@ -42,6 +44,14 @@ verify (((sizeof (SCM_OBJCODE_COOKIE) - 1) & 7) == 0);
|
|||
* Objcode type
|
||||
*/
|
||||
|
||||
/* The words in an objcode SCM object are as follows:
|
||||
- scm_tc7_objcode | the flags for this objcode
|
||||
- the struct scm_objcode C object
|
||||
- the parent of this objcode, if this is a slice, or #f if none
|
||||
- the file descriptor this objcode came from if this was mmaped,
|
||||
or 0 if none
|
||||
*/
|
||||
|
||||
static SCM
|
||||
make_objcode_by_mmap (int fd)
|
||||
#define FUNC_NAME "make_objcode_by_mmap"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue