On Oct 31, 2006, at 3:37 PM, Kay-Uwe Kasemir wrote:
Hi:
Not re-defining NULL is good.
The specific fix for alh or other code that uses var-arg, however,
is to ignore the old man pages that might talk about NULL,
and always cast 0 to the specific type:
some_func("widgetWidth", (int) 0,
"callback_arg", (void *) 0,
"num_entries", (long) 0, ...)
For all these, NULL might have worked on 32 bit,
but it won't now.
Yep, but as you pointed out this represents a significant amount of
work (and therefore is unlikely to ever happen).
--
Eric Norum <[email protected]>
Advanced Photon Source
Argonne National Laboratory
(630) 252-4793
- Replies:
- Re: Getting alh to run on AMD64 (linux 64-bit OS) Ernest L. Williams Jr.
- References:
- Re: Getting alh to run on AMD64 (linux 64-bit OS) Andrew Johnson
- Re: Getting alh to run on AMD64 (linux 64-bit OS) Kay-Uwe Kasemir
- Navigate by Date:
- Prev:
Re: Getting alh to run on AMD64 (linux 64-bit OS) Kay-Uwe Kasemir
- Next:
Re: Getting alh to run on AMD64 (linux 64-bit OS) Ernest L. Williams Jr.
- Index:
2002
2003
2004
2005
<2006>
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Getting alh to run on AMD64 (linux 64-bit OS) Kay-Uwe Kasemir
- Next:
Re: Getting alh to run on AMD64 (linux 64-bit OS) Ernest L. Williams Jr.
- Index:
2002
2003
2004
2005
<2006>
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|