Cleanup parsing of packages.
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Wed, 11 Nov 2009 03:18:23 +0000 (03:18 +0000)
committergraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Wed, 11 Nov 2009 03:18:23 +0000 (03:18 +0000)
commitf547c5906e484a05abb12b2a3f5d704c3cf7b60f
tree5b638c19bc09ec6902f6b2205e6c9051d11bc970
parent774828dbef307f77e5db18a81edd4afa23af80d9
Cleanup parsing of packages.

This diff is loosely based on a patch by Jo-Philipp Wich <google@wwsnet.net>
posted in the bugtracker (Issue #24). Peak memory consumption while parsing
package lists is dramatically reduced.

Thanks to Camille Moncelier for fixing problems after reallocing for long lines.

git-svn-id: http://opkg.googlecode.com/svn/trunk@283 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
libopkg/opkg_utils.c
libopkg/opkg_utils.h
libopkg/pkg.c
libopkg/pkg_hash.c
libopkg/pkg_parse.c
libopkg/pkg_parse.h