[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LYNX-DEV Re: DOS, DOS and Windows
From: |
Foteos Macrides |
Subject: |
Re: LYNX-DEV Re: DOS, DOS and Windows |
Date: |
Fri, 25 Oct 1996 13:30:10 -0500 (EST) |
Wayne Buttles <address@hidden> wrote:
>On Fri, 25 Oct 1996, Foteos Macrides wrote:
>
>> NULL should be defined in the compiler's headers (stdio.h) as
>> 0 with a void pointer type cast:
>>
>> #define NULL ((void *) 0)
>>
>> How does Borland C define it?
>>
>
>For Large and Huge DOS memory models it says:
>
>#define NULL 0L
>
>I wonder what would happen if I made it a ((void *) 0L)...
I don't know, but would guess that the L serves the same function
as the pointer type cast, and for ANSI C is void so as not to invoke a
warning about it not being whatever it actually is (normally (char *)).
Try replacing the 0 with ((void *) 0) in the function call and
see how the compiler feels about that. If it's OK, you probably can
change the header definition, but that's just a guess.
It may still not like the 0 without an L or type cast in the
function call.
This kind of thing is why I think it would be a good idea
to spend the couple hours with an editor replacing all the K&R
macros in the current LYFoo and libwww-FM modules with ANSI C
format and seeing how many of the supported Unix flavors are
affected (shouldn't be a problem for any of the VMS compilers).
Fote
=========================================================================
Foteos Macrides Worcester Foundation for Biomedical Research
address@hidden 222 Maple Avenue, Shrewsbury, MA 01545
=========================================================================
;
; To UNSUBSCRIBE: Send a mail message to address@hidden
; with "unsubscribe lynx-dev" (without the
; quotation marks) on a line by itself.
;
- Re: LYNX-DEV Re: DOS, DOS and Windows, Foteos Macrides, 1996/10/25
- Re: LYNX-DEV Re: DOS, DOS and Windows, Wayne Buttles, 1996/10/25
- Re: LYNX-DEV Re: DOS, DOS and Windows, Larry W. Virden, x2487, 1996/10/25
- Re: LYNX-DEV Re: DOS, DOS and Windows, Doug Lawson, 1996/10/25
- Re: LYNX-DEV Re: DOS, DOS and Windows,
Foteos Macrides <=
- Re: LYNX-DEV Re: DOS, DOS and Windows, Foteos Macrides, 1996/10/25
- Re: LYNX-DEV Re: DOS, DOS and Windows, Foteos Macrides, 1996/10/26
- Re: LYNX-DEV Re: DOS, DOS and Windows, Foteos Macrides, 1996/10/26