From ef5a8a7337a579a5247aaad83cbce55cf57e590a Mon Sep 17 00:00:00 2001 From: Jacob Moody Date: Fri, 3 Jan 2025 00:41:09 +0000 Subject: [PATCH] aux/mnihongo: formatting --- sys/src/cmd/aux/mnihongo/mnihongo.c | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/sys/src/cmd/aux/mnihongo/mnihongo.c b/sys/src/cmd/aux/mnihongo/mnihongo.c index 0fd5783b9..cf0b20b4c 100644 --- a/sys/src/cmd/aux/mnihongo/mnihongo.c +++ b/sys/src/cmd/aux/mnihongo/mnihongo.c @@ -190,7 +190,8 @@ struct { } fonts[128]; static int nfonts; -void memopenfont(char *name) +void +memopenfont(char *name) { Biobuf *b; int i; @@ -224,7 +225,8 @@ Invalid: Bterm(b); } -Memsubfont* memgetfont(Rune r) +Memsubfont* +memgetfont(Rune r) { int i; @@ -241,7 +243,8 @@ Memsubfont* memgetfont(Rune r) return nil; } -int kanji(char *s) /* very special pleading */ +int +kanji(char *s) /* very special pleading */ { /* dump as kanji char if looks like one */ Rune r; char hex[500]; @@ -258,7 +261,8 @@ int kanji(char *s) /* very special pleading */ return 1; } -char *pschar(char *s, char *hex, int *wid, int *ht) +char* +pschar(char *s, char *hex, int *wid, int *ht) { Point chpt, spt; Memimage *b; @@ -296,7 +300,8 @@ char *pschar(char *s, char *hex, int *wid, int *ht) } -void Bgetstr(Biobuf *bp, char *s) /* get a string */ +void +Bgetstr(Biobuf *bp, char *s) /* get a string */ { int c; @@ -310,7 +315,8 @@ void Bgetstr(Biobuf *bp, char *s) /* get a string */ *s = 0; } -void Bgetline(Biobuf *bp, char *s) /* get a line, including newline */ +void +Bgetline(Biobuf *bp, char *s) /* get a line, including newline */ { int c; @@ -322,7 +328,8 @@ void Bgetline(Biobuf *bp, char *s) /* get a line, including newline */ *s = 0; } -void Bgetint(Biobuf *bp, int *n) /* get an integer */ +void +Bgetint(Biobuf *bp, int *n) /* get an integer */ { double d;