Commit Graph

484 Commits

Author SHA1 Message Date
Kartik K. Agaram
7295ce050d undo to a specific point
Still highly experimental. I'm not persisting state yet.
2021-11-26 18:05:41 -08:00
Kartik K. Agaram
080ea49d23 standardize screen headings 2021-11-26 18:04:58 -08:00
Kartik K. Agaram
0800f65eff start of 'recent changes' screen
I'm still unclear on precisely what the experience should be here. We
probably don't need all of a version control system. The goal is just to
be able to answer the question, "what did I change recently that caused
things to break?"

For now let's just start with letting people see past versions.
2021-11-26 18:03:20 -08:00
Kartik K. Agaram
283cc7ea52 eliminate tail call using goto 2021-11-26 16:54:45 -08:00
Kartik K. Agaram
0b365d3e4d clean up terminal in a specific situation
The problem: if ever I hit ctrl-e to go to the big picture view and then
hit Esc to go back to running the app, my terminal was messed up after
exiting the app.

Why did I even have this gunk? Perhaps it dates from the time when kilo
was emitting raw escape sequences rather than using ncurses.
2021-11-26 16:39:20 -08:00
Kartik K. Agaram
e699b5a052 dedup an enum 2021-11-26 16:26:13 -08:00
Kartik K. Agaram
5bc52a5cba . 2021-11-26 16:10:02 -08:00
Kartik K. Agaram
2c80411224 . 2021-11-26 16:09:15 -08:00
Kartik K. Agaram
f930b9e7c7 extract a function 2021-11-25 21:04:08 -08:00
Kartik K. Agaram
61ea63adca more stack hygiene 2021-11-25 21:02:27 -08:00
Kartik K. Agaram
f5221ba651 one more curses binding 2021-11-25 20:51:38 -08:00
Kartik K. Agaram
73a22a397e libraries don't need Lua's #defines and whatnot 2021-11-25 20:21:05 -08:00
Kartik K. Agaram
16a98ea1b3 . 2021-11-25 20:16:41 -08:00
Kartik K. Agaram
4d7e99c343 . 2021-11-25 20:13:49 -08:00
Kartik K. Agaram
d6810aba30 dedup definitions in big-picture view
We only want to show most recent version of each binding.
2021-11-25 20:02:10 -08:00
Kartik K. Agaram
4a8691c3dc new shortcut: return to big-picture view 2021-11-25 20:01:40 -08:00
Kartik K. Agaram
f58d5b8354 teliva is now ASan-clean again
At least in short runs.

Encouraging that the problem was in a recent commit (5a63a5ca40 from
yesterday when I introduced version control).

Disabling Address Sanitizer again.
2021-11-25 19:27:30 -08:00
Kartik K. Agaram
05f4482139 make upstream kilo ASan-clean
Many thanks to dirkf for https://github.com/antirez/kilo/pull/73!

However, teliva is still not ASan-clean.
2021-11-25 11:28:05 -08:00
Kartik K. Agaram
6727045165 temporarily start using the address sanitizer 2021-11-25 11:25:28 -08:00
Kartik K. Agaram
103b8e17bb jettison luac
I'm starting to see some heap buffer overruns, which means we have too
much C code.

I noticed this because editing life.tlv no longer works after commit
5a63a5ca4. However, the offending heap overrun has been around long
before that. It's just been a silent bug until now.
2021-11-25 11:22:26 -08:00
Kartik K. Agaram
d606e93839 rename 2021-11-24 12:50:05 -08:00
Kartik K. Agaram
5a63a5ca40 monotonically accumulate versions of definitions
One old drawback now has a new look. Before, we loaded definitions in
order, so global definitions had to exist before other global
definitions that used them. See window and grid in life.tlv. Now we load
definitions in reverse order, so initialization needs to change. Worse,
if we update window, we need to edit grid just to fix the order.

This implies that we can't yet optimize away bindings where there are no
new changes.
2021-11-24 10:10: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
a788f80a92 . 2021-11-24 07:55:39 -08:00
Kartik K. Agaram
b670747d9e consistent file ops
Now we're down to 1 real warning and 1 false positive.
2021-11-24 07:54:48 -08:00
Kartik K. Agaram
aff8afa12d style 2021-11-24 07:48:49 -08:00
Kartik K. Agaram
c0c67859a2 de-duplicate some words in the Readme 2021-11-24 07:43:12 -08:00
Kartik K. Agaram
64b609f743 rename 2021-11-24 07:04:04 -08:00
Kartik K. Agaram
bd9020c5b3 indent 2021-11-24 06:43:32 -08:00
Kartik K. Agaram
a90b33ba16 . 2021-11-23 23:07:34 -08:00
Kartik K. Agaram
acb5e88b3c indent 2021-11-23 22:03:14 -08:00
Kartik K. Agaram
32517f428c consistent style 2021-11-23 22:03:00 -08:00
Kartik K. Agaram
c28174bdf5 chess: tweak colors a bit 2021-11-23 15:00:19 -08:00
Kartik K. Agaram
ae3ef2ac66 chess: extract color parameters 2021-11-23 14:56:51 -08:00
Kartik K. Agaram
76fe92c6e3 chess: extract a new function 2021-11-23 14:54:56 -08:00
Kartik K. Agaram
694e4e5f96 chess: fix inconsistency in light piece color 2021-11-23 14:53:19 -08:00
Kartik K. Agaram
7d96a886d8 . 2021-11-23 09:30:17 -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
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
3e04ab5597 chess: make white pieces red for legibility 2021-11-22 17:45:55 -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
fe9708fd29 clarify implications for the require keyword 2021-11-22 10:52:19 -08:00
Kartik K. Agaram
4dffcacc3a . 2021-11-22 09:08:29 -08:00