Commit Graph

20 Commits

Author SHA1 Message Date
Kartik K. Agaram 101c59d8cb experiment: drop -Wshadow
I'm totally fine with lexical scope in other languages. Why does it feel
like such a big deal in C?
2022-03-03 18:15:26 -08:00
Kartik K. Agaram 3180e3e4fb typo 2022-02-08 18:30:02 -08:00
Kartik K. Agaram a3a207d2e3 more generic build target in luasocket 2022-01-24 17:32:42 -08:00
Kartik K. Agaram b97291602b instrument some obvious syscalls 2022-01-02 22:36:33 -08:00
Kartik K. Agaram 49a03587ef indent 2022-01-02 22:20:48 -08:00
Kartik K. Agaram df5cd41637 rename 2022-01-02 15:46:46 -08:00
Kartik K. Agaram 6ae7bf91b1 network calls are now sandboxed
I _think_ I don't need to gate other socket calls; you can't do anything
without bind() and connect(). And they should be good places to dump
more precise details later about the kind of server or client connection
being attempted.
2021-12-25 20:43:19 -08:00
Kartik K. Agaram 8a36b2583c select C99 in luasec
I can't select C99 in luasocket, because I don't know how to include
the definition of struct timespec. All this fucking complexity. But
hopefully things will build on OpenBSD now.
2021-11-27 07:28:12 -08:00
Kartik K. Agaram fd4ca45ae5 clean up luasocket build file
Teliva is never intended to be "installed" somewhere. Just work inside
its directory and separately share the .tlv files you create. (Though I
don't yet have a good flow for starting a new .tlv file.)
2021-11-27 06:57:38 -08:00
Kartik K. Agaram b40ad26544 more Makefile streamlining
Since everything is in my control there's no need to parameterize
include paths.

It's a struggle to get make to run when it should. Lying that something
is phony stops working when it's a dependency. Commands get
unnecessarily run. Just fucking run recursive makes directly in the
target that depends on them.
2021-11-24 09:28:01 -08:00
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 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 c79527b784 delete final vestiges of embedded luasocket 2021-11-22 17:41:08 -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 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 6bdc3d17a7 inline luasocket
Just builds for now, isn't available yet to Lua code.
2021-11-20 20:26:17 -08:00