ObjFW  Check-in [7267f55840]

Overview
Comment:Better fallback asprintf() implementation

Instead of trying if it's C99 compliant and falling back to a 64 KB
buffer if it is not, resize the buffer in powers of 2 until it fits.

The problem is that some implementations that are not compliant with C99
don't just return -1 for a length of 0, but actually crash (e.g. HP-UX).

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 7267f55840e0f00423d782e94e830949f946820e5ea57841791a231165139bdf
User & Date: js on 2021-01-01 18:36:01
Other Links: manifest | tags
Context
2021-01-01
18:49
Handle pthread attrs being unavailable check-in: e45e320379 user: js tags: trunk
18:36
Better fallback asprintf() implementation check-in: 7267f55840 user: js tags: trunk
16:10
Add HP-UX libraries to ignore glob check-in: 125faa9dcc user: js tags: trunk
Changes