1 |
– |
/* Copyright (c) 1992 Regents of the University of California */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* oki20.c - program to dump pixel file to OkiMate 20 printer. |
6 |
|
*/ |
7 |
|
|
8 |
|
#include <stdio.h> |
9 |
< |
#ifdef MSDOS |
13 |
< |
#include <fcntl.h> |
14 |
< |
#endif |
9 |
> |
#include <time.h> |
10 |
|
|
11 |
+ |
#include "platform.h" |
12 |
|
#include "color.h" |
13 |
|
#include "resolu.h" |
14 |
|
|
31 |
|
char *argv[]; |
32 |
|
{ |
33 |
|
int i, status = 0; |
34 |
< |
#ifdef MSDOS |
35 |
< |
extern int _fmode; |
36 |
< |
_fmode = O_BINARY; |
41 |
< |
setmode(fileno(stdin), O_BINARY); |
42 |
< |
setmode(fileno(stdout), O_BINARY); |
43 |
< |
#endif |
34 |
> |
SET_DEFAULT_BINARY(); |
35 |
> |
SET_FILE_BINARY(stdin); |
36 |
> |
SET_FILE_BINARY(stdout); |
37 |
|
if (argc > 1 && !strcmp(argv[1], "-p")) { |
38 |
|
dofilter++; |
39 |
|
argv++; argc--; |
40 |
|
} |
48 |
– |
#ifdef _IOLBF |
49 |
– |
stdout->_flag &= ~_IOLBF; |
50 |
– |
#endif |
41 |
|
if (argc < 2) |
42 |
|
status = printp(NULL) == -1; |
43 |
|
else |