mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
parent
dfbafb68e2
commit
984c2824e3
1 changed files with 4 additions and 2 deletions
|
@ -98,8 +98,9 @@ threadmain(int argc, char **argv)
|
||||||
Biobuf *b;
|
Biobuf *b;
|
||||||
enum { Ninput = 16 };
|
enum { Ninput = 16 };
|
||||||
uchar buf[Ninput+1];
|
uchar buf[Ninput+1];
|
||||||
int readstdin;
|
int readstdin, haveppi;
|
||||||
|
|
||||||
|
haveppi = 0;
|
||||||
ARGBEGIN{
|
ARGBEGIN{
|
||||||
/* "temporary" debugging options */
|
/* "temporary" debugging options */
|
||||||
case 'P':
|
case 'P':
|
||||||
|
@ -127,6 +128,7 @@ threadmain(int argc, char **argv)
|
||||||
reverse = 1;
|
reverse = 1;
|
||||||
break;
|
break;
|
||||||
case 'p':
|
case 'p':
|
||||||
|
haveppi = 1;
|
||||||
ppi = atoi(EARGF(usage()));
|
ppi = atoi(EARGF(usage()));
|
||||||
break;
|
break;
|
||||||
case 'b':
|
case 'b':
|
||||||
|
@ -223,7 +225,7 @@ threadmain(int argc, char **argv)
|
||||||
else if(strncmp((char*)buf, "x T ", 4) == 0)
|
else if(strncmp((char*)buf, "x T ", 4) == 0)
|
||||||
doc = inittroff(b, argc, argv, buf, Ninput);
|
doc = inittroff(b, argc, argv, buf, Ninput);
|
||||||
else {
|
else {
|
||||||
if(ppi != 100) {
|
if(haveppi) {
|
||||||
fprint(2, "page: you can't specify -p with graphic files\n");
|
fprint(2, "page: you can't specify -p with graphic files\n");
|
||||||
wexits("-p and graphics");
|
wexits("-p and graphics");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue