r_num_abs:
- Make r_num_abs static inline
- Use unsigned long long type when defining TB macro
- Use st64 instead of long long
r_num_units:
- Add len argument for buf in r_num_units
- Add PB and EB for r_num_units
- Always display one number after decimal point
* This change simplifies the code
- Use long double type as assigning from ut64 to double cause data loss
r_num_tail_base:
- Use isxdigit (fast) instead of isHexDigit (slower)
- Rename nth to get_nth_nibble
Update all functions to use with new r_num_units:
- Remove side effect when using in other functions like cb_printf
* Trim trailing .0 when input is power of 2
* Clear terminal backbuffer
* Password not saved in command history
* Show timestamp of last attempt
* Do a random sleep after every read to avoid time attacks
* ^Z is disabled
* Can be used from shell `r2 -qcLL --`
- Split r_log in r_vlog/r_log and make r_assert_log use r_vlog because it
needs to provide a va_list.
- Rename _r_internal_logging to r_log because that's a R_API function
and it needs a good name
- Make R2_CHECKS_LEVEL dependent on 'buildtype' option
- Make R_LOGLVL_WARN the default log level when in debug mode (default)
- introduce ASSERT_STDOUT macro to print assert failures to stdout
- use ASSERT_STDOUT in the Travis env with asan
- use list of callbacks in RLog instead of just one.
* - avoid the ugly lack of space between the command and its description
in the usage lines.
- avoid the confusing sections (cf. 'i?')
- prettier general help (cf. '?') -> use r_core_cmd_help instead of
r_cons_printf (#7967)
with help and advices from jeisonwi
* - strlen() is better than sizeof()
- coding style correction.
Fixes async-signal-safety and changing errno within the signal handler
for SIGWINCH, which can cause crashes and maybe security issues.
For async-signal-safety make the signal handler just set a flag, which
is checked for while waiting for input (pselect).
SIGWINCH is blocked process-wide, except in pselect.
* Feat: autocompletion widget for offset prompt in visual mode
* Fix: screen refresh when erasing sel_widget
* Refactor: many small changes to the autocompletion widget
* Fix: colors in selection widget taken from palette
* Refactor: do not use utf8 inside selection widget
* Refactor: rename ANSI_ESC_CLEAR_LINE to R_CONS_CLEAR_LINE
* Add RConsContext
* Swap cons in tasks using RConsContext
* Create cons context for background tasks
* Move event_interrupt to RConsContext
* Fix breaking main cons from signal
* Make r_print_is_interrupted() use callback