[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pdf-devel] hash helper functions
From: |
jemarch |
Subject: |
Re: [pdf-devel] hash helper functions |
Date: |
Sun, 28 Dec 2008 00:41:54 +0100 |
User-agent: |
Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
> I just added two additional functions to pdf-hash-helper.h:
> pdf_hash_add_size and pdf_hash_add_string.
>
> The rule is to add new helper functions as you need it, so if you need
> to insert a pdf_off_t value to a hash, please add the pdf_hash_add_off
> function to pdf-hash-helper.[ch] and use it. Note that we are
> supporting helper functions for types defined in pdf-types.h or
> pdf-fp.h.
>
> Gerel, what do you think about adding 'pdf_hash_get_XXX' helper
> functions too? It would help to maintain the code using hashes
> clear. I would go for it.
Hi jemarch,
I agree, this minor change is one of a really helpful thing for programmers,
thus, write less code. :-)
Ok. The new functions are now in the trunk.
Thanks.