AmendHub

jcs

/

subtext

/

amendments

/

settings.c

Amendments on January 24, 2024


Amendments on November 28, 2023

*: Move views out of database to flat files

Remove half-baked view editor and cache file contents in memory.
Add a sysop menu option to reload them.
When opening the database, if the command key is held down, prevent
opening the last-opened database and prompt for a different one.
jcs made amendment 566 4 months ago

Amendments on November 17, 2023

settings: When saving an empty template, just delete it

jcs made amendment 551 5 months ago

Amendments on August 28, 2023

settings+sysop: Fix bug in settings editor that can corrupt settings

When hanging up the connection in the settings struct editor without
giving a response, session_menu returns 0, which we then returned
from struct_editor while setting new_config to NULL. Then we wrote
that NULL dereference as the new db config which trashed it :(
When the sesson is ending, make struct_editor return -1 and add an
explicit check in sysop_edit_settings to make sure the new config
isn't NULL.
jcs made amendment 523 8 months ago

Amendments on June 16, 2023

settings: Allow "q" at "more" prompt to abort pagination

jcs made amendment 517 10 months ago

Amendments on March 25, 2023

*: Add more prompt help strings

jcs made amendment 444 about 1 year ago

Amendments on March 17, 2023

settings: Use %ld for printing max

jcs made amendment 438 about 1 year ago

Amendments on March 14, 2023

settings: Paginate long lists in struct_editor

jcs made amendment 415 about 1 year ago

Amendments on March 10, 2023

settings: Make struct_editor use session_menu

Take args for menu additions, and use numbers for struct members
instead of letters
jcs made amendment 387 about 1 year ago

Amendments on March 7, 2023

settings: Use signed longs for min/max

jcs made amendment 362 about 1 year ago

Amendments on March 2, 2023

settings: Handle malloc failure, fix printf format

jcs made amendment 345 about 1 year ago

Amendments on February 28, 2023

struct_editor: Add support for password fields

In session_field_input, if we have a mask character, print the
initial string with it
jcs made amendment 325 about 1 year ago

Amendments on February 5, 2023

*: Minor fixes found by cppcheck and scan-build

Mostly unused variables
jcs made amendment 300 about 1 year ago

Amendments on November 18, 2022

settings: Fix alignment of scrollbars in editor window

jcs made amendment 287 about 1 year ago

Amendments on November 11, 2022

*: Add dynamically configured main menu

The list of action->key pairs can be edited from the console menu,
and doubles as a list of each key->label that we can print for the
default main menu shown to the user when no custom menu is defined.
jcs made amendment 281 about 1 year ago

Amendments on September 8, 2022

util: Sync with upstream

jcs made amendment 246 about 1 year ago

Amendments on July 31, 2022

*: Add malloc annotations

jcs made amendment 226 about 1 year ago

Amendments on July 29, 2022

settings: Fix bogus free

jcs made amendment 223 about 1 year ago

Amendments on July 21, 2022

*: Use NewPtr instead of malloc, add malloc and free debugging

Instead of free(ptr), use xfree(&ptr) and after it calls
DisposePtr(ptr), it will update ptr to point at NULL to catch
use-after-frees.
When MALLOC_DEBUG is defined, each allocation is added to a
list, and removed when freed. If it's not in the list at free
time, it's a double-free. Also, instead of pointing pointers at
NULL, point them to a pre-defined block of zeroes and in the
idle loop, periodically check that this block is still zero. This
will also catch use-after-frees in a more reliable (but costly)
way.
jcs made amendment 220 about 1 year ago

Amendments on July 19, 2022

*: Add session signoff view, remove session_output_template

All remaining uses of session_output_template can use session_printf
which still does {{B}} and {{/B}} parsing.
Change session_output_view to session_output_view_or_printf to make it
easier to print a view and fallback to a string, rather than having to
check the result of session_output_view everywhere.
jcs made amendment 218 about 1 year ago