shithub: util

Download patch

ref: 3815536a83ec0d536db00d6c5c0d2a60ec90ed8e
parent: a03388e2a74912510f3c78f0c72f622e59364dde
author: glenda <glenda@kingship>
date: Tue Aug 15 02:22:09 EDT 2023

blah

--- a/flip.c
+++ b/flip.c
@@ -131,7 +131,7 @@
 }
 
 void
-main(int argc, char **argv){
+main(){
 	Rune rune;
 	char buf[8192 + UTFmax];
 	char *ptr;
--- a/iching.c
+++ b/iching.c
@@ -9,7 +9,6 @@
 	int lines[6];
 	int linesproc[6];
 	long value;
-	char bytes[3];
 	uchar table[64] = { 2, 23, 8, 20, 16, 35, 45, 12,
 						15, 52, 39, 53, 62, 56, 31, 33,
 						7, 4, 29, 59, 40, 64, 47, 6,
--- /dev/null
+++ b/mkfile
@@ -1,0 +1,20 @@
+</$objtype/mkfile
+
+LDFLAGS=
+ALL=`{ ls *.c | sed 's,.c$,,' | sed 's,^,'^$O^'.,' }
+
+install:V: all
+	for(i in $ALL) {
+		cp $i $home/bin/$objtype/^`{ echo $i | sed 's,^'^$O^'.,,' }
+	}
+
+all:V: $ALL
+
+$O.%: %.$O
+	$LD $LDFLAGS -o $O.$stem $stem.$O
+
+%.$O: %.c
+	$CC $CFLAGS $stem.c
+
+clean:V:
+	rm -f *.[$OS] [$OS].*