git: 9front

Download patch

ref: 64ac95ab9322cd7472f48c0e3d60733308f88ab0
parent: ba562a48d3e73476ffaf4b283b4de0b103967f5c
author: Jacob Moody <moody@posixcafe.org>
date: Thu Jan 2 19:41:09 EST 2025

aux/mnihongo: formatting

--- a/sys/src/cmd/aux/mnihongo/mnihongo.c
+++ b/sys/src/cmd/aux/mnihongo/mnihongo.c
@@ -190,7 +190,8 @@
 } fonts[128];
 static int nfonts;
 
-void memopenfont(char *name)
+void
+memopenfont(char *name)
 {
 	Biobuf *b;
 	int i;
@@ -224,7 +225,8 @@
 	Bterm(b);
 }
 
-Memsubfont* memgetfont(Rune r)
+Memsubfont*
+memgetfont(Rune r)
 {
 	int i;
 
@@ -241,7 +243,8 @@
 	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 @@
 	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 @@
 }
 
 
-void	Bgetstr(Biobuf *bp, char *s)	/* get a string */
+void
+Bgetstr(Biobuf *bp, char *s)	/* get a string */
 {
 	int c;
 
@@ -310,7 +315,8 @@
 	*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 @@
 	*s = 0;
 }
 
-void	Bgetint(Biobuf *bp, int *n)	/* get an integer */
+void
+Bgetint(Biobuf *bp, int *n)	/* get an integer */
 {
 	double d;
 
--