OSDN Git Service

libparted: use gperf-generated lookup function
authorJim Meyering <meyering@redhat.com>
Thu, 3 Dec 2009 10:45:05 +0000 (11:45 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 8 Dec 2009 19:54:52 +0000 (20:54 +0100)
commit35a55cdc264acef3cce914af041f4badecacd203
tree0c3f23333a06cf9da63facc093e49ed6b82935d6
parent77d7d334ab4574d3f860d3f84c5be649b320ae1c
libparted: use gperf-generated lookup function

* libparted/labels/pt-tools.c (ptt_partition_max_start_len):
Rewrite to use the gperf-generated look-up function.
(ptt_partition_max_start_sector): New function.
(ptt_partition_max_length): New function.
* libparted/labels/pt-tools.h: Declare them.
* libparted/labels/Makefile.am (GPERF, GPERF_OPTIONS): Define.
(BUILT_SOURCES): Define.
(liblabels_la_SOURCES): Append pt-limit.gperf.
(pt-limit.c): New rule.
(MAINTAINERCLEANFILES): Remove useless definition.
(DISTCLEANFILES): Set to $(BUILT_SOURCES).
* libparted/labels/pt-limit.gperf: New file.
* cfg.mk (bootstrap-tools): Mention gperf.
* bootstrap.conf (buildreq): Require gperf-3.0.3.
.gitignore
bootstrap.conf
cfg.mk
libparted/.gitignore
libparted/labels/Makefile.am
libparted/labels/pt-limit.gperf [new file with mode: 0644]
libparted/labels/pt-tools.c
libparted/labels/pt-tools.h