tr2post and aux/download; download is a shell script in $PLAN9/bin.
This commit is contained in:
parent
8a3cbc1579
commit
e8fb1d3efb
21 changed files with 110 additions and 74 deletions
|
|
@ -209,7 +209,7 @@ endpage(void) {
|
|||
int
|
||||
cat(char *filename) {
|
||||
Biobuf *bfile;
|
||||
Biobufhdr *Bfile;
|
||||
Biobuf *Bfile;
|
||||
int n;
|
||||
static char buf[Bsize];
|
||||
|
||||
|
|
|
|||
|
|
@ -40,6 +40,8 @@ BOOLEAN isinstring(void);
|
|||
void startpage(void);
|
||||
void endpage(void);
|
||||
int cat(char *);
|
||||
int Bgetfield(Biobufhdr *, int, void *, int);
|
||||
int Bgetfield(Biobuf*, int, void *, int);
|
||||
void *galloc(void *, int, char *);
|
||||
void pagelist(char *);
|
||||
|
||||
int safe_tmpnam(char*);
|
||||
|
|
|
|||
|
|
@ -27,10 +27,9 @@ extern int writing; /* and output encoding */
|
|||
extern char *optarg; /* for getopt() */
|
||||
extern int optind;
|
||||
|
||||
extern void interrupt();
|
||||
extern void error();
|
||||
extern int cat();
|
||||
extern void concat();
|
||||
extern void interrupt(int);
|
||||
extern int cat(char*);
|
||||
extern void concat(double*);
|
||||
|
||||
/*
|
||||
* extern char *tempnam(char*,char*);
|
||||
|
|
|
|||
|
|
@ -18,6 +18,10 @@
|
|||
int nolist = 0; /* number of specified ranges */
|
||||
int olist[50]; /* processing range pairs */
|
||||
|
||||
int str_convert(char **str, int err);
|
||||
void error(int kind, char *mesg, unsigned int a1, unsigned int a2, unsigned int a3);
|
||||
int cat(char *file);
|
||||
|
||||
/*****************************************************************************/
|
||||
extern int str_convert();
|
||||
|
||||
|
|
@ -44,7 +48,7 @@ out_list(str)
|
|||
stop = str_convert(&str, 9999);
|
||||
|
||||
if ( start > stop )
|
||||
error(FATAL, "illegal range %d-%d", start, stop);
|
||||
error(FATAL, "illegal range %d-%d", start, stop, 0);
|
||||
|
||||
olist[nolist++] = start;
|
||||
olist[nolist++] = stop;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<../config
|
||||
|
||||
LIB=com.a
|
||||
LIB=libcom.a
|
||||
OFILES=bbox.$O\
|
||||
glob.$O\
|
||||
misc.$O\
|
||||
|
|
|
|||
|
|
@ -24,6 +24,9 @@ Request request[MAXREQUEST]; /* next page or global request */
|
|||
int nextreq = 0; /* goes in request[nextreq] */
|
||||
char *requestfile = REQUESTFILE; /* default lookup file */
|
||||
|
||||
void dumprequest(char *want, char *file, FILE *fp_out);
|
||||
extern void error(int errtype, char *fmt, ...);
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ mkfname(char *tmpdir, char *prefix)
|
|||
return fname;
|
||||
}
|
||||
|
||||
extern int mkstemp();
|
||||
extern int mkstemp(char*);
|
||||
|
||||
char*
|
||||
safe_tempnam(char *tmpdir, char *prefix)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue