diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/pdfinfo.c | 16 | ||||
-rw-r--r-- | apps/unix/x11pdf.c | 6 | ||||
-rw-r--r-- | apps/unix/ximage.c | 2 | ||||
-rw-r--r-- | apps/windows/winmain.c | 24 |
4 files changed, 25 insertions, 23 deletions
diff --git a/apps/pdfinfo.c b/apps/pdfinfo.c index b2938027..73ed6148 100644 --- a/apps/pdfinfo.c +++ b/apps/pdfinfo.c @@ -286,7 +286,7 @@ gatherfonts(int page, fz_obj *pageobj, fz_obj *dict) for (k = 0; k < fonts; k++) if (fz_tonum(font[k]->ref) == fz_tonum(ref) && - fz_togen(font[k]->ref) == fz_togen(ref)) + fz_togen(font[k]->ref) == fz_togen(ref)) break; if (k < fonts) @@ -388,7 +388,7 @@ gatherimages(int page, fz_obj *pageobj, fz_obj *dict) for (k = 0; k < images; k++) if (fz_tonum(image[k]->ref) == fz_tonum(ref) && - fz_togen(image[k]->ref) == fz_togen(ref)) + fz_togen(image[k]->ref) == fz_togen(ref)) break; if (k < images) @@ -459,7 +459,7 @@ gatherforms(int page, fz_obj *pageobj, fz_obj *dict) for (k = 0; k < forms; k++) if (fz_tonum(form[k]->ref) == fz_tonum(ref) && - fz_togen(form[k]->ref) == fz_togen(ref)) + fz_togen(form[k]->ref) == fz_togen(ref)) break; if (k < forms) @@ -512,12 +512,12 @@ gatherpsobjs(int page, fz_obj *pageobj, fz_obj *dict) if (subtype && !fz_isname(subtype)) return fz_throw("not a xobject subtype (%d %d R)", fz_tonum(ref), fz_togen(ref)); if (strcmp(fz_toname(type), "PS") && - (strcmp(fz_toname(type), "Form") || strcmp(fz_toname(subtype), "PS"))) + (strcmp(fz_toname(type), "Form") || strcmp(fz_toname(subtype), "PS"))) continue; for (k = 0; k < psobjs; k++) if (fz_tonum(psobj[k]->ref) == fz_tonum(ref) && - fz_togen(psobj[k]->ref) == fz_togen(ref)) + fz_togen(psobj[k]->ref) == fz_togen(ref)) break; if (k < psobjs) @@ -566,7 +566,7 @@ gathershadings(int page, fz_obj *pageobj, fz_obj *dict) for (k = 0; k < shadings; k++) if (fz_tonum(shading[k]->ref) == fz_tonum(ref) && - fz_togen(shading[k]->ref) == fz_togen(ref)) + fz_togen(shading[k]->ref) == fz_togen(ref)) break; if (k < shadings) @@ -635,7 +635,7 @@ gatherpatterns(int page, fz_obj *pageobj, fz_obj *dict) for (k = 0; k < patterns; k++) if (fz_tonum(pattern[k]->ref) == fz_tonum(ref) && - fz_togen(pattern[k]->ref) == fz_togen(ref)) + fz_togen(pattern[k]->ref) == fz_togen(ref)) break; if (k < patterns) @@ -771,6 +771,7 @@ printinfo(char *filename, int show, int page) printf("MediaBox: "); printf("\n"); for (i = 0; i < dims; i++) + { printf(PAGE_FMT "[ %g %g %g %g ]\n", dim[i]->page, fz_tonum(dim[i]->pageobj), fz_togen(dim[i]->pageobj), @@ -778,6 +779,7 @@ printinfo(char *filename, int show, int page) dim[i]->u.dim.bbox->y0, dim[i]->u.dim.bbox->x1, dim[i]->u.dim.bbox->y1); + } printf("\n"); for (i = 0; i < dims; i++) diff --git a/apps/unix/x11pdf.c b/apps/unix/x11pdf.c index ac4fe6d6..68c93ac1 100644 --- a/apps/unix/x11pdf.c +++ b/apps/unix/x11pdf.c @@ -472,7 +472,7 @@ static void usage(void) static void winawaitevent(struct timeval *tmo, struct timeval *tmo_at) { if (tmo_at->tv_sec == 0 && tmo_at->tv_usec == 0 && - tmo->tv_sec == 0 && tmo->tv_usec == 0) + tmo->tv_sec == 0 && tmo->tv_usec == 0) XNextEvent(xdpy, &xevt); else { @@ -568,7 +568,7 @@ int main(int argc, char **argv) winawaitevent(&tmo, &tmo_at); if (tmo_at.tv_sec != 0 && tmo_at.tv_usec != 0 && - tmo.tv_sec == 0 && tmo.tv_usec == 0) + tmo.tv_sec == 0 && tmo.tv_usec == 0) { /* redraw page */ winblit(&gapp); @@ -587,7 +587,7 @@ int main(int argc, char **argv) if (gapp.image) { if (xevt.xconfigure.width != reqw || - xevt.xconfigure.height != reqh) + xevt.xconfigure.height != reqh) gapp.shrinkwrap = 0; } pdfapp_onresize(&gapp, diff --git a/apps/unix/ximage.c b/apps/unix/ximage.c index 5b03f559..90116026 100644 --- a/apps/unix/ximage.c +++ b/apps/unix/ximage.c @@ -364,7 +364,7 @@ ximage_init(Display *display, int screen, Visual *visual) /* identify code for MIT-SHM extension */ if (XQueryExtension(display, "MIT-SHM", &major, &event, &error) && - XShmQueryExtension(display)) + XShmQueryExtension(display)) info.shmcode = major; /* intercept errors looking for SHM code */ diff --git a/apps/windows/winmain.c b/apps/windows/winmain.c index cd515418..a3ecd6ca 100644 --- a/apps/windows/winmain.c +++ b/apps/windows/winmain.c @@ -40,8 +40,8 @@ void associate(char *argv0) /* HKEY_CLASSES_ROOT\.pdf */ if (RegCreateKeyEx(HKEY_CLASSES_ROOT, - ".pdf", 0, NULL, REG_OPTION_NON_VOLATILE, - KEY_WRITE, NULL, &key, &disp)) + ".pdf", 0, NULL, REG_OPTION_NON_VOLATILE, + KEY_WRITE, NULL, &key, &disp)) return; if (RegSetValueEx(key, "", 0, REG_SZ, "MuPDF", strlen("MuPDF")+1)) @@ -52,8 +52,8 @@ void associate(char *argv0) /* HKEY_CLASSES_ROOT\MuPDF */ if (RegCreateKeyEx(HKEY_CLASSES_ROOT, - "MuPDF", 0, NULL, REG_OPTION_NON_VOLATILE, - KEY_WRITE, NULL, &key, &disp)) + "MuPDF", 0, NULL, REG_OPTION_NON_VOLATILE, + KEY_WRITE, NULL, &key, &disp)) return; if (RegSetValueEx(key, "", 0, REG_SZ, name, strlen(name)+1)) @@ -62,8 +62,8 @@ void associate(char *argv0) /* HKEY_CLASSES_ROOT\MuPDF\DefaultIcon */ if (RegCreateKeyEx(key, - "DefaultIcon", 0, NULL, REG_OPTION_NON_VOLATILE, - KEY_WRITE, NULL, &kicon, &disp)) + "DefaultIcon", 0, NULL, REG_OPTION_NON_VOLATILE, + KEY_WRITE, NULL, &kicon, &disp)) return; sprintf(tmp, "%s,1", argv0); @@ -75,16 +75,16 @@ void associate(char *argv0) /* HKEY_CLASSES_ROOT\MuPDF\Shell\Open\Command */ if (RegCreateKeyEx(key, - "shell", 0, NULL, REG_OPTION_NON_VOLATILE, - KEY_WRITE, NULL, &kshell, &disp)) + "shell", 0, NULL, REG_OPTION_NON_VOLATILE, + KEY_WRITE, NULL, &kshell, &disp)) return; if (RegCreateKeyEx(kshell, - "open", 0, NULL, REG_OPTION_NON_VOLATILE, - KEY_WRITE, NULL, &kopen, &disp)) + "open", 0, NULL, REG_OPTION_NON_VOLATILE, + KEY_WRITE, NULL, &kopen, &disp)) return; if (RegCreateKeyEx(kopen, - "command", 0, NULL, REG_OPTION_NON_VOLATILE, - KEY_WRITE, NULL, &kcmd, &disp)) + "command", 0, NULL, REG_OPTION_NON_VOLATILE, + KEY_WRITE, NULL, &kcmd, &disp)) return; sprintf(tmp, "\"%s\" \"%%1\"", argv0); |