pdf-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pdf-devel] Memory management for hashes


From: jemarch
Subject: Re: [pdf-devel] Memory management for hashes
Date: Sun, 20 Jul 2008 23:05:33 +0200
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)

   > 2) To specify the element memory disposal function at element
   >    insertion time, like:
   >  
   >     pdf_hash_add (myhash, 
   >                   "key",
   >                   a_text_variable,
   >                   memory_disposal_function_for_text_variables);
   > 
   >    In this case would be quite useful to have some element disposal
   >    functions written for the several pdf_*_t types, including the
   >    pdf_hash_t one.

   I really think this would be the best and simplest option.

We could complement it with helper functions:

    pdf_hash_add_text (myhash, "key", a_text_variable);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]