summaryrefslogtreecommitdiff
path: root/Build/source/texk/ps2pk/pktest.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2014-12-16 08:47:28 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2014-12-16 08:47:28 +0000
commitb60ee0010b8e89430860ec587af1a5abe303b014 (patch)
tree60a7e51807a390e31d8074be5991e4198aeb80ec /Build/source/texk/ps2pk/pktest.c
parentc44bc902114ef48c9c6af7814ca67b3a5644e749 (diff)
texk/ps2pk (1.7): Additional tests
git-svn-id: svn://tug.org/texlive/trunk@35838 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ps2pk/pktest.c')
-rw-r--r--Build/source/texk/ps2pk/pktest.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/Build/source/texk/ps2pk/pktest.c b/Build/source/texk/ps2pk/pktest.c
index c6fc7ea8b71..61ae6d59acd 100644
--- a/Build/source/texk/ps2pk/pktest.c
+++ b/Build/source/texk/ps2pk/pktest.c
@@ -17,12 +17,13 @@ int testing = 1;
#include "basics.h" /* fatal() */
#include "pkout.h"
-main(int argc, char *argv[])
+static int next_pixel(void);
+
+int main(int argc, char *argv[])
{
int done, C = 0, W = 0, H = 0, c;
const char *myname;
char *pkname, comment[256];
- int next_pixel();
myname = argv[0];
while (--argc > 0 && (*++argv)[0] == '-') {
@@ -64,12 +65,13 @@ main(int argc, char *argv[])
pk_char(C, 640796, 25, W, H, -2, 28, next_pixel);
pk_postamble();
pk_close();
+ return 0;
}
/* This function delivers the pixels from the character's bounding box
* from left to right and from top to bottom.
*/
-int next_pixel()
+static int next_pixel(void)
{ int c;
do { c = getchar();
if (c==EOF) fatal("reading past end of file!\n");