static pdf_action * pdf_new_action(PDF *p) { pdf_action *result; if (p->actions == NULL) p->actions = pdc_vtr_new(p->pdc, &pdf_action_ced, p, &pdf_action_parms); result = pdc_vtr_incr(p->actions, pdf_action); result->hypertextencoding = p->hypertextencoding; return result; }
pdc_vtr * pdf_new_mboxes(PDF *p, pdf_mbox *mbox, pdc_vtr *mboxes) { static const char fn[] = "pdf_new_mboxes"; char *name = mbox->name; if (mboxes == NULL) mboxes = pdc_vtr_new(p->pdc, &pdf_mbox_ced, p, &pdf_mbox_parms); if (mbox->name != NULL) mbox->name = pdc_strdup_ext(p->pdc, mbox->name, 0, fn); pdc_vtr_push(mboxes, *mbox, pdf_mbox); mbox->name = name; return mboxes; }