summaryrefslogtreecommitdiff
path: root/Build/source/texk/ps2pkm/encoding.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/ps2pkm/encoding.c')
-rw-r--r--Build/source/texk/ps2pkm/encoding.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/Build/source/texk/ps2pkm/encoding.c b/Build/source/texk/ps2pkm/encoding.c
index 542431016ee..c8e28949a55 100644
--- a/Build/source/texk/ps2pkm/encoding.c
+++ b/Build/source/texk/ps2pkm/encoding.c
@@ -19,6 +19,7 @@
* Version 1.4 (December 1993)
*/
+#include "types.h"
#include "basics.h"
#include <ctype.h>
#include <stdio.h>
@@ -30,8 +31,6 @@ static void remove_string(void);
static void addcc(char *name, int charcode);
static int getcc(char *name);
-extern char *encfile, *afmfile;
-
/* return a pointer to first non space character after occurence of string t,
* the scan starts at pointer s
*/
@@ -121,8 +120,6 @@ static char *nextpsname(void)
return name;
}
-typedef char *encoding[256];
-
void getenc(char **fontname, char **encname, encoding ev, int width[256])
{ int i, len, SCMseen, Ccnt, wx, cc;
FILE *afm;
@@ -256,7 +253,9 @@ static int freenode = 0;
static short root = -1;
static void addcc(char *name, int charcode)
-{ short r, p, q;
+{
+ short p = 0, q;
+ int r = 0;
q = root;
while (q != -1) {