]> Kevux Git Server - fll/commit
Update: Callback changes and improvements.
authorKevin Day <Kevin@kevux.org>
Sun, 9 Feb 2025 06:20:23 +0000 (00:20 -0600)
committerKevin Day <Kevin@kevux.org>
Sun, 9 Feb 2025 06:20:23 +0000 (00:20 -0600)
commit25c4556c3eab46de5fcd4d126345622988a8d067
treebcf3985ee3be9ec4e4895989fd8e0ba71ed07213
parent4ef32f60d0955c25cf419233d37b8a615a70286e
Update: Callback changes and improvements.

The `void *(*)(void *)` function structure is being used so add that as a function callback type `f_void_pointer_call_t`.

Add `fl_print_call_t` function callback type.

Rename the console parameter callback from `callback` to `on_match`.
Add `f_console_parameters_call_t` function callback type.
Fix documentation comment where `length` should instead be `used`.

The `void_main` are now replaced with literal `main` type now that the typedef structure improvements are in place.

Shorten the `callback` name to `call`.
Use more typedefs for functions.
This better takes advantage of how functions are a "first class citizen" in C.
76 files changed:
build/stand_alone/byte_dump.config.h
build/stand_alone/example.config.h
build/stand_alone/fake.config.h
build/stand_alone/firewall.config.h
build/stand_alone/utf8.config.h
level_0/f_console/c/console.c
level_0/f_console/c/console/common.h
level_0/f_directory/c/directory/recurse_do.h
level_0/f_thread/c/thread.c
level_0/f_thread/c/thread.h
level_0/f_type/c/type/state.h
level_0/f_type/c/type/void.h
level_1/fl_print/c/print/common.h
level_3/fake/c/main/main.c
level_3/fss_read/c/basic/fss_read.c
level_3/fss_read/c/basic/fss_read.h
level_3/fss_read/c/basic/main.c
level_3/fss_read/c/basic_list/fss_read.c
level_3/fss_read/c/basic_list/fss_read.h
level_3/fss_read/c/basic_list/main.c
level_3/fss_read/c/embedded_list/fss_read.c
level_3/fss_read/c/embedded_list/fss_read.h
level_3/fss_read/c/embedded_list/main.c
level_3/fss_read/c/embedded_list/process.c
level_3/fss_read/c/embedded_list/process.h
level_3/fss_read/c/extended/fss_read.c
level_3/fss_read/c/extended/fss_read.h
level_3/fss_read/c/extended/main.c
level_3/fss_read/c/extended_list/fss_read.c
level_3/fss_read/c/extended_list/fss_read.h
level_3/fss_read/c/extended_list/main.c
level_3/fss_read/c/main/common.c
level_3/fss_read/c/main/common.h
level_3/fss_read/c/main/common/type.h
level_3/fss_read/c/main/fss_read.c
level_3/fss_read/c/main/fss_read.h
level_3/fss_read/c/main/main.c
level_3/fss_read/c/main/main.h
level_3/fss_read/c/main/print/data.c
level_3/fss_read/c/main/process.c
level_3/fss_read/c/main/process.h
level_3/fss_read/c/payload/fss_read.c
level_3/fss_read/c/payload/fss_read.h
level_3/fss_read/c/payload/main.c
level_3/fss_read/c/payload/print.c
level_3/fss_write/c/basic/fss_write.c
level_3/fss_write/c/basic/fss_write.h
level_3/fss_write/c/basic/main.c
level_3/fss_write/c/basic_list/fss_write.c
level_3/fss_write/c/basic_list/fss_write.h
level_3/fss_write/c/basic_list/main.c
level_3/fss_write/c/embedded_list/fss_write.c
level_3/fss_write/c/embedded_list/fss_write.h
level_3/fss_write/c/embedded_list/main.c
level_3/fss_write/c/extended/fss_write.c
level_3/fss_write/c/extended/fss_write.h
level_3/fss_write/c/extended/main.c
level_3/fss_write/c/extended_list/fss_write.c
level_3/fss_write/c/extended_list/fss_write.h
level_3/fss_write/c/extended_list/main.c
level_3/fss_write/c/main/common.c
level_3/fss_write/c/main/common.h
level_3/fss_write/c/main/common/type.h
level_3/fss_write/c/main/fss_write.c
level_3/fss_write/c/main/fss_write.h
level_3/fss_write/c/main/main.c
level_3/fss_write/c/main/main.h
level_3/fss_write/c/payload/fss_write.c
level_3/fss_write/c/payload/fss_write.h
level_3/fss_write/c/payload/main.c
level_3/iki_read/c/main/common/type.c
level_3/iki_read/c/main/common/type.h
level_3/iki_read/c/main/iki_read.c
level_3/iki_read/c/main/process.c
level_3/iki_write/c/main/common/type.h
level_3/iki_write/c/main/iki_write.c