MCPcopy Create free account
hub / github.com/OpenPrinting/cups / new_stack

Function new_stack

cups/raster-interpret.c:892–910  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

890 */
891
892static _cups_ps_stack_t * /* O - New stack */
893new_stack(void)
894{
895 _cups_ps_stack_t *st; /* New stack */
896
897
898 if ((st = calloc(1, sizeof(_cups_ps_stack_t))) == NULL)
899 return (NULL);
900
901 st->alloc_objs = 32;
902
903 if ((st->objs = calloc(32, sizeof(_cups_ps_obj_t))) == NULL)
904 {
905 free(st);
906 return (NULL);
907 }
908 else
909 return (st);
910}
911
912
913/*

Callers 1

_cupsRasterExecPSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected