]> git.pld-linux.org Git - packages/evince.git/blob - evince-types.patch
- updated to 3.36.5
[packages/evince.git] / evince-types.patch
1 --- evince-3.36.5/backend/dvi/mdvi-lib/sysdeps.h.orig   2017-10-03 20:15:33.000000000 +0200
2 +++ evince-3.36.5/backend/dvi/mdvi-lib/sysdeps.h        2020-06-16 17:20:53.413539122 +0200
3 @@ -45,10 +45,12 @@
4  #if SIZEOF_LONG == 4
5  typedef unsigned long  Uint32;
6  typedef long           Int32;
7 +#define PRIInt32 "ld"
8  #else  /* SIZEOF_LONG != 4 */
9  #if SIZEOF_INT == 4
10  typedef unsigned int   Uint32;
11  typedef int            Int32;
12 +#define PRIInt32 "d"
13  #else  /* SIZEOF_INT != 4 */
14  #ifdef __cplusplus
15  #include "No.appropriate.32bit.native.type.found.Fix.sysdeps.h"
16 --- evince-3.36.5/backend/dvi/mdvi-lib/dviread.c.orig   2020-06-11 13:59:00.000000000 +0200
17 +++ evince-3.36.5/backend/dvi/mdvi-lib/dviread.c        2020-06-16 17:30:50.300305509 +0200
18 @@ -1287,7 +1287,7 @@
19         } else {
20                 h = dvi->pos.h + ch->tfmwidth;
21                 hh = dvi->pos.hh + pixel_round(dvi, ch->tfmwidth);
22 -               SHOWCMD((dvi, "setchar", num, "(%d,%d) h:=%d%c%d=%d, hh:=%d (%s)\n",
23 +               SHOWCMD((dvi, "setchar", num, "(%d,%d) h:=%d%c%"PRIInt32"=%d, hh:=%d (%s)\n",
24                         dvi->pos.hh, dvi->pos.vv,
25                         DBGSUM(dvi->pos.h, ch->tfmwidth, h), hh,
26                         font->fontname));
27 @@ -1309,7 +1309,7 @@
28         if(a > 0 && b > 0) {
29                 h = vrule_round(dvi, a); 
30                 SHOWCMD((dvi, opcode == DVI_SET_RULE ? "setrule" : "putrule", -1,
31 -                       "width %d, height %d (%dx%d pixels)\n",
32 +                       "width %"PRIInt32", height %"PRIInt32" (%dx%d pixels)\n",
33                         b, a, w, h));
34                 /* the `draw' functions expect the origin to be at the top left
35                  * corner of the rule, not the bottom left, as in DVI files */
36 @@ -1319,7 +1319,7 @@
37                 }
38         } else { 
39                 SHOWCMD((dvi, opcode == DVI_SET_RULE ? "setrule" : "putrule", -1,
40 -                       "(moving left only, by %d)\n", b));
41 +                       "(moving left only, by %"PRIInt32")\n", b));
42         }
43                         
44         if(opcode == DVI_SET_RULE) {
45 @@ -1380,7 +1380,7 @@
46         h = dvi->pos.h;
47         hh = move_horizontal(dvi, arg);
48         SHOWCMD((dvi, "right", opcode - DVI_RIGHT1 + 1,
49 -               "%d h:=%d%c%d=%d, hh:=%d\n",
50 +               "%"PRIInt32" h:=%d%c%"PRIInt32"=%d, hh:=%d\n",
51                 arg, DBGSUM(h, arg, dvi->pos.h), hh));
52         dvi->pos.hh = hh;
53         return 0;
54 @@ -1395,7 +1395,7 @@
55         v = dvi->pos.v;
56         vv = move_vertical(dvi, arg);
57         SHOWCMD((dvi, "down", opcode - DVI_DOWN1 + 1,
58 -               "%d v:=%d%c%d=%d, vv:=%d\n",
59 +               "%"PRIInt32" v:=%d%c%"PRIInt32"=%d, vv:=%d\n",
60                 arg, DBGSUM(v, arg, dvi->pos.v), vv));
61         dvi->pos.vv = vv;
62         return 0;
63 @@ -1494,11 +1494,11 @@
64         else
65                 ref = dvi->findref(dvi, arg);
66         if(ref == NULL) {
67 -               dvierr(dvi, _("font %d is not defined\n"), arg);
68 +               dvierr(dvi, _("font %"PRIInt32" is not defined\n"), arg);
69                 return -1;
70         }
71         SHOWCMD((dvi, "fnt", opcode - DVI_FNT1 + 1,
72 -               "current font is %s (id %d)\n", 
73 +               "current font is %s (id %"PRIInt32")\n", 
74                 ref->ref->fontname, arg));
75         dvi->currfont = ref;
76         return 0;
77 @@ -1538,11 +1538,11 @@
78         dskip(dvi, 12);
79         dskip(dvi, duget1(dvi) + duget1(dvi));
80         if(ref == NULL) {
81 -               dvierr(dvi, _("font %d is not defined in postamble\n"), arg);
82 +               dvierr(dvi, _("font %"PRIInt32" is not defined in postamble\n"), arg);
83                 return -1;
84         }
85         SHOWCMD((dvi, "fntdef", opcode - DVI_FNT_DEF1 + 1,
86 -               "%d -> %s (%d links)\n",
87 +               "%"PRIInt32" -> %s (%d links)\n",
88                 ref->fontid, ref->ref->fontname,
89                 ref->ref->links));
90         return 0;
This page took 0.060945 seconds and 3 git commands to generate.