coreboot/src
Julius Werner a66c9b8bf4 string.h: Move common string functions into .c file
There's no clear reason why most of coreboot's basic string functions
are static inline. These functions don't particularly benefit from
inlining (at least not notably more than other functions). This patch
moves them to string.c to be more consistent with our usual coding
practices.

Leaving the ctype functions as static inline because they actually seem
small and collapsible enough that inlining seems reasonable.

Also clarified the situation of strdup() and strconcat() a bit more,
optimized strrchr() to be single-pass, fixed a bug with using strchr()
to find '\0' and got rid of unnecessary register keywords.

Change-Id: I88166ba9876e94dfa3cfc06969c78a9e1bc6fc36
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32901
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Alex Thiessen <alex.thiessen.de+coreboot@gmail.com>
2019-05-31 18:22:11 +00:00
..
acpi
arch src/{include,arch,cpu,lib}: Add missing 'include <types.h>' 2019-05-29 20:27:18 +00:00
commonlib commonlib: fix typo LB_TAB_* (instead of LB_TAG_*) 2019-05-29 20:12:57 +00:00
console console: Move poor-man's atoi() into string.h 2019-05-23 08:43:12 +00:00
cpu src/{include,arch,cpu,lib}: Add missing 'include <types.h>' 2019-05-29 20:27:18 +00:00
device src/{device,drivers}: Add missing 'include <types.h>' 2019-05-29 20:27:52 +00:00
drivers src/{device,drivers}: Add missing 'include <types.h>' 2019-05-29 20:27:52 +00:00
ec src/{ec,vendorcode}: Add missing 'include <types.h> 2019-05-29 20:28:07 +00:00
include string.h: Move common string functions into .c file 2019-05-31 18:22:11 +00:00
lib string.h: Move common string functions into .c file 2019-05-31 18:22:11 +00:00
mainboard mb/google/hatch: Create kindred variant 2019-05-31 15:28:25 +00:00
northbridge src/northbridge: Add missing 'include <types.h>' 2019-05-29 20:28:27 +00:00
security post_code: add post code for failure to load next stage 2019-05-22 14:21:57 +00:00
soc soc/intel/common/block/gpio: Fix the mask for gpio_pm_configure 2019-05-30 23:54:01 +00:00
southbridge src/southbridge: Add missing 'include <types.h>' 2019-05-29 20:28:41 +00:00
superio superio/fintek/f71863fg: Remove variable set but not used 2019-05-25 18:20:15 +00:00
vendorcode src/vendorcode/amd/pi: Fix CONFIG() check issue in rules.h 2019-05-30 15:12:07 +00:00
Kconfig src/Kconfig: Move DRAM section to src/lib/Kconfig 2019-05-20 10:58:56 +00:00