Re: [Tuxpaint-devel] Several bugfixes for Tux Paint
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
From: Pere P. i C. <pe...@fo...> - 2010-05-04 18:15:23
|
El dt 04 de 05 de 2010 a les 19:31 +0200, en/na Volker Grabsch va escriure: > Pere Pujal i Carabantes <pe...@fo...> schrieb: > > About fmemopen and open_memstream, I made use of them to avoid creating > > temporary files just for opening the filestreams needed to > > compress/uncompress the embedded data in the PNG file. > > > > If they are so annoying, and there are not proper replacements, we can > > write a couple of replacement functions that use temporary files on the > > disc. > > Zlib provides functions for in-memory compression and > decompression. I recommend to use those instead of > temporary files. Well, even if using them, we still need streams to parse the content, at least load_embedded_data and load_info_about_label_surface() uses file streams to parse the data. Pere |