summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-19 10:20:11 +0200
committerPaul Buetow <paul@buetow.org>2026-02-19 10:20:11 +0200
commit03b874818315e7dc9fb2ccf26716a0fb65242a57 (patch)
treecc375998c809ded77d920f6a2a2a50241018f016 /src
parent2e81f599a0323e2025883bc1375bf438d1406733 (diff)
Rename func keyword to fun
Replace the `func` language keyword with `fun` throughout: update the scanner's string-to-token mapping, all .fy example scripts, and all documentation files (.txt, .pod, .tex, .man, .html). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'src')
-rw-r--r--src/build.h2
-rw-r--r--src/core/token.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/build.h b/src/build.h
index 9125e92..5029024 100644
--- a/src/build.h
+++ b/src/build.h
@@ -36,7 +36,7 @@
#ifndef BUILD_H
#define BUILD_H
-#define BUILDNR 9680
+#define BUILDNR 9682
#define OS_LINUX
#endif
diff --git a/src/core/token.c b/src/core/token.c
index ea72a82..17f98b2 100644
--- a/src/core/token.c
+++ b/src/core/token.c
@@ -59,7 +59,7 @@ get_tt(char *c_token) {
CHECK("ret") TT_RET;
CHECK("const") TT_CONST;
CHECK("proc") TT_PROC;
- CHECK("func") TT_FUNC;
+ CHECK("fun") TT_FUNC;
CHECK("my") TT_MY;
CHECK("arr") TT_ARR;
CHECK("!") TT_NOT;