예제 #1
0
static int
pdf_lex_cmap(fz_stream *file, pdf_lexbuf *buf)
{
	int tok = pdf_lex(file, buf);

	/* RJW: Lost debugging here: "cannot parse cmap token" */

	if (tok == PDF_TOK_KEYWORD)
		tok = pdf_cmap_token_from_keyword(buf->scratch);

	return tok;
}
예제 #2
0
static int
pdf_lex_cmap(fz_stream *file, char *buf, int n, int *sl)
{
	int tok = pdf_lex(file, buf, n, sl);

	/* RJW: Lost debugging here: "cannot parse cmap token" */

	if (tok == PDF_TOK_KEYWORD)
		tok = pdf_cmap_token_from_keyword(buf);

	return tok;
}