[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bugs, bugs, bugs.
From: |
Werner LEMBERG |
Subject: |
Re: Bugs, bugs, bugs. |
Date: |
Mon, 31 Jul 2000 19:29:11 +0200 (CEST) |
> While common practice the current code is hackish.
> It relies on the fact that the NULL pointer is actually
> represented as a zero value (which means all bits zero).
> This is true on most modern machines, but is not guaranteed
> by any standard.
> My suggestion:
> 1) use offsetof if it is available
> 2) make an autoconf test for the validity of the current solution
Since we require an ANSI compiler anyway `offsetof' should be
available...
Werner
- Bugs, bugs, bugs., Werner LEMBERG, 2000/07/31
- Re: Bugs, bugs, bugs., Just van Rossum, 2000/07/31
- Re: Bugs, bugs, bugs., Werner LEMBERG, 2000/07/31
- Re: Bugs, bugs, bugs., Joerg Pommnitz, 2000/07/31
- Re: Bugs, bugs, bugs.,
Werner LEMBERG <=
- Re: Bugs, bugs, bugs., Just van Rossum, 2000/07/31