/haiku-fatelf/src/libs/pdflib/libs/pdcore/ |
H A D | pc_core.c | 139 pdc_enter_api(pdc_core *pdc, const char *apiname) argument 141 if (pdc->in_error) 144 pdc->errnum = 0; 145 pdc->apiname = apiname; 150 pdc_set_warnings(pdc_core *pdc, pdc_bool on) argument 152 pdc->warnings_enabled = on; 156 pdc_in_error(pdc_core *pdc) argument 158 return pdc->in_error; 174 pdc_panic(pdc_core *pdc, const char *fmt, ...) argument 179 vsprintf(pdc 188 check_parms(pdc_core *pdc, pdc_error_info *ei) argument 215 pdc_register_errtab(pdc_core *pdc, int et, pdc_error_info *ei, int n_entries) argument 259 pdc_core *pdc; local 319 pdc_delete_core(pdc_core *pdc) argument 335 pdc_malloc(pdc_core *pdc, size_t size, const char *caller) argument 359 pdc_calloc(pdc_core *pdc, size_t size, const char *caller) argument 378 pdc_realloc(pdc_core *pdc, void *mem, size_t size, const char *caller) argument 395 pdc_free(pdc_core *pdc, void *mem) argument 406 pdc_errprintf(pdc_core *pdc, const char *fmt, ...) argument 421 get_error_info(pdc_core *pdc, int errnum) argument 445 make_errmsg( pdc_core * pdc, pdc_error_info * ei, const char * parm1, const char * parm2, const char * parm3, const char * parm4) argument 495 pdc_set_errmsg( pdc_core * pdc, int errnum, const char *parm1, const char *parm2, const char *parm3, const char *parm4) argument 511 pdc_error( pdc_core * pdc, int errnum, const char *parm1, const char *parm2, const char *parm3, const char *parm4) argument 562 pdc_warning( pdc_core * pdc, int errnum, const char *parm1, const char *parm2, const char *parm3, const char *parm4) argument 610 pdc_jbuf(pdc_core *pdc) argument 640 pdc_exit_try(pdc_core *pdc) argument 653 pdc_catch_intern(pdc_core *pdc) argument 674 pdc_catch_extern(pdc_core *pdc) argument 694 pdc_rethrow(pdc_core *pdc) argument 701 pdc_get_errnum(pdc_core *pdc) argument 707 pdc_get_errmsg(pdc_core *pdc) argument 713 pdc_get_apiname(pdc_core *pdc) argument 771 pdc_ftoa(pdc_core *pdc, char *buf, double x) argument 844 pdc_vsprintf(pdc_core *pdc, char *buf, const char *format, va_list args) argument 956 pdc_set_floatdigits(pdc_core *pdc, int val) argument 962 pdc_set_tracefile(pdc_core *pdc, const char *filename) argument 981 pdc_set_trace(pdc_core *pdc, const char *client) argument 1017 pdc_trace_api(pdc_core *pdc, const char *funame, const char *fmt, va_list args) argument 1057 pdc_trace(pdc_core *pdc, const char *fmt, ...) argument [all...] |
H A D | pc_core.h | 81 void pdc_delete_core(pdc_core *pdc); 91 void *pdc_malloc(pdc_core *pdc, size_t size, const char *caller); 92 void *pdc_realloc(pdc_core *pdc, void *mem, size_t size, const char *caller); 93 void *pdc_calloc(pdc_core *pdc, size_t size, const char *caller); 94 void pdc_free(pdc_core *pdc, void *mem); 126 void pdc_register_errtab(pdc_core *pdc, int et, pdc_error_info *ei, 129 pdc_bool pdc_enter_api(pdc_core *pdc, const char *apiname); 130 pdc_bool pdc_in_error(pdc_core *pdc); 131 void pdc_set_warnings(pdc_core *pdc, pdc_bool on); 133 const char * pdc_errprintf(pdc_core *pdc, cons [all...] |
H A D | pc_font.c | 23 pdc_init_font_struct(pdc_core *pdc, pdc_font *font) argument 30 (void) pdc; 64 pdc_cleanup_font_struct(pdc_core *pdc, pdc_font *font) argument 72 pdc_free(pdc, font->img); 75 pdc_free(pdc, font->imgname); 78 pdc_free(pdc, font->name); 81 pdc_free(pdc, font->apiname); 84 pdc_free(pdc, font->ttname); 87 pdc_free(pdc, font->fontfilename); 90 pdc_free(pdc, fon 146 pdc_cleanup_t3font_struct(pdc_core *pdc, pdc_t3font *t3font) argument [all...] |
H A D | pc_encoding.h | 75 void pdc_init_encoding(pdc_core *pdc, pdc_encodingvector *ev, 77 pdc_encodingvector *pdc_new_encoding(pdc_core *pdc, const char *name); 78 void pdc_cleanup_encoding(pdc_core *pdc, pdc_encodingvector *ev); 79 int pdc_get_encoding_bytecode(pdc_core *pdc, pdc_encodingvector *ev, 81 pdc_encodingvector *pdc_copy_core_encoding(pdc_core *pdc, const char *encoding);
|
H A D | pc_sbuf.c | 29 pdc_sb_new(pdc_core *pdc) argument 33 pdc_sbuf *sb = (pdc_sbuf *)pdc_malloc(pdc, sizeof (pdc_sbuf), fn); 35 sb->pdc = pdc; 36 sb->buf = (char *)pdc_malloc(pdc, INIT_SIZE, fn); /* TODO: potential leak */ 47 pdc_free(sb->pdc, sb->buf); 48 pdc_free(sb->pdc, sb); 67 pdc_free(dst->pdc, dst->buf); 68 dst->buf = (char *)pdc_malloc(dst->pdc, (size_t) d_cap, fn); 84 sb->buf = (char *)pdc_realloc(sb->pdc, s [all...] |
H A D | pc_optparse.c | 115 pdc_cleanup_optstringlist(pdc_core *pdc, char **stringlist, int ns) argument 122 pdc_free(pdc, stringlist[j]); 124 pdc_free(pdc, stringlist); 128 pdc_delete_optvalue(pdc_core *pdc, pdc_resopt *resopt) argument 138 pdc_free(pdc, s[j]); 140 pdc_free(pdc, resopt->val); 154 pdc_parse_optionlist(pdc_core *pdc, const char *optlist, argument 181 nitems = pdc_split_stringlist(pdc, optlist, PDC_OPT_LISTSEPS, &items); 193 resopt = (pdc_resopt *) pdc_calloc(pdc, numdef * sizeof(pdc_resopt), fn); 269 stemp2 = pdc_errprintf(pdc, " 704 pdc_get_optvalues(pdc_core *pdc, const char *keyword, pdc_resopt *resopt, void *lvalues, void **mvalues) argument 771 pdc_cleanup_optionlist(pdc_core *pdc, pdc_resopt *resopt) argument [all...] |
H A D | pc_output.c | 81 pdc_core *pdc; /* core context */ member in struct:pdc_output_s 109 pdc_zlib_alloc(voidpf pdc, uInt items, uInt size) argument 111 return (voidpf) pdc_malloc((pdc_core *) pdc, items * size, "zlib"); 128 pdc_core *pdc = out->pdc; local 131 pdc_error(pdc, PDC_E_IO_NOBUFFER, 0, 0, 0, 0); 166 pdc_core *pdc, 190 pdc_free(pdc, (void *) stream->basepos); 192 stream->basepos = (pdc_byte *)pdc_malloc(pdc, STREAM_CHUNKSIZE, 205 stream->z.opaque = (voidpf) pdc; 165 pdc_init_stream( pdc_core *pdc, pdc_output *out, const char *filename, FILE *fp, size_t (*writeproc)(pdc_output *out, void *data, size_t size)) argument 342 pdc_core *pdc = out->pdc; local 368 pdc_core *pdc = out->pdc; local 389 pdc_core *pdc = out->pdc; local 415 pdc_core *pdc = out->pdc; local 451 pdc_core *pdc = out->pdc; local 494 pdc_core *pdc = out->pdc; local 531 pdc_boot_output(pdc_core *pdc) argument 571 pdc_core *pdc = out->pdc; local 631 pdc_core *pdc = out->pdc; local 681 pdc_core *pdc = out->pdc; local 865 pdc_core *pdc = out->pdc; local [all...] |
H A D | pc_sbuf.h | 27 pdc_sbuf * pdc_sb_new(pdc_core *pdc); 55 pdc_core * pdc; member in struct:pdc_sbuf_s
|
/haiku-fatelf/src/libs/pdflib/libs/pdflib/ |
H A D | p_cid.c | 59 pdc_set_errmsg(p->pdc, PDF_E_DOC_PDFVERSION, 60 encoding, pdc_errprintf(p->pdc, "%d.%d", 64 pdc_error(p->pdc, -1, 0, 0, 0, 0); 78 pdc_set_errmsg(p->pdc, PDF_E_CJK_NOSTANDARD, fontname, 0, 0, 0); 81 pdc_error(p->pdc, -1, 0, 0, 0, 0); 90 pdc_set_errmsg(p->pdc, PDF_E_FONT_BADENC, fontname, encoding, 0, 0); 93 pdc_error(p->pdc, -1, 0, 0, 0, 0); 101 pdc_set_errmsg(p->pdc, PDF_E_FONT_NEEDUCS2, encoding, fontname, 0, 0); 104 pdc_error(p->pdc, -1, 0, 0, 0, 0); 116 pdc_fill_font_metric(p->pdc, fon [all...] |
H A D | p_params.c | 77 pdc_error(p->pdc, PDC_E_ILLARG_BOOL, key, value, 0, 0); 91 pdc_error(p->pdc, PDC_E_ILLARG_EMPTY, "key", 0, 0, 0); 100 pdc_error(p->pdc, PDC_E_PAR_UNKNOWNKEY, key, 0, 0, 0); 103 pdc_error(p->pdc, PDF_E_DOC_SCOPE_SET, key, pdf_current_scope(p), 0, 0); 106 pdc_error(p->pdc, PDC_E_ILLARG_EMPTY, "value", 0, 0, 0); 117 pdc_error(p->pdc, PDC_E_PAR_ILLPARAM, value, key, 0, 0); 125 pdc_error(p->pdc, PDC_E_PAR_ILLPARAM, value, key, 0, 0); 158 pdc_error(p->pdc, PDC_E_PAR_ILLPARAM, value, key, 0, 0); 170 pdc_set_trace(p->pdc, "PDFlib " PDFLIB_VERSIONSTRING); 182 pdc_set_trace(p->pdc, NUL [all...] |
H A D | p_resource.c | 124 np = pdc_split_stringlist(p->pdc, buffer, 128 pdc_cleanup_stringlist(p->pdc, pathlist); 139 pdc_free(p->pdc, p->prefix); 142 p->prefix = pdc_strdup(p->pdc, 199 pdc_free(p->pdc, p->resourcefilename); 202 p->resourcefilename = pdc_strdup(p->pdc, uprfilename); 207 pdc_error(p->pdc, -1, 0, 0, 0, 0); 209 nlines = pdc_read_textfile(p->pdc, fp, &linelist); 240 pdc_free(p->pdc, p->prefix); 243 p->prefix = pdc_strdup(p->pdc, [all...] |
H A D | p_encoding.c | 40 pdc_error(p->pdc, PDF_E_ENC_CANTCHANGE, encoding, 0, 0, 0); 65 pdc_warning(p->pdc, PDF_E_ENC_BADGLYPH, 67 pdc_errprintf(p->pdc, "0x%04X", uv), 79 pdc_error(p->pdc, PDF_E_ENC_BADUNICODE, 80 pdc_errprintf(p->pdc, "0x%04X", uv), glyphname, 81 pdc_errprintf(p->pdc, "0x%04X", reg_uv), 0); 97 p->encodings[enc].ev = pdc_new_encoding(p->pdc, encoding); 105 pdc_error(p->pdc, PDF_E_ENC_CANTCHANGE, encoding, 0, 0, 0); 109 pdc_error(p->pdc, PDF_E_ENC_INUSE, encoding, 0, 0, 0); 115 pdc_free(p->pdc, e [all...] |
H A D | p_gstate.c | 91 pdc_error(p->pdc, PDF_E_GSTATE_SAVELEVEL, 92 pdc_errprintf(p->pdc, "%d", PDF_MAX_SAVE_LEVEL - 1), 0, 0, 0); 110 pdc_error(p->pdc, PDF_E_GSTATE_RESTORE, 0, 0, 0, 0); 170 pdc_error(p->pdc, PDC_E_ILLARG_FLOAT, "sx", "0", 0, 0); 173 pdc_error(p->pdc, PDC_E_ILLARG_FLOAT, "sy", "0", 0, 0); 217 pdc_error(p->pdc, PDC_E_ILLARG_FLOAT, 218 "alpha", pdc_errprintf(p->pdc, "%f", alpha), 0, 0); 224 pdc_error(p->pdc, PDC_E_ILLARG_FLOAT, 225 "beta", pdc_errprintf(p->pdc, "%f", beta), 0, 0); 247 pdc_error(p->pdc, PDC_E_ILLARG_MATRI [all...] |
H A D | p_hyper.c | 81 pdc_free(p->pdc, p->outlines[i].text); 85 pdc_free(p->pdc, (void*) p->outlines); 175 dest->name = pdc_strdup(p->pdc, source->name); 177 dest->filename = pdc_strdup(p->pdc, source->filename); 184 pdc_free(p->pdc, dest->name); 187 pdc_free(p->pdc, dest->filename); 212 results = pdc_parse_optionlist(p->pdc, optlist, pdf_destination_options, 215 if (pdc_get_optvalues(p->pdc, "fitbbox", results, &boolval, NULL) && 219 if (pdc_get_optvalues(p->pdc, "fitheight", results, &boolval, NULL) && 223 if (pdc_get_optvalues(p->pdc, "fitpag [all...] |
H A D | p_block.c | 36 pdc_strprint(p->pdc, text, len), len, optlist)) 41 pdc_error(p->pdc, PDF_E_UNSUPP_BLOCK, 0, 0, 0, 0); 60 pdc_error(p->pdc, PDF_E_UNSUPP_BLOCK, 0, 0, 0, 0); 79 pdc_error(p->pdc, PDF_E_UNSUPP_BLOCK, 0, 0, 0, 0);
|
H A D | p_kerning.c | 34 pdc_warning(p->pdc, PDF_E_UNSUPP_KERNING, 0, 0, 0, 0);
|
H A D | p_pdi.c | 42 pdc_error(p->pdc, PDF_E_UNSUPP_PDI, 0, 0, 0, 0); 67 pdc_error(p->pdc, PDF_E_UNSUPP_PDI, 0, 0, 0, 0); 82 pdc_error(p->pdc, PDF_E_UNSUPP_PDI, 0, 0, 0, 0); 100 pdc_error(p->pdc, PDF_E_UNSUPP_PDI, 0, 0, 0, 0); 115 pdc_error(p->pdc, PDF_E_UNSUPP_PDI, 0, 0, 0, 0); 129 pdc_error(p->pdc, PDF_E_UNSUPP_PDI, 0, 0, 0, 0); 144 pdc_error(p->pdc, PDF_E_UNSUPP_PDI, 0, 0, 0, 0); 165 pdc_error(p->pdc, PDF_E_UNSUPP_PDI, 0, 0, 0, 0); 180 pdc_error(p->pdc, PDF_E_UNSUPP_PDI, 0, 0, 0, 0); 197 pdc_error(p->pdc, PDF_E_UNSUPP_PD [all...] |
H A D | p_xgstate.c | 177 p->extgstates = (pdf_extgstateresource *) pdc_realloc(p->pdc, p->extgstates, 197 pdc_malloc(p->pdc, sizeof(pdf_extgstateresource) * p->extgstates_capacity, 343 pdc_free(p->pdc, p->extgstates[i].dash_array); 346 pdc_free(p->pdc, p->extgstates); 369 pdc_error(p->pdc, PDC_E_ILLARG_EMPTY, "optlist", 0, 0, 0); 383 results = pdc_parse_optionlist(p->pdc, optlist, pdf_create_gstate_options, 386 pdc_get_optvalues(p->pdc, "alphaisshape", results, 389 if (pdc_get_optvalues(p->pdc, "blendmode", results, 393 gs->dash_count = pdc_get_optvalues(p->pdc, "dasharray", results, 396 pdc_get_optvalues(p->pdc, "dashphas [all...] |
H A D | p_annots.c | 117 pdc_free(p->pdc, p->launchlink_parameters); 122 pdc_free(p->pdc, p->launchlink_operation); 127 pdc_free(p->pdc, p->launchlink_defaultdir); 337 pdc_free(p->pdc, ann->parameters); 345 pdc_free(p->pdc, ann->operation); 353 pdc_free(p->pdc, ann->defaultdir); 431 pdc_error(p->pdc, PDF_E_INT_BADANNOT, 432 pdc_errprintf(p->pdc, "%d", ann->type), 0, 0, 0); 497 pdc_free(p->pdc, ann->contents); 499 pdc_free(p->pdc, an [all...] |
H A D | p_shading.c | 42 p->shadings = (pdf_shading *) pdc_malloc(p->pdc, 56 p->shadings = (pdf_shading *) pdc_realloc(p->pdc, p->shadings, 96 pdc_free(p->pdc, p->shadings); 123 pdc_error(p->pdc, PDF_E_SHADING13, 0, 0, 0, 0); 132 results = pdc_parse_optionlist(p->pdc, 135 (void) pdc_get_optvalues(p->pdc, "gstate", results, &gstate, NULL); 137 pdc_cleanup_optionlist(p->pdc, results); 200 pdc_error(p->pdc, PDF_E_SHADING13, 0, 0, 0, 0); 254 pdc_error(p->pdc, PDF_E_SHADING13, 0, 0, 0, 0); 263 pdc_error(p->pdc, PDC_E_ILLARG_STRIN [all...] |
H A D | p_image.c | 87 pdc_malloc(p->pdc, 99 p->images = (pdf_image *) pdc_realloc(p->pdc, p->images, 113 pdc_free(p->pdc, p->images[im].params); 118 pdc_free(p->pdc, p->images[im].filename); 153 pdc_free(p->pdc, p->images); 169 pdc_malloc(p->pdc, sizeof(pdf_xobject) * p->xobjects_capacity, 185 p->xobjects = (pdf_xobject *) pdc_realloc(p->pdc, p->xobjects, 237 pdc_free(p->pdc, p->xobjects); 288 pdc_error(p->pdc, PDF_E_INT_BADCS, 289 pdc_errprintf(p->pdc, " [all...] |
H A D | p_afm.c | 110 nwords = pdc_split_stringlist(p->pdc, line, AFM_SEPARATORS, &wordlist); 139 pdc_warning(p->pdc, PDF_E_T1_AFMBADKEY, keyword, filename, 0, 0); 150 font->name = pdc_strdup(p->pdc, arg1); 282 font->glw = (pdc_glyphwidth *) pdc_calloc(p->pdc, 293 font->glw = (pdc_glyphwidth *) pdc_realloc(p->pdc, font->glw, 334 pdc_cleanup_stringlist(p->pdc, wordlist); 344 pdc_cleanup_stringlist(p->pdc, wordlist); 346 pdc_set_errmsg(p->pdc, PDC_E_IO_ILLSYNTAX, "AFM ", filename, 347 pdc_errprintf(p->pdc, "%d", nline), 0); 350 pdc_error(p->pdc, [all...] |
H A D | p_basic.c | 296 pdc_trace_api(p->pdc, funame, fmt, args); 302 if (!pdc_enter_api(p->pdc, funame)) 311 pdc_error(p->pdc, PDF_E_DOC_SCOPE, pdf_current_scope(p), 0, 0, 0); 331 pdc_trace_api(p->pdc, funame, fmt, args); 346 pdc_trace(p->pdc, "[0]\n"); 350 ret = pdc_get_errnum(p->pdc); 351 pdc_trace(p->pdc, "[%d]\n", ret); 363 pdc_trace(p->pdc, "[NULL]\n"); 367 ret = pdc_get_errmsg(p->pdc); 368 pdc_trace(p->pdc, "\ 503 pdc_core * pdc; local [all...] |
H A D | p_font.c | 58 pdc_error(p->pdc, PDF_E_TEXT_NOFONT_PAR, "fontname", 0, 0, 0); 67 pdc_error(p->pdc, PDF_E_TEXT_NOFONT_PAR, "fontstyle", 0, 0, 0); 80 pdc_error(p->pdc, PDF_E_TEXT_NOFONT_PAR, "fontencoding", 0, 0, 0); 100 pdc_error(p->pdc, PDF_E_TEXT_NOFONT_PAR, "fontstyle", 0, 0, 0); 109 pdc_error(p->pdc, PDF_E_TEXT_NOFONT_PAR, "font", 0, 0, 0); 119 pdc_cleanup_font_struct(p->pdc, font); 133 pdc_free(p->pdc, p->fonts); 144 p->fonts = (pdc_font *) pdc_calloc(p->pdc, 155 p->fonts = (pdc_font *) pdc_realloc(p->pdc, p->fonts, 174 pdc_init_font_struct(p->pdc, fon [all...] |
H A D | p_gif.c | 40 pdc_warning(p->pdc, PDF_E_UNSUPP_IMAGE, "GIF", 0, 0, 0); 49 static int ReadColorMap(pdc_core *pdc, pdc_file *fp, 61 src->buffer_start = (pdc_byte*) pdc_malloc(p->pdc, src->buffer_length, 96 const char *stemp = pdc_errprintf(p->pdc, "%s", image->filename); 97 pdc_error(p->pdc, PDF_E_IMAGE_CORRUPT, "GIF", stemp, 0, 0); 126 const char *stemp = pdc_errprintf(p->pdc, "%s", image->filename); 127 pdc_error(p->pdc, PDF_E_IMAGE_CORRUPT, "GIF", stemp, 0, 0); 183 pdc_free(p->pdc, (void *) src->buffer_start); 264 if (ReadColorMap(p->pdc, image->fp, 351 if (ReadColorMap(p->pdc, imag 436 ReadColorMap(pdc_core *pdc, pdc_file *fp, int number, pdf_colormap *buffer) argument [all...] |