Skip to content

Commit eb050c1

Browse files
committed
pdf_io: add some comments about the origin of the new code
1 parent 5625031 commit eb050c1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

crates/pdf_io/pdf_io/dpx-dvi.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2495,6 +2495,8 @@ scan_special_config (const char **start, const char *end, int *opt_flags,
24952495
int *compression_level,
24962496
double *annot_grow_x, double *annot_grow_y)
24972497
{
2498+
/* This section of code mirrors read_config_special() in `dvipdfm-x/dvipdfmx.c`. */
2499+
24982500
skip_white(start, end);
24992501
if (*start >= end)
25002502
return;
@@ -2512,6 +2514,8 @@ scan_special_config (const char **start, const char *end, int *opt_flags,
25122514
arg = parse_ident(start, end);
25132515
}
25142516

2517+
/* This section of code implements a subset of do_args_second_pass() in the same file. */
2518+
25152519
if (streq_ptr(option, "C") && arg && opt_flags) {
25162520
char *num_end;
25172521
int flags = (unsigned) strtol(arg, &num_end, 0);

0 commit comments

Comments
 (0)