Re: Proposal: g_set_out_of_mem_handler



Hi Tim,

> > So:
> >  - allow setting a "try again" function with signature identical to
> >    malloc/realloc
> 
> well, that can be reduced to
> 
> typedef gpointer (*GReallocFallback) (gpointer mem,
>                                       gulong   n_bytes);
> void g_realloc_set_fallback (GReallocFallback fallback_func);
> 
> with mem=NULL for malloc() fallback (and some realloc()s).

As I already pointed out, that can't be done reliably.

Bye,
Sebastian
-- 
Sebastian Wilhelmi                   |            här ovanför alla molnen
mailto:wilhelmi@ira.uka.de           |     är himmlen så förunderligt blå
http://goethe.ira.uka.de/~wilhelmi   |



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