mirror of
https://github.com/eddyem/snippets_library.git
synced 2025-12-06 02:35:20 +03:00
77 lines
2.8 KiB
Plaintext
77 lines
2.8 KiB
Plaintext
Thu Nov 6 11:25:07 MSK 2025
|
|
VERSION 0.3.4:
|
|
add data type:
|
|
- sl_sock_keyno_t - number of key (like key[keyno] = val) using in sl_sock_hitem_t.data
|
|
add functions:
|
|
- sl_sock_keyno_init - init keyno (or use macro SL_SOCK_KEYNO_DEFAUL in assignment)
|
|
- sl_sock_keyno_check - return -1 if there's no keyno, else return its value
|
|
New functional listed in examples/clientserver.c introducing key `flags` that allows to work with bit flags as a whole or by bits like flags[1]=1, flags21=0, flags{31} or flags(14)...
|
|
|
|
Wed Sep 10 14:19:24 MSK 2025
|
|
(still version 0.3.3: I forgot to add changelog last commits)
|
|
- fixed minor bugs and memory leaks
|
|
- use common way for parsing commandline arguments and content of configuration files, so now you can use arrays in configurations (several parameters with same name)
|
|
- add functions:
|
|
- - int sl_remove_quotes(char *string) - remove outern quotes (" and '), return amount of pairs found
|
|
- - void sl_conf_showhelp(int idx, sl_option_t *options) - show help for config file parameters (only long options, without '--' and without exit(1) at the end of function)
|
|
- - void sl_parseargs_hf(int *argc, char ***argv, sl_option_t *options, void (*helpfun)(int, sl_option_t*)) - now this funtion available for external using, parsing of arguments with user help function
|
|
|
|
Dec 16 2024
|
|
|
|
VERSION 0.2.1:
|
|
RENAME:
|
|
initial_setup -> sl_init
|
|
dtime -> sl_dtime
|
|
my_alloc -> sl_alloc
|
|
mmapbuf -> sl_mmapuf_t
|
|
My_mmap -> sl_mmap
|
|
My_munmap -> sl_munmap
|
|
restore_console -> sl_restore_con
|
|
setup_con -> sl_setup_con
|
|
read_console -> sl_read_con
|
|
mygetchar -> sl_getchar
|
|
throw_random_seed -> sl_random_seed
|
|
get_available_mem -> sl_mem_avail
|
|
TTY_descr -> sl_tty_t
|
|
close_tty -> sl_tty_close
|
|
new_tty -> sl_tty_new
|
|
tty_open -> sl_tty_open
|
|
read_tty -> sl_tty_read
|
|
tty_timeout -> sl_tty_tmout
|
|
write_tty -> sl_tty_write
|
|
conv_spd -> sl_tty_convspd
|
|
str2double -> sl_str2d
|
|
globlog -> sl_globlog
|
|
sl_loglevel -> sl_loglevel_e
|
|
sl_log -> sl_log_t
|
|
argfn -> sl_argfn_t
|
|
argtype -> sl_argtype_e
|
|
hasarg -> sl_hasarg_e
|
|
myoption -> sl_option_t
|
|
mysuboption -> sl_suboption_t
|
|
showhelp -> sl_showhelp
|
|
parseargs -> sl_parseargs
|
|
change_helpstring -> sl_helpstring
|
|
get_suboption -> sl_get_suboption
|
|
iffound_default -> sl_iffound_deflt
|
|
check4running -> sl_check4running
|
|
readPSname -> sl_getPSname
|
|
struct buff_node -> struct sl_buff_node
|
|
List -> sl_list_t
|
|
list_push_tail -> sl_list_push_tail
|
|
list_push -> sl_list_push
|
|
list_pop -> sl_list_pop
|
|
Remove deprecated code (openlogfile, putlog)
|
|
Remove "bool" type (change to int)
|
|
FIXED bug with several only long options with same shortopt mark (like 0)
|
|
Add simple config files, so you can move some of your parameters settings to it
|
|
|
|
|
|
Wed Dec 23 17:22:39 MSK 2020
|
|
|
|
VERSION 0.1.1:
|
|
add tty_timeout()
|
|
fix read_tty() for disconnect
|
|
add logging
|
|
add sl_libversion()
|