curl / Mailing Lists / curl-library / Single Mail


Re: Getting away from the generated header file [RFC]

From: Florian Weimer <>
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.
Received on 2017-03-30