aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-12-05 22:07:53 +0100
committerbptato <nincsnevem662@gmail.com>2024-12-05 22:17:52 +0100
commitd7cdd61ecc10d6cf2a5b89f0b16bbbf4bed95437 (patch)
tree1ea258553058c71fd7f1e1f77eca646343784ce1
parentb8a0d0e9245abaa287a28c3c6ca217112dd38358 (diff)
downloadchawan-d7cdd61ecc10d6cf2a5b89f0b16bbbf4bed95437.tar.gz
Fix casing
-rw-r--r--doc/hacking.md4
-rw-r--r--src/config/chapath.nim6
-rw-r--r--src/main.nim2
-rw-r--r--src/utils/eprint.nim2
-rw-r--r--test/net/run.nim2
5 files changed, 8 insertions, 8 deletions
diff --git a/doc/hacking.md b/doc/hacking.md
index 57000a5c..fe9e0e60 100644
--- a/doc/hacking.md
+++ b/doc/hacking.md
@@ -249,7 +249,7 @@ to check like that than looking it up in the syscall table.)
You may find these links useful.
-### WhatWG
+### WHATWG
* HTML: <https://html.spec.whatwg.org/multipage/>. Includes everything
and then some more.
@@ -274,7 +274,7 @@ Note that these sometimes change daily, especially the HTML standard.
Draft" 2.2 version: <https://drafts.csswg.org/css2/>. Not many
differences, but usually it's worth to check 2.2 too.
-Good news is that unlike WhatWG specs, these don't change daily. Bad
+Good news is that unlike WHATWG specs, these don't change daily. Bad
news is that CSS 2.1 was the last real CSS version, and newer features
are spread accross a bunch of random documents with questionable status
of stability: <https://www.w3.org/Style/CSS/specs.en.html>.
diff --git a/src/config/chapath.nim b/src/config/chapath.nim
index 7f4c9375..15924e3d 100644
--- a/src/config/chapath.nim
+++ b/src/config/chapath.nim
@@ -71,9 +71,9 @@ proc stateDollar(ctx: var UnquoteContext; c: char): ChaPathResult[void] =
ctx.s &= $getCurrentProcessId()
ctx.state = usNormal
of '0':
- # Note: we intentionally use getAppFileName so that any symbolic links
+ # Note: we intentionally use getAppFilename so that any symbolic links
# are resolved.
- ctx.s &= getAppFileName()
+ ctx.s &= getAppFilename()
ctx.state = usNormal
of AsciiAlpha:
ctx.identStr = $c
@@ -122,7 +122,7 @@ proc stateCurly(ctx: var UnquoteContext; c: char): ChaPathResult[void] =
case c
of '}':
if ctx.identStr == "0":
- ctx.s &= getAppFileName()
+ ctx.s &= getAppFilename()
else:
ctx.s &= $getEnv(ctx.identStr)
ctx.identStr = ""
diff --git a/src/main.nim b/src/main.nim
index 2840034c..fc78a78b 100644
--- a/src/main.nim
+++ b/src/main.nim
@@ -236,7 +236,7 @@ proc initConfig(ctx: ParamParseContext; config: Config;
const libexecPath {.strdefine.} = "$CHA_BIN_DIR/../libexec/chawan"
proc main() =
- putEnv("CHA_BIN_DIR", getAppFileName().untilLast('/'))
+ putEnv("CHA_BIN_DIR", getAppFilename().untilLast('/'))
putEnv("CHA_LIBEXEC_DIR", ChaPath(libexecPath).unquoteGet())
let forkserver = newForkServer()
let urandom = newPosixStream("/dev/urandom", O_RDONLY, 0)
diff --git a/src/utils/eprint.nim b/src/utils/eprint.nim
index b58bae77..b45f3bc1 100644
--- a/src/utils/eprint.nim
+++ b/src/utils/eprint.nim
@@ -7,7 +7,7 @@ template eprint0(s: varargs[string]) =
if i != 0:
o &= ' '
o &= s[i]
- when nimVm:
+ when nimvm:
echo o
else:
o &= '\n'
diff --git a/test/net/run.nim b/test/net/run.nim
index a88c9501..b62f099a 100644
--- a/test/net/run.nim
+++ b/test/net/run.nim
@@ -33,7 +33,7 @@ proc main() {.async.} =
let port = server.getPort()
case fork()
of 0:
- let cmd = getAppFileName().untilLast('/') & "/run.sh " & $uint16(port)
+ let cmd = getAppFilename().untilLast('/') & "/run.sh " & $uint16(port)
discard execl("/bin/sh", "sh", "-c", cstring(cmd), nil)
quit(1)
of -1: