curl-library
Re: Getting away from the generated header file [RFC]
From: Florian Weimer <fw_at_deneb.enyo.de>
Date: Thu, 30 Mar 2017 23:53:45 +0200
Date: Thu, 30 Mar 2017 23:53:45 +0200
* Daniel Stenberg:
> I'm looking for comments and feedback on the general approach and
> feasability.
It doesn't look too bad so far.
I think you could write run-time tests for most of the macro values.
The formats could probably be checked using sscanf and sprintf. For
the type sizes and type definitions, it should even be possible to
write compile-time tests.
This would quickly tell users (well, the folks who compile libcurl)
that the header definitions do not work on their platform.
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-03-30