summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2017-01-21 18:10:14 -0500
committerJune McEnroe <june@causal.agency>2017-01-21 18:10:14 -0500
commitef766160bfd6eca50044eae6c86142f5e7b29ee8 (patch)
treecf5ffc2af3cd19bc3ea354a2f7d9d7f9873eda84
parentUpdate README (diff)
downloadsrc-ef766160bfd6eca50044eae6c86142f5e7b29ee8.tar.gz
src-ef766160bfd6eca50044eae6c86142f5e7b29ee8.zip
Add short descriptions to C utilities
-rwxr-xr-x.bin/clock.c2
-rwxr-xr-x.bin/jrp.c2
-rwxr-xr-x.bin/pbcopy.c2
-rwxr-xr-x.bin/pbd.c2
-rwxr-xr-x.bin/xx.c2
5 files changed, 10 insertions, 0 deletions
diff --git a/.bin/clock.c b/.bin/clock.c
index 43bad259..f153126a 100755
--- a/.bin/clock.c
+++ b/.bin/clock.c
@@ -2,6 +2,8 @@
 exec cc -Wall -Wextra -pedantic $@ -o $(dirname $0)/clock $0
 #endif
 
+// Fuzzy clock for display in tmux.
+
 #include <time.h>
 #include <stdio.h>
 #include <sysexits.h>
diff --git a/.bin/jrp.c b/.bin/jrp.c
index d6a9272f..9317ac8e 100755
--- a/.bin/jrp.c
+++ b/.bin/jrp.c
@@ -2,6 +2,8 @@
 exec cc -Wall -Wextra -pedantic $@ $0 -ledit -o $(dirname $0)/jrp
 #endif
 
+// JIT RPN calculator.
+
 #include <err.h>
 #include <histedit.h>
 #include <stdbool.h>
diff --git a/.bin/pbcopy.c b/.bin/pbcopy.c
index c341497a..852da68d 100755
--- a/.bin/pbcopy.c
+++ b/.bin/pbcopy.c
@@ -3,6 +3,8 @@ cc -Wall -Wextra -pedantic $@ -o $(dirname $0)/pbcopy $0 && \
 exec cc -Wall -Wextra -pedantic -DPBPASTE $@ -o $(dirname $0)/pbpaste $0
 #endif
 
+// pbcopy and pbpaste implementation which connects to pbd.
+
 #include <arpa/inet.h>
 #include <err.h>
 #include <netinet/in.h>
diff --git a/.bin/pbd.c b/.bin/pbd.c
index fda7c941..b01f80c3 100755
--- a/.bin/pbd.c
+++ b/.bin/pbd.c
@@ -2,6 +2,8 @@
 exec cc -Wall -Wextra -pedantic $@ -o $(dirname $0)/pbd $0
 #endif
 
+// TCP server which pipes between macOS pbcopy and pbpaste.
+
 #include <err.h>
 #include <netinet/in.h>
 #include <stdint.h>
diff --git a/.bin/xx.c b/.bin/xx.c
index 9ffd0b9b..6af0d6a7 100755
--- a/.bin/xx.c
+++ b/.bin/xx.c
@@ -2,6 +2,8 @@
 exec cc -Wall -Wextra -pedantic $@ -o $(dirname $0)/xx $0
 #endif
 
+// Hexdump.
+
 #include <ctype.h>
 #include <err.h>
 #include <stdbool.h>
/td> 2021-09-15Factor out common parts of downgrade messagesJune McEnroe Also bump the message cap to 1024 because that is ostensibly useful for replying to older messages. 2021-09-14Add downgrade IRC botJune McEnroe 2021-09-14Sort by title if authors matchJune McEnroe There are probably better things to sort by but title definitely always exists. 2021-09-13Swap-remove tags as they're foundJune McEnroe This makes it even faster. From ~1s on a sqlite3.c amalgamation to ~0.85s. 2021-09-12Replace htagml regex with strncmpJune McEnroe Since ctags only ever produces regular expressions of the form /^re$/ or /^re/ with no other special characters, instead unescape the pattern and simply use strncmp. Running on a sqlite3.c amalgamation, the regex version takes ~37s while the strncmp version takes ~1s, producing identical output. Big win! 2021-09-11Also defer printing comment for lone close-parensJune McEnroe 2021-09-10Publish "git-comment"June McEnroe 2021-09-10Add git comment --pretty optionJune McEnroe 2021-09-08Defer printing comment if line is blank or closing braceJune McEnroe This fixes badly indented comments. 2021-09-08Up default min-repeat to 30 linesJune McEnroe 2021-09-08Handle dirty lines in git-commentJune McEnroe 2021-09-08Document and install git-commentJune McEnroe 2021-09-08Add repeat and all options to git-commentJune McEnroe 2021-09-08Add group threshold to git-commentJune McEnroe