diff options
author | wkj <devnull@localhost> | 2004-05-16 07:54:22 +0000 |
---|---|---|
committer | wkj <devnull@localhost> | 2004-05-16 07:54:22 +0000 |
commit | b855148c9b6d28fedfd083d037bcf246f1913d92 (patch) | |
tree | 0075eb6ea37427fa48b78cb937fabc04175cead1 /src/cmd/postscript/common/misc.c | |
parent | 61f5c35c9465f0702739b41249a664d409f0482c (diff) | |
download | plan9port-b855148c9b6d28fedfd083d037bcf246f1913d92.tar.gz plan9port-b855148c9b6d28fedfd083d037bcf246f1913d92.tar.bz2 plan9port-b855148c9b6d28fedfd083d037bcf246f1913d92.zip |
Checkpoint.
Diffstat (limited to 'src/cmd/postscript/common/misc.c')
-rw-r--r-- | src/cmd/postscript/common/misc.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/cmd/postscript/common/misc.c b/src/cmd/postscript/common/misc.c index 25bd37aa..198a9351 100644 --- a/src/cmd/postscript/common/misc.c +++ b/src/cmd/postscript/common/misc.c @@ -8,6 +8,8 @@ #include <ctype.h> #include <sys/types.h> #include <fcntl.h> +#include <unistd.h> +#include <string.h> #include "gen.h" #include "ext.h" @@ -17,7 +19,9 @@ int nolist = 0; /* number of specified ranges */ int olist[50]; /* processing range pairs */ /*****************************************************************************/ +extern int str_convert(); +void out_list(str) char *str; @@ -53,7 +57,7 @@ out_list(str) } /* End of out_list */ /*****************************************************************************/ - +int in_olist(num) int num; @@ -80,7 +84,7 @@ in_olist(num) } /* End of in_olist */ /*****************************************************************************/ - +void setencoding(name) char *name; @@ -110,7 +114,7 @@ setencoding(name) } /* End of setencoding */ /*****************************************************************************/ - +int cat(file) char *file; @@ -145,6 +149,7 @@ cat(file) /*****************************************************************************/ +int str_convert(str, err) char **str; @@ -173,6 +178,7 @@ str_convert(str, err) /*****************************************************************************/ +void error(kind, mesg, a1, a2, a3) int kind; @@ -191,9 +197,9 @@ error(kind, mesg, a1, a2, a3) fprintf(stderr, "%s: ", prog_name); fprintf(stderr, mesg, a1, a2, a3); if ( lineno > 0 ) - fprintf(stderr, " (line %d)", lineno); + fprintf(stderr, " (line %ld)", lineno); if ( position > 0 ) - fprintf(stderr, " (near byte %d)", position); + fprintf(stderr, " (near byte %ld)", position); putc('\n', stderr); } /* End if */ |