Lines Matching defs:pdc
47 pdc_core *pdc; /* pdcore struct */
62 pdc_get_fopen_errnum(pdc_core *pdc, int errnum)
66 (void) pdc;
187 pdc_read_file(pdc_core *pdc, FILE *fp, size_t *o_filelen, int incore)
202 content = (char *) pdc_malloc(pdc, filelen + 1, fn);
208 content = (char *) pdc_realloc(pdc, content, filelen + 1, fn);
215 content = (char *) pdc_realloc(pdc, content, filelen + 1, fn);
219 pdc_free(pdc, content);
230 content = (char *) pdc_malloc(pdc, filelen + 1, fn);
234 pdc_free(pdc, content);
248 pdc_fopen(pdc_core *pdc, const char *filename, const char *qualifier,
254 sfile = (pdc_file *) pdc_calloc(pdc, sizeof(pdc_file), fn);
267 pdc_free(pdc, sfile);
270 pdc_set_errmsg(pdc, pdc_get_fopen_errnum(pdc, PDC_E_IO_RDOPEN),
277 sfile->pdc = pdc;
278 sfile->filename = pdc_strdup(pdc, filename);
300 return sfp->pdc;
311 pdc_read_file(sfp->pdc, sfp->fp, &filelen, 0);
325 return (const void *) pdc_read_file(sfp->pdc, sfp->fp, filelen, 1);
448 sfp->tdata = (pdc_byte *) pdc_malloc(sfp->pdc,
454 sfp->tdata = (pdc_byte *) pdc_realloc(sfp->pdc, sfp->tdata,
548 pdc_free(sfp->pdc, sfp->tdata);
553 pdc_free(sfp->pdc, sfp->filename);
556 pdc_free(sfp->pdc, sfp);
638 pdc_read_textfile(pdc_core *pdc, pdc_file *sfp, char ***linelist)
652 content = (char *) pdc_malloc(pdc, filelen, fn);
693 (char **)pdc_malloc(pdc, maxl * sizeof(char *), fn):
694 (char **)pdc_realloc(pdc, argv, maxl *
706 if (!argv) pdc_free(pdc, content);