1
0
Fork 0
forked from fun/fun
Commit graph

70 commits

Author SHA1 Message Date
43ce9f83af parser: fix variable scoping by defaulting to local scope in functions. (0.41.0)
This change addresses a critical issue where common variable names in
library functions (like 'i', 'n', 'src') were being treated as globals
by default, leading to state collisions and unexpected side effects
across different files.

Changes:
- Modified `src/parser.c` to automatically treat new variables assigned
  within a function body as locals unless they were already declared as
  globals.
- Introduced `sym_find` in the parser to distinguish between finding
  an existing global and creating a new one.
- Reverted `lib/net/cgi.fun` to use standard, short variable names,
  confirming that they no longer interfere with the caller's scope.
- Verified that explicit global updates still work if the variable was
  already defined at the top-level scope.
2026-04-27 02:06:20 +02:00
9bba1e34ec Beautified some code in the cgi.fun library. (0.40.8) 2026-04-27 01:55:01 +02:00
3bcdc83e30 Fixed bug in the cgi.fun library. (0.40.7) 2026-04-27 01:31:34 +02:00
63545ed918 Documentation refactoring. No code changes. (0.40.5) 2026-04-15 01:25:17 +02:00
45dbcde527 Removed all notcurses support. (0.40.3) 2026-04-03 19:00:53 +02:00
3d3c11496f Fixed bug with wrong line numbers in error messages. Some examples refactoring and bug fixes. (0.39.15) 2026-03-30 20:51:04 +02:00
53ccdbda10 Fixed bug with wrong line numbers in error messages. Fixed permissions on examples. (0.39.14) 2026-03-30 19:10:29 +02:00
4956e44e60 Added some await pattern and added a scheduler to the stdlib. Broken! (0.39.13) 2026-03-30 14:53:11 +02:00
6a16e5fb45 Some more HTTP multi-threading Fun. CGI is broken. (0.39.11) 2026-03-26 22:40:51 +01:00
5222f79434 Some more HTTP POST evaluation. Still broken! (0.39.10) 2026-03-26 00:36:52 +01:00
564999709c Added lot more example code. (0.39.8). 2026-03-25 23:38:04 +01:00
3b70d6c92a More CGI Fun. (0.39.7) 2026-03-25 22:44:32 +01:00
db9665f62a Added maps iteration example. (0.39.6). 2026-03-25 21:24:35 +01:00
11d6fd358a Some CGI Fun. (unstable) (0.39.5). 2026-03-25 21:06:15 +01:00
18ac230c21 More notcurses fun. Not stable! (0.39.4) 2026-03-20 20:57:43 +01:00
9016b207b8 Some more stdlib fun and example code and cosmetic changes. (0.38.15) 2026-02-19 21:50:24 +01:00
8a1afc2aa1 Some more stdlib refactoring removing duplicate code. (0.38.10) 2026-02-09 01:43:06 +01:00
794a2354d6 Some more stdlib refactoring removing duplicate code. (0.38.9) 2026-02-09 01:02:49 +01:00
54d94a1f3d Some stdlib refactoring removing duplicate code. (0.38.8) 2026-02-09 00:29:50 +01:00
e017466cc7 Added AES256 support... (0.38.7) 2026-02-08 23:56:21 +01:00
543483041b Some arg Fun in Rust. (0.38.1) 2026-01-29 00:53:34 +01:00
44cf629016 Added some progress bar foo to Console class. (0.37.48) 2026-01-13 03:18:37 +01:00
95a0582608 Added two more examples about classes and console stuff and some stub code. (0.37.46) 2026-01-13 00:26:41 +01:00
fd582f4d3a Very basic Notcurses support. There are bugs! (0.37.45) 2026-01-03 21:11:26 +01:00
d9372ce874 Tons of INI parser fixes to realy make it work. (0.37.40) 2026-01-02 23:20:09 +01:00
8b04622e55 New try to add the ripemd160.fun library, but the new class is still broken. (0.37.39) 2026-01-02 21:48:37 +01:00
1f6bc2b96a Tried to fix the ripemd160.fun library, but it is still broken. (0.37.38) 2026-01-02 21:26:41 +01:00
b32f7e839b Added input_hidden() to ask for passwords in the CLI without echoing the chars. (0.37.37) 2026-01-02 20:12:01 +01:00
9cd76937a3 Some CLI arg fixes. (0.37.36) 2025-12-30 17:51:25 +01:00
6124d1e7fd Added some CLI args support. (0.37.35) 2025-12-30 17:19:31 +01:00
e6b9bd7488 Added more Fun to htdocs/info.fun. (0.37.33) 2025-12-29 20:39:47 +01:00
83281bf2de Added GET and POST support to HTTPServer class. (0.37.32) 2025-12-29 17:24:08 +01:00
a27ff12b08 Added fun_version and env_all as opcodes and some fixes in httpserver. (0.37.30) 2025-12-28 23:36:37 +01:00
17c2b44c1a Added basic script execution to the HTTP server class in stdlib. (0.37.29) 2025-12-28 22:11:19 +01:00
10b75596cd Added HTTP server class to stdlib and an example server written in 100% pure Fun. (0.37.28) 2025-12-28 21:21:34 +01:00
aa8701a5a1 Added more baud rates as constants to serial_open.c. (0.37.27) 2025-12-28 20:37:51 +01:00
384a7e4502 Some more serial stuff. (0.37.24) 2025-12-28 03:00:58 +01:00
21f437ebaf Added RIPEMD-160 support to stdlib in lib/crypt/ripemd160.fun (BROKEN) and some more test scripts to examples/. (0.37.22) 2025-12-28 00:54:55 +01:00
689a716499 Some more Tk fun. (0.37.18) 2025-12-23 23:19:20 +01:00
37c5ae6f58 Added some more HEX (dec_to_hex()) to Fun. (0.37.15) 2025-12-18 10:29:50 +01:00
9577f26e23 Added some more HEX (hex_to_dec()) Fun. (0.3714) 2025-12-18 09:51:57 +01:00
9dc8afc387 Added some more datetime stdlib Fun with examples. And some permission fixes. (0.36.1) 2025-12-10 00:00:46 +01:00
6da1861e12 Added very basic Tk (Tcl) support using. (0.36.0) 2025-12-09 23:13:12 +01:00
db450a871c Added some more libxml2 examples to Fun. (0.35.1) 2025-12-09 04:31:41 +01:00
e65756226d Added very basic XML support using libxml2. (0.35.0) 2025-12-09 03:59:49 +01:00
8fa142e763 Some more .ini Fun. (0.34.1) 2025-11-30 03:33:18 +01:00
3411a4d846 Added CRC32 and CRC32C classes to stdlib. (0.31.0) 2025-11-26 20:36:40 +01:00
d9804d9bf8 Added PCRE2 support. (0.29.0) 2025-11-25 22:52:43 +01:00
afb0e8cd3a Added JSON support. (0.28.0) 2025-11-25 00:51:48 +01:00
4056ef2ce0 Hmmm... (0.27.2) 2025-10-18 06:46:00 +02:00