History

merge

Sigrid Solveig Haflínudóttir committed 2 years ago

Commit bd75d822 parents a1a213f fe3ec1a3 files · +15 −7Browse files

Unified · Split

3 files
  1. README.md +1 −1
  2. gridup +8 −6
  3. qp.c +6 −0
README.md+1−1
@@ -16,7 +16,7 @@ harm. · 15 unmodified lines
1616 * `xml.[ch]` XML parser, works as a streaming parser as well
1717
1818 * `clear` removes all program output from the terminal, leaving only commands used
19−* `gridup` connects to 9p.zone, mounts stuff from its registry and starts chat windows
19+* `gridup` connects to 9grid chat
2020 * `helpmeport` generates files needed to port a Unix library or a binary
2121 * `watch` watch-like tool, imagine
2222 * `st-xx-lha-convert` extract `*.lha` archives and convert samples to WAV, on UNIX
gridup+8−6
@@ -1,8 +1,10 @@
11 #!/bin/rc
22
3−srv tcp!registry.9p.zone!6675 registry /n/registry
4−srv tcp!chat.9p.zone!9990 9p.zone.chat /n/chat.9p.zone
5−srv -c tcp!9p.zone!9991 9p.zone.disk /n/disk
3+# 9p.zone domain is gone
4+#srv tcp!registry.9p.zone!6675 registry /n/registry
5+#srv -c tcp!9p.zone!9991 9p.zone.disk /n/disk
6+
7+srv tcp!chat.only9fans.com!9990 chat.only9fans.com /n/9chat
68
79 fn clean {
810 echo $1 | sed 's/.*!([^!]+)!.*/\1/'
@@ -17,9 +19,9 @@ for(s in /n/registry/tcp*){ · 8 unmodified lines
1719 #!/bin/rc
1820 chan=$1
1921 label $chan
20−echo JOIN $nick to chat >>/n/chat.9p.zone/$chan
21−cat /n/chat.9p.zone/$chan &
22−while() cat | sed '1s/^/'$nick' → /' >>/n/chat.9p.zone/$chan
22+echo JOIN $nick to chat >>/n/9chat/$chan
23+cat /n/9chat/$chan &
24+while() cat | sed '1s/^/'$nick' → /' >>/n/9chat/$chan
2325 ...
2426 chmod +x /tmp/chatcat
2527
qp.c+6−0
@@ -103,6 +103,12 @@ qpnext(Trie *t, char **pk, int *plen, void **pv) · 102 unmodified lines
103103 *pv = t->leaf.v;
104104 return 0;
105105 }
106+ if(*pk == t->leaf.k || strcmp(*pk, t->leaf.k) == 0){
107+ *pk = nil;
108+ *plen = 0;
109+ *pv = nil;
110+ return -1;
111+ }
106112
107113 return -1;
108114 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t