On Thu, Jan 20, 2000 at 03:11:12PM -0800, Martin Buchholz wrote:
I'm looking at this code:
if (POINTER_TYPE_P (XTYPE (dobj)))
{
char *objp = (char *) LISP_TO_VOID (dobj);
if (objp)
objp += delta;
VOID_TO_LISP (*pobj, objp);
}
Should we ever be storing a NULL pointer?
Yes, we should, because I use interchangeably the "lisp object"
description entry for actual lisp objects and for pointers to lrecords
since, memory-wise, they're identical, and I don't like duplicating
code. There are instances were these pointers are null.
/* Here is code that doesn't use the fact that there is only one
Lisp_Type that is a pointer. It would need to be adjusted if
*pobj could be Qzero_bits. */
Adjust it and you're welcome to do such a change.
OG.