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
|
|
@ -4,6 +4,9 @@
|
|||
#include "../common/common.h"
|
||||
#include "tr2post.h"
|
||||
|
||||
#undef isspace
|
||||
#define isspace risspace
|
||||
|
||||
int
|
||||
isspace(Rune r)
|
||||
{
|
||||
|
|
@ -11,9 +14,8 @@ isspace(Rune r)
|
|||
}
|
||||
|
||||
int
|
||||
Bskipws(Biobufhdr *bp) {
|
||||
Bskipws(Biobuf *bp) {
|
||||
int r;
|
||||
char c[UTFmax];
|
||||
int sindex = 0;
|
||||
|
||||
/* skip over initial white space */
|
||||
|
|
@ -54,7 +56,7 @@ asc2dig(char c, int base) {
|
|||
*/
|
||||
|
||||
int
|
||||
Bgetfield(Biobufhdr *bp, int type, void *thing, int size) {
|
||||
Bgetfield(Biobuf *bp, int type, void *thing, int size) {
|
||||
int r;
|
||||
Rune R;
|
||||
char c[UTFmax];
|
||||
|
|
@ -65,6 +67,8 @@ Bgetfield(Biobufhdr *bp, int type, void *thing, int size) {
|
|||
int dig;
|
||||
unsigned int u = 0;
|
||||
|
||||
r = 0;
|
||||
|
||||
/* skip over initial white space */
|
||||
if (Bskipws(bp) < 0)
|
||||
return(-1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue