diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2012-09-17 15:32:36 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2012-09-17 15:32:57 +0300 |
commit | 7cb0a71a115047fe94d7ab1bb42a3c9556796ee3 (patch) | |
tree | d62bc6956ef7f02864800c80cfdc08b2c7c56312 /rpmio | |
parent | 77392704f3caf40a8c7c6f5b7c5fa2cc5b05f9a8 (diff) | |
download | librpm-tizen-7cb0a71a115047fe94d7ab1bb42a3c9556796ee3.tar.gz librpm-tizen-7cb0a71a115047fe94d7ab1bb42a3c9556796ee3.tar.bz2 librpm-tizen-7cb0a71a115047fe94d7ab1bb42a3c9556796ee3.zip |
Move the string pool struct definition earlier so we can reference it...
Diffstat (limited to 'rpmio')
-rw-r--r-- | rpmio/rpmstrpool.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/rpmio/rpmstrpool.c b/rpmio/rpmstrpool.c index 349dde730..a00688ce6 100644 --- a/rpmio/rpmstrpool.c +++ b/rpmio/rpmstrpool.c @@ -27,6 +27,18 @@ struct poolHash_s { int keyCount; }; +struct rpmstrPool_s { + size_t * offs; /* offsets into data area */ + rpmsid offs_size; /* largest offset index */; + rpmsid offs_alloced; /* offsets allocation size */ + char * data; /* string data area */ + size_t data_size; /* string data area size */ + size_t data_alloced; /* string data area allocation size */ + poolHash hash; /* string -> sid hash table */ + int frozen; /* are new id additions allowed? */ + int nrefs; /* refcount */ +}; + static poolHash poolHashCreate(int numBuckets) { poolHash ht; @@ -157,18 +169,6 @@ static void poolHashPrintStats(poolHash ht) fprintf(stderr, "Max Keys/Bucket: %i\n", maxbuckets); } -struct rpmstrPool_s { - size_t * offs; /* offsets into data area */ - rpmsid offs_size; /* largest offset index */; - rpmsid offs_alloced; /* offsets allocation size */ - char * data; /* string data area */ - size_t data_size; /* string data area size */ - size_t data_alloced; /* string data area allocation size */ - poolHash hash; /* string -> sid hash table */ - int frozen; /* are new id additions allowed? */ - int nrefs; /* refcount */ -}; - static void rpmstrPoolRehash(rpmstrPool pool) { int sizehint; |