Skip to content

Commit e5354d4

Browse files
committed
engine_xdvipdfmx: move variable declarations to top of function, just in case
1 parent eb050c1 commit e5354d4

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

crates/engine_xdvipdfmx/xdvipdfmx/dvipdfmx.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,11 @@ dvipdfmx_main (
339339
int has_id = 0;
340340
unsigned char id1[16], id2[16];
341341
struct pdf_setting settings;
342+
int pdf_version_major = 1;
343+
int pdf_version_minor = 5;
344+
int compression_level = 9;
345+
double annot_grow_x = 0;
346+
double annot_grow_y = 0;
342347

343348
assert(pdf_filename);
344349
assert(dvi_filename);
@@ -373,11 +378,6 @@ dvipdfmx_main (
373378

374379
select_paper(paperspec);
375380

376-
int pdf_version_major = 1;
377-
int pdf_version_minor = 5;
378-
int compression_level = 9;
379-
double annot_grow_x = 0;
380-
double annot_grow_y = 0;
381381
bookmark_open = 0;
382382
key_bits = 40;
383383
permission = 0x003C;

0 commit comments

Comments
 (0)