Re: portability question
- From: Noah Levitt <nlevitt columbia edu>
- To: Sheldon Simms <wsxyz6294 yahoo com>
- Cc: gtk-devel-list gnome org
- Subject: Re: portability question
- Date: Tue, 16 Dec 2003 03:17:32 -0500
Could you cite examples?
Noah
On Mon, Dec 15, 2003 at 23:15:40 -0800, Sheldon Simms wrote:
>
> Hi everyone,
>
> I just started reading some of the GLib source code
> for the first time and I have noticed that the code
> often makes "nonportable" assumptions about the C
> implementation like arbitrary pointer/int
> interchangability, twos-complement representation of
> negative integers, "all-zeros" representation of a
> null pointer.
>
> I say "nonportable" in quotes, because I suspect that
> these things actually are portable to all platforms of
> current interest, but still I wonder why the code was
> written this way when it's really not difficult to
> write the code without making these assumptions.
>
> Are there any reasons?
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]