Kartik K. Agaram
1bf2504a8b
clean up a warning and a bit of duplication
...
Now we have 2 probably-valid warnings caused by my edits, and 1
false-positive.
2021-11-22 19:25:05 -08:00
Kartik K. Agaram
76329c0206
standardize warning flags everywhere
...
I'd like to enable -Wextra as well, but that creates some false
positives.
I've at least made my changes clean w.r.t. -Wextra.
Now we have 4 remaining warnings with gcc 9.3 that seem genuine. Need to
fix those.
2021-11-22 19:01:07 -08:00
Kartik K. Agaram
e77f3eb9f9
.
2021-11-22 18:47:56 -08:00
Kartik K. Agaram
11d370493a
drop a warning implied by -Wall
2021-11-22 18:37:11 -08:00
Kartik K. Agaram
ef68041137
standardize CFLAGS in luasocket
2021-11-22 18:36:04 -08:00
Kartik K. Agaram
3b4d7131cb
standardize CFLAGS
...
Adding -Wpedantic creates a new warning. Leaving it alone for now:
https://stackoverflow.com/questions/31526876/casting-when-using-dlsym
2021-11-22 18:11:38 -08:00
Kartik K. Agaram
97a0254042
standardize CFLAGS in luasec
...
What in the world is up with the $MYCFLAGS convention in these Lua
makefiles? I don't know, but I'm going to leave it undisturbed as far as
possible.
2021-11-22 18:06:20 -08:00
Kartik K. Agaram
c4ecb9a53d
standardize on gcc
...
cc and gcc are identical on my system. But why rely on that.
2021-11-22 17:56:45 -08:00
Kartik K. Agaram
c79527b784
delete final vestiges of embedded luasocket
2021-11-22 17:41:08 -08:00
Kartik K. Agaram
70a2e1db1d
delete most of the embedded luasocket in luasec
...
Hilariously, I wasn't linking against it in the first place.
2021-11-22 17:37:41 -08:00
Kartik K. Agaram
d40471e9dc
luasec: fix 'make clean'
2021-11-22 00:12:37 -08:00
Kartik K. Agaram
5a484efe8c
https now working!
...
Still extremely ugly:
- I've inlined all the namespaces under ssl, so you need to know that
context and config are related to ssl.
- luasec comes with its own copy of luasocket. I haven't deduped that
yet.
2021-11-21 15:55:52 -08:00
Kartik K. Agaram
3b44b9827d
basic http requests starting to work
...
In the process we're starting to load almost all of luasocket by
default. And everything is working as expected, no unpleasant surprises.
2021-11-21 15:07:42 -08:00
Kartik K. Agaram
fdd87c5eda
now. we. have. JSON.
...
Completely unmodified from upstream.
2021-11-21 14:22:20 -08:00
Kartik K. Agaram
15b43d3092
drop some redundant `require`s
2021-11-20 23:35:22 -08:00
Kartik K. Agaram
548d59f918
luasocket now loading properly
...
I still haven't tried actually running it.
2021-11-20 23:34:29 -08:00
Kartik K. Agaram
02acfa7c9c
rename
2021-11-20 21:03:38 -08:00
Kartik K. Agaram
fa6faaa700
extract a helper
2021-11-20 20:35:37 -08:00
Kartik K. Agaram
6bdc3d17a7
inline luasocket
...
Just builds for now, isn't available yet to Lua code.
2021-11-20 20:26:17 -08:00
Kartik K. Agaram
38b21ef79b
bugfix: support running from top-level
...
Unfortunately we can't currently run teliva from anywhere else :/
2021-11-20 19:59:32 -08:00
Kartik K. Agaram
d6ff198e78
get rid of a distracting name
...
No distinction now between the C and Lua versions of the curses library.
We build them all together in one place.
2021-11-20 16:33:41 -08:00
Kartik K. Agaram
b618bfc7cf
port changes from minimal to maximal version
...
From lcurseslib.c to lcurses/ directory.
2021-11-20 16:33:41 -08:00
Kartik K. Agaram
8a3e81b4b0
report errors when calling non-existent functions
2021-11-20 10:13:58 -08:00
Kartik K. Agaram
e693448b65
inline in C is not worth the trouble
...
https://merveilles.town/@akkartik/107310347838372198
2021-11-20 10:10:26 -08:00
Kartik K. Agaram
b43747ecef
inline lcurses maximally rather than minimally
...
Until now we had just the bare minimum bindings needed for the demos
built so far. Now we have all of lcurses building in place with minimal
changes.
The changes in this commit can run hanoi.lua when inlined into Lua 5.1,
but don't work with Teliva.
2021-11-19 19:11:03 -08:00
Kartik K. Agaram
720d728a8d
tested on Mac OS
2021-11-14 12:33:25 -08:00
Kartik K. Agaram
f40bc31cc3
import life.teliva into image format
2021-11-14 11:10:18 -08:00
Kartik K. Agaram
58d2d596ea
cleaner error handling
2021-11-14 09:55:13 -08:00
Kartik K. Agaram
a3ca7877da
.
2021-11-14 09:48:41 -08:00
Kartik K. Agaram
7b91691b14
remain in editor on error
2021-11-14 09:48:41 -08:00
Kartik K. Agaram
b3b844c5f7
.
2021-11-14 09:48:41 -08:00
Kartik K. Agaram
2cc6912e85
find _some_ way to show error on initial load
2021-11-14 09:48:41 -08:00
Kartik K. Agaram
4ab3ccebb5
more menu cleanup
2021-11-14 09:48:40 -08:00
Kartik K. Agaram
af4fbe97bf
.
2021-11-14 09:48:40 -08:00
Kartik K. Agaram
33331a7c50
drop support for non-image Lua scripts
...
We still have no story for error messages. We'll work on that next.
2021-11-14 07:59:15 -08:00
Kartik K. Agaram
b50e393770
draw the browse dialog the same way
2021-11-14 07:53:20 -08:00
Kartik K. Agaram
12d738d5ce
dialogs are not status messages
2021-11-14 07:34:23 -08:00
Kartik K. Agaram
b4e3936170
smarter image browsing
...
- distinguish between unused functions and data
- don't hardcode a specific convention for the curses window object
2021-11-14 07:11:30 -08:00
Kartik K. Agaram
5be743324c
slightly more robust on-disk format
...
Looks like Lua supports a little bit of programmability in its
multi-line string literals. Even though I can't find this documented
anywhere.
2021-11-14 00:52:25 -08:00
Kartik K. Agaram
b64a21771e
janky way to cancel browsing
2021-11-14 00:38:00 -08:00
Kartik K. Agaram
d9aac11889
slightly more obvious browse dialog
2021-11-14 00:27:59 -08:00
Kartik K. Agaram
9db1cd174f
cleaner dialogs
2021-11-14 00:23:20 -08:00
Kartik K. Agaram
e451206e06
no, use Esc to cancel
...
It inserts an ugly pause for ghastly historical reasons having to do
with the origins of terminals. But hopefully this isn't a common case.
2021-11-14 00:07:28 -08:00
Kartik K. Agaram
c5261224df
use word at cursor when it's not at start of line
2021-11-14 00:02:04 -08:00
Kartik K. Agaram
8e9534ed4f
editor: use ctrl-g to cancel dialogs
2021-11-13 23:59:05 -08:00
Kartik K. Agaram
711d764b37
jump to word at cursor by default
2021-11-13 23:55:08 -08:00
Kartik K. Agaram
812b930815
ctrl-u to clear response in go menu
2021-11-13 23:27:51 -08:00
Kartik K. Agaram
d79e394a30
reset cursor position when switching definitions
2021-11-13 23:27:06 -08:00
Kartik K. Agaram
3c2a5e26ae
.
2021-11-13 23:22:00 -08:00
Kartik K. Agaram
902ce6009d
cleaner layout for a function's code and data
2021-11-13 23:14:52 -08:00