[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: valid_pointer_p
From: |
Eli Zaretskii |
Subject: |
Re: valid_pointer_p |
Date: |
Sat, 12 Aug 2006 14:06:25 +0300 |
> Cc: address@hidden
> From: address@hidden (Kim F. Storm)
> Date: Sat, 12 Aug 2006 00:58:05 +0200
>
> Eli Zaretskii <address@hidden> writes:
>
> > Well, I figured that much. But we do know the length of each object,
> > so we could validate exactly what is needed, right? Just add another
> > argument to valid_pointer_p that tells it how many bytes to validate.
>
> The problem is that you have to deref the pointer to know the length
> of the object...
??? Don't we have macros, like INTEGERP, SUBRP, etc. to do that
without dereferencing? The length of the primitive Lisp types is
known, right?
Even if you are right, dereferencing a pointer accesses a region in
memory whose length is known in advance, so at most we will need to
call valid_pointer_p twice.
- Re: valid_pointer_p, Eli Zaretskii, 2006/08/05
- Re: valid_pointer_p, Eli Zaretskii, 2006/08/05
- Re: valid_pointer_p, Kim F. Storm, 2006/08/05
- Re: valid_pointer_p, Eli Zaretskii, 2006/08/05
- Re: valid_pointer_p, Kim F. Storm, 2006/08/11
- Re: valid_pointer_p,
Eli Zaretskii <=
- Re: valid_pointer_p, Andreas Schwab, 2006/08/12
- Re: valid_pointer_p, Eli Zaretskii, 2006/08/12
- Re: valid_pointer_p, Kim F. Storm, 2006/08/12
- Re: valid_pointer_p, Eli Zaretskii, 2006/08/12