Re: [fltk/fltk] [fltk 1.4.x/Linux] application invoking native chooser crashes under linux if if fltk built with --enable-localpng (#232)
Albrecht Schlosser
May 25, 2021
That's what I tried and it didn't work. The C code in zlib is ... let's say complicated and strange [1]. My simple approach to do this with only one C file failed miserably with lots of hard to understand error codes. I didn't save any of these, but that wouldn't be helpful anyway. But generally that's the idea I tried to follow...
[1] Example code (from gzread.c):
/* Local functions */
local int gz_load OF((gz_statep, unsigned char *, unsigned, unsigned *));
local int gz_avail OF((gz_statep));
...
local z_size_t gz_read OF((gz_statep, voidp, z_size_t));
...
local int gz_load(state, buf, len, have) <--
gz_statep state; <--
unsigned char *buf; <--
unsigned len; <--
unsigned *have; <--
{
int ret;
This code doesn't compile with g++. I know this is an ancient C standard, but why does this not compile with a C++ compiler? Was this way to declare arguments dropped? And why are they using it in zlib?
Maybe we can find a way, but as I wrote before, for today I gave up. Sometimes sleeping a night and starting over again with a fresh mind helps...
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.