oslib: make str* compat functions more uniform
authorSitsofe Wheeler <sitsofe@yahoo.com>
Tue, 20 Mar 2018 10:46:32 +0000 (10:46 +0000)
committerSitsofe Wheeler <sitsofe@yahoo.com>
Wed, 21 Mar 2018 22:09:28 +0000 (22:09 +0000)
commit5d413e0897fee7c2bf10d9ecc0860d3b399d66d5
tree8025d7fe9c6d4cc874830b71db9d3817e149f253
parent8393ca93334319f066ce6abb44d0f4b4921abbe1
oslib: make str* compat functions more uniform

- Ensure there are CONFIG_ guards in the headers and .c files because
  sometime utilities include oslib headers directly and reference oslib
  .c files in the Makefile
- Ensure all the oslib/str*.h files have redefinition guards
- Shuffle some #include lines from the .h files to the .c ones
- Ensure the <name>.c files have #include "<name>.h" in them so the
  compiler can check the declaration and definition match

Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
oslib/strcasestr.c
oslib/strcasestr.h
oslib/strlcat.c
oslib/strlcat.h
oslib/strndup.c
oslib/strndup.h
oslib/strsep.c
oslib/strsep.h