diff options
author | Sebastian Rasmussen <sebras@hotmail.com> | 2009-07-05 21:28:18 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@hotmail.com> | 2009-07-05 21:28:18 +0200 |
commit | 9b8e79655f03fccae3a42e0a0bac19d82d71f521 (patch) | |
tree | 8b3b673fa6748fe4821ac568f8d9bf18d64f0187 /apps/unix/x11pdf.c | |
parent | 0e8b28ee6e64685ca9ae1f9ed0e4b0eaf31317b9 (diff) | |
download | mupdf-9b8e79655f03fccae3a42e0a0bac19d82d71f521.tar.xz |
Make internal functions static.
Diffstat (limited to 'apps/unix/x11pdf.c')
-rw-r--r-- | apps/unix/x11pdf.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/unix/x11pdf.c b/apps/unix/x11pdf.c index d19e902f..b8d7c267 100644 --- a/apps/unix/x11pdf.c +++ b/apps/unix/x11pdf.c @@ -98,7 +98,7 @@ char *winpassword(pdfapp_t *app, char *filename) * X11 magic */ -void winopen(void) +static void winopen(void) { XWMHints *hints; @@ -259,7 +259,7 @@ static void invertcopyrect() justcopied = 1; } -void winblit(pdfapp_t *app) +static void winblit(pdfapp_t *app) { int x0 = gapp.panx; int y0 = gapp.pany; @@ -296,7 +296,7 @@ void winrepaint(pdfapp_t *app) dirty = 1; } -void windrawstring(pdfapp_t *app, char *s, int x, int y) +static void windrawstring(pdfapp_t *app, char *s, int x, int y) { int prevfunction; XGCValues xgcv; @@ -316,7 +316,7 @@ void windrawstring(pdfapp_t *app, char *s, int x, int y) XChangeGC(xdpy, xgc, GCFunction, &xgcv); } -void windrawpageno(pdfapp_t *app) +static void windrawpageno(pdfapp_t *app) { char s[100]; @@ -427,7 +427,7 @@ void winopenuri(pdfapp_t *app, char *buf) system(cmd); } -void onkey(int c) +static void onkey(int c) { if (justcopied) { @@ -443,7 +443,7 @@ void onkey(int c) pdfapp_onkey(&gapp, c); } -void onmouse(int x, int y, int btn, int modifiers, int state) +static void onmouse(int x, int y, int btn, int modifiers, int state) { if (state != 0 && justcopied) { @@ -454,13 +454,13 @@ void onmouse(int x, int y, int btn, int modifiers, int state) pdfapp_onmouse(&gapp, x, y, btn, modifiers, state); } -void usage(void) +static void usage(void) { fprintf(stderr, "usage: mupdf [-d password] [-z zoom] [-p pagenumber] file.pdf\n"); exit(1); } -void winawaitevent(struct timeval *tmo, struct timeval *tmo_at) +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) @@ -482,7 +482,7 @@ void winawaitevent(struct timeval *tmo, struct timeval *tmo_at) } } -void winsettmo(struct timeval *tmo, struct timeval *tmo_at) +static void winsettmo(struct timeval *tmo, struct timeval *tmo_at) { struct timeval now; @@ -493,7 +493,7 @@ void winsettmo(struct timeval *tmo, struct timeval *tmo_at) timeradd(&now, tmo, tmo_at); } -void winresettmo(struct timeval *tmo, struct timeval *tmo_at) +static void winresettmo(struct timeval *tmo, struct timeval *tmo_at) { tmo->tv_sec = 0; tmo->tv_usec = 0; |