Unified · Split
| @@ -16,7 +16,7 @@ harm. · 15 unmodified lines | ||
| 16 | 16 | * `xml.[ch]` XML parser, works as a streaming parser as well |
| 17 | 17 | |
| 18 | 18 | * `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 | |
| 20 | 20 | * `helpmeport` generates files needed to port a Unix library or a binary |
| 21 | 21 | * `watch` watch-like tool, imagine |
| 22 | 22 | * `st-xx-lha-convert` extract `*.lha` archives and convert samples to WAV, on UNIX |
| @@ -1,8 +1,10 @@ | ||
| 1 | 1 | #!/bin/rc |
| 2 | 2 | |
| 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 | |
| 6 | 8 | |
| 7 | 9 | fn clean { |
| 8 | 10 | echo $1 | sed 's/.*!([^!]+)!.*/\1/' |
| @@ -17,9 +19,9 @@ for(s in /n/registry/tcp*){ · 8 unmodified lines | ||
| 17 | 19 | #!/bin/rc |
| 18 | 20 | chan=$1 |
| 19 | 21 | 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 | |
| 23 | 25 | ... |
| 24 | 26 | chmod +x /tmp/chatcat |
| 25 | 27 | |
| @@ -103,6 +103,12 @@ qpnext(Trie *t, char **pk, int *plen, void **pv) · 102 unmodified lines | ||
| 103 | 103 | *pv = t->leaf.v; |
| 104 | 104 | return 0; |
| 105 | 105 | } |
| 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 | + } | |
| 106 | 112 | |
| 107 | 113 | return -1; |
| 108 | 114 | } |