charstring_start();
while (fscanf(ifp, "%s", line) == 1) {
+ //char*bracket;
if (line[0] == '%') {
/* eat comment to end of line */
while (fgetc(ifp) != '\n' && !feof(ifp))
}
if (line[0] == '}')
break;
+ //if(bracket=strchr(line, '}')) {
+ // *bracket = 0;
+ //}
if (is_integer(line)) {
charstring_int(atoi(line));
} else {
exit(1);
}
}
+ //if(bracket) {
+ // //line ended with }
+ // break;
+ //}
}
charstring_end();
}
/* possibly open input & output files */
if (argc - optind >= 1) {
- ifp = fopen(argv[optind], "r");
+ ifp = fopen(argv[optind], "rb");
if (!ifp) {
fprintf(stderr, "error: cannot open %s for reading\n", argv[1]);
exit(1);
}
}
if (argc - optind >= 2) {
- ofp = fopen(argv[optind + 1], "w");
+ ofp = fopen(argv[optind + 1], "wb");
if (!ofp) {
fprintf(stderr, "error: cannot open %s for writing\n", argv[2]);
exit(1);
{
char *p, *q, *r;
+ /* need to reset this. (For some reason, if ttf2pt1.c fork()s, it doesn't
+ matter whether we reset this or not, triggering a bug which only appears
+ on Win32 */
+ active = 0;
+
pfb = pfbflag;
#endif