Commit graph

112 commits

Author SHA1 Message Date
a8b7d712f2 Update flake 2023-08-10 08:18:03 +12:00
7ff02fbbb1 Move fs.basename and fs.dirname into the path library, create errors.h 2023-08-10 08:14:05 +12:00
18597a772e Improve flake 2023-08-03 17:02:17 +12:00
9108a9f707 Add note about Nix flake in README.md 2023-08-03 13:00:43 +12:00
d08e97f935 Add Nix flake
and add result to .gitignore
2023-08-03 12:36:30 +12:00
7a2db8166b "refactor" readme 2023-08-01 17:57:24 +12:00
6590351e48 Add fs.mkdir and fs.rmdir functions, improve lfs.c
- Add fs.mkdir
- Add fs.rmdir
- Change library description
- Re-order #includes
- Use #defines for error messages
2023-08-01 13:35:02 +12:00
659bbb9e90 Rename file -> fs 2023-08-01 13:34:32 +12:00
e18cf6e588 Split clean target up into clean and clean-all in Makefile 2023-07-31 12:36:00 +12:00
84f58824b9 Rename the file module to fs, and make some documentation changes 2023-07-31 07:33:23 +12:00
8e20d1e382 Update to Lua 5.4.6 2023-07-30 09:57:45 +12:00
57a4014981 Fix some ldoc mistakes 2023-07-30 10:05:16 +12:00
479e6ef5ec Add Lua 5.4.6 README 2023-07-26 08:41:19 +12:00
71e00e256f Add *.so.* to gitignore 2023-07-24 16:26:39 +12:00
b723db8874 Remove liblua.so and liblua.so.patch 2023-07-24 16:25:51 +12:00
fa8d6035c5 Improve README.md again 2023-07-26 09:32:46 +12:00
f479ad5102 Improve README.md 2023-07-26 08:40:30 +12:00
75aaaf922f Fix merge conflict in .gitignore 2023-07-24 13:24:06 +12:00
02fae90b69 Rename lcallisto.h -> callisto.h 2023-07-24 12:31:21 +12:00
4e03fc1620 Rename lcallisto.c -> callisto.c 2023-07-24 12:30:41 +12:00
221ef63cd4 Copy libcallisto.so to DESTDIR/PREFIX/lib (-lcallisto is WIP) 2023-07-24 12:16:55 +12:00
c09a47f790 Define LUA_USE_POSIX 2023-07-24 12:09:37 +12:00
929b2a7aa8 Change include in csto.c, revert LUA_INIT_VAR and change slogan 2023-07-24 12:09:17 +12:00
80549e605e State meaning of an extremely sparse array in json documentation 2023-07-24 12:00:30 +12:00
13c4a6b963 Add ldoc to shell.nix 2023-07-23 12:46:42 +12:00
0a3d8bdbf1 Change 'ar rcu' to 'ar cr' 2023-07-18 12:56:02 +12:00
32ad743d61 Update dependency information in README.md 2023-07-18 12:55:44 +12:00
8b4a0f86cf Remove hard dependency on readline, split makefile config into config.mk 2023-07-18 12:38:03 +12:00
a72a34370c Use clang over gcc in shell.nix 2023-07-18 10:55:37 +12:00
4b6f9f315e Add shell.nix 2023-07-18 10:20:32 +12:00
58a21b1e97 Minify CSS reset section 2023-07-18 10:14:46 +12:00
ca54eca195 Use luaL_argerror over luaL_error in cl.parseopts 2023-07-09 21:43:04 +12:00
9329d60c45 Use if statement over ternary in cl.parseopts 2023-07-09 21:40:47 +12:00
1696efaca1 Rewrite some of lcl.c so it is branchless 2023-07-09 21:21:35 +12:00
07164e0cf2 Add byte and ubyte #defines in util.h 2023-07-09 21:16:53 +12:00
3da66e8932 Complete json documentation 2023-07-09 18:03:10 +12:00
9e9d3e0213 Remove some crap in external/json 2023-07-09 16:39:49 +12:00
612a22678b Remove warnings from lcl.c and lfile.c by fixing some issues 2023-07-09 16:19:37 +12:00
f2ff542bcb Remove los.c and lmath.c, and put their functions in the bundled Lua source 2023-07-09 16:18:10 +12:00
05bdda5d05 Add function callisto_openall(lua_State *) 2023-07-08 18:46:09 +12:00
941722cb01 Rename callistoopen_* functions to luaopen_* 2023-07-08 18:35:59 +12:00
6918a0de04 Line up __index with __newindex in the metatable for environ 2023-07-02 08:41:09 +12:00
b2c028a3cb Add documentation on math.lerp 2023-07-02 08:40:09 +12:00
69b4227271 Split process.pid into two functions: process.pid (get the current process's PID) and process.pidof (get another process's PID) 2023-07-02 08:39:46 +12:00
c62d4056e6 Use the environ table over the environment library 2023-07-02 08:15:17 +12:00
97f527fde8 Remove unnecessary (char *) casts 2023-07-01 19:29:22 +12:00
be27e32ad2 Add .editorconfig 2023-07-01 09:57:28 +12:00
d1c7b71043 Define streq macro in util.h and use it over strcmp in lprocess.c 2023-07-01 09:53:43 +12:00
bcdb57b4dd Add credit to OpenBSD for strlcat and strlcpy 2023-07-01 09:53:08 +12:00
4fb243af7b Add lextra.c and extra library, with sleep() now part of it instead of in os 2023-07-01 09:52:01 +12:00