[Extractor-gtk-cvslog] SF.net SVN: extractor-gtk: [28] trunk/extractor
Extract files from unusual archive formats
Brought to you by:
someone-guy
From: <som...@us...> - 2007-09-15 23:07:56
|
Revision: 28 http://extractor-gtk.svn.sourceforge.net/extractor-gtk/?rev=28&view=rev Author: someone-guy Date: 2007-09-15 16:07:54 -0700 (Sat, 15 Sep 2007) Log Message: ----------- Add a default free function that does not free priv data, so it can be misused to directly store int data. Modified Paths: -------------- trunk/extractor/helpers.c trunk/extractor/helpers.h Modified: trunk/extractor/helpers.c =================================================================== --- trunk/extractor/helpers.c 2007-08-30 10:56:42 UTC (rev 27) +++ trunk/extractor/helpers.c 2007-09-15 23:07:54 UTC (rev 28) @@ -92,6 +92,17 @@ } /** + * \brief default free function for file list, which does not try to free priv data + * \param list list to free + */ +void default_free_ignorepriv(file_t *list) { + file_t *i; + for (i = list; i->name; i++) + free(i->name); + free(list); +} + +/** * \brief default file-extract function * \param in archive file * \param file description struct of file to extract Modified: trunk/extractor/helpers.h =================================================================== --- trunk/extractor/helpers.h 2007-08-30 10:56:42 UTC (rev 27) +++ trunk/extractor/helpers.h 2007-09-15 23:07:54 UTC (rev 28) @@ -9,5 +9,6 @@ struct file_s; void default_free_list(struct file_s *list); +void default_free_ignorepriv(struct file_s *list); int default_extract_file(FILE *in, struct file_s *file, FILE *out); #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |