riscv-openocd/src/helper
Jessica Clarke 1ae6b07b45 binarybuffer: Invert buf_cmp* return value and rename to buf_eq*
The current semantics are a bit confusing, as the return value looks
like memcmp (0/false being equal) but the bool return type means one
likely expects true to mean equal. Make this clearer by switching them
out for buf_eq* functions that do that instead.

Checkpatch-ignore: UNSPECIFIED_INT
Change-Id: Iee0c5af794316aab5327cb9c168051fabd3bc1cb
Signed-off-by: Jessica Clarke <jrtc27@jrtc27.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8490
Tested-by: jenkins
Reviewed-by: Evgeniy Naydanov <evgeniy.naydanov@syntacore.com>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
2024-09-21 09:04:06 +00:00
..
Makefile.am helper: add compiler.h to handle compiler specific workarounds 2023-03-18 21:57:27 +00:00
align.h helper: add align.h 2021-08-14 13:29:43 +01:00
bin2char.sh helper/bin2char: drop trailing empty line 2023-12-24 14:27:23 +00:00
binarybuffer.c binarybuffer: Invert buf_cmp* return value and rename to buf_eq* 2024-09-21 09:04:06 +00:00
binarybuffer.h binarybuffer: Invert buf_cmp* return value and rename to buf_eq* 2024-09-21 09:04:06 +00:00
bits.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
command.c binarybuffer: simplify the prototype of str_to_buf() 2024-08-25 12:36:00 +00:00
command.h helper: command: drop radix parameter from command_parse_str_to_buf() 2024-08-25 12:35:47 +00:00
compiler.h helper/compiler fix build with gcc on MacOS 2023-04-07 22:56:27 +00:00
configuration.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
configuration.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
crc32.c helper: Add generic little endian CRC32 function 2023-01-21 22:57:33 +00:00
crc32.h helper: Add generic little endian CRC32 function 2023-01-21 22:57:33 +00:00
fileio.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
fileio.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
jep106.c helper: with pointers, use NULL instead of 0 2023-05-05 22:09:09 +00:00
jep106.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
jep106.inc jep106: update to revision JEP106BJ.01 July 2024 2024-07-28 13:34:26 +00:00
jim-nvp.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
jim-nvp.h helper/jim-nvp: avoid camelcase error by deprecated API 2022-07-23 13:59:49 +00:00
list.h helper/list: include the correct header file 2024-03-24 13:41:17 +00:00
log.c helper/log: report the file in `log_output` command 2024-02-11 23:07:09 +00:00
log.h Fix build with clang even if it sets __GNUC__ to >= 4.4 2024-05-26 09:56:50 +00:00
nvp.c helper: nvp: minor fixes 2023-12-16 07:51:10 +00:00
nvp.h helper: nvp: minor fixes 2023-12-16 07:51:10 +00:00
options.c openocd: dump full command line in the debug log 2024-03-16 14:42:20 +00:00
replacements.c helper: replacements: rework including replacements.h 2023-05-18 10:11:06 +00:00
replacements.h helper: replacements: rework including replacements.h 2023-05-18 10:11:06 +00:00
startup.tcl src/helper/startup: fix syntax errors 2024-06-08 08:44:18 +00:00
system.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
time_support.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
time_support.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
time_support_common.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
types.h helper: types: rework h_u32_to_le() and similar for sparse 2023-05-18 10:12:16 +00:00
update_jep106.pl openocd: src: replace SPDX to remaining files 2022-07-23 13:59:25 +00:00
util.c helper: util: include util.h 2023-05-05 22:08:56 +00:00
util.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00