tr2post and aux/download; download is a shell script in $PLAN9/bin.

This commit is contained in:
wkj 2004-05-17 02:24:15 +00:00
parent 8a3cbc1579
commit e8fb1d3efb
21 changed files with 110 additions and 74 deletions

View file

@ -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;