libzip: libzip-discuss: Re: zipint.h missing in debian package

Thread

Thread Index

Message

From: Claudio_Unige <claudiounige%gmail.com@localhost>
To: Pierre Joye <pierre.php%gmail.com@localhost>
Subject: Re: zipint.h missing in debian package
Date: Thu, 17 Jun 2010 13:40:27 +0200

Hi,

thanks everyone for the info I now understand, there is only one thing that I believe is missing, which is creating a struct zip without creating a file. My use case is I have a zip file in memory and not on the filesystem and I want to extract some files, in that case my program would have to still write a file to disk by using the zip_open.
If it makes sense it would be nice to set it to null and instead of giving the ZIP_ER_INVAL error it would just return the memory structure in memory. Basically no filesystem interaction: I can have a quick look at it and do a commit if you guys are ok with it.

-Claudio

On Thu, Jun 17, 2010 at 12:48 PM, Pierre Joye <pierre.php%gmail.com@localhost> wrote:
On Thu, Jun 17, 2010 at 12:44 PM, Mikhail Gusarov
<dottedmag%dottedmag.net@localhost> wrote:
>
> Twas brillig at 12:41:34 17.06.2010 UTC+02 when pierre.php%gmail.com@localhost did gyre and gimble:
>
>  PJ> it may be necessary for the compiler to know the size at build
>  PJ> time.
>
> It may not. Those are not supposed to be allocated on stack.

Ah good, I was not sure either here, only quickly check a small test code :)

Cheers,
--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

Made by MHonArc.