[csw-maintainers] libcurl and 64 bit on x86
James Lee
james at opencsw.org
Wed Apr 15 16:23:39 CEST 2009
On 15/04/09, 14:57:51, Chad Harp <harpchad at opencsw.org> wrote regarding Re:
[csw-maintainers] libcurl and 64 bit on x86:
> >>> * Verify that the size previously defined and expected for long
> >>> * is the same as the one reported by sizeof() at compile time.
> >>> */
> >>>
> >>> typedef char
> >>> __curl_rule_01__
> >>> [CurlchkszEQ(long, CURL_SIZEOF_LONG)];
> >
> >> CURL_SIZEOF_LONG is 4:
> >
> >>> /opt/csw/include/curl/curlbuild.h:#define CURL_SIZEOF_LONG 4
> >
> >
> > #define CURL_SIZEOF_LONG sizeof(long)
> curl does a check to make sure that CURL_SIZEOF_LONG == sizeof(long) so
> by changing CURL_SIZEOF_LONG to sizeof(long) I'd just be saying
> sizeof(long) == sizeof(long). :)
It will be. Another chuck of code we can cut.
> There's a discussion going on over on the curl mailing list as to how to
> make this more friendly towards packaging for multiple architectures,
> but the consensus for now seems to be to wrap the headers.
Do they get paid for code by the yard? I don't understand what problem
they are trying to solve, at least I thought I did, but this was all
solved decades ago by the sizeof operator.
James.
More information about the maintainers
mailing list