> 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