save point

This commit is contained in:
2025-10-04 19:28:26 -04:00
parent 744aaf2bf8
commit c12dbce62c
21 changed files with 546 additions and 489 deletions

View File

@@ -1,43 +0,0 @@
#!/bin/sh
awk '
{
# Start a new string literal
printf "\""
for (i = 1; i <= length($0); i++) {
c = substr($0, i, 1)
if (c == "\\") {
printf "\\\\"
} else if (c == "\"") {
printf "\\\""
} else if (c == "\t") {
printf "\\t"
} else if (c == "\r") {
printf "\\r"
} else if (c == "\n") {
printf "\\n"
} else if (c == "\f") {
printf "\\f"
} else if (c == "\b") {
printf "\\b"
} else if (c == "\a") {
printf "\\a"
} else if (c == "\v") {
printf "\\v"
} else if (c ~ /[[:cntrl:]]/) {
printf "\\x%02x", ord(c)
} else {
printf "%s", c
}
}
# Always end each literal with \n inside, close quote, then newline
printf "\\n\"\n"
}
function ord(str, l, r) {
l = sprintf("%c", 255)
r = sprintf("%c", 0)
return index(l str r, str) - 1
}
'

3
tools/update-gcklib Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
git submodule update --remote --rebase