[tex-live] xreallocarray

Olaf Weber olaf at infovore.xs4all.nl
Tue Jun 21 17:13:50 CEST 2005

Hartmut Henkel writes:

> Hi,
> would it be difficult or dangerous to add to cpascal.h the line

> #define xreallocarray(ptr,type,size) ((type*)xrealloc(ptr,(size+1)*sizeof(type)))

> right below the line with xmallocarray, and to common.defines the line

> @define function xreallocarray ();

> again right below the line with xmallocarray? This would allow me to use
> xrealloc_array in pdftex web, e. g. for dynamic growth of pdf_mem...

This is not particularly difficult or dangerous in and of itself.
Though the uses made of xreallocarray might be.  :-)

Olaf Weber

               (This space left blank for technical reasons.)

More information about the tex-live mailing list