lib: Rename string.x to sbi_string.x

All string functions are part of libsbi. It makes more sense
to rename them to sbi_string.x as the libsbi can be linked
with external libraries that can have similar implementation.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Acked-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
Atish Patra
2019-06-18 14:54:04 -07:00
committed by Anup Patel
parent 793e5e1184
commit 200ed7c1bd
11 changed files with 82 additions and 85 deletions

View File

@@ -52,7 +52,7 @@
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <sbi/string.h>
#include <sbi/sbi_string.h>
#include <sbi/sbi_types.h>
#define INT_MAX ((int)(~0U >> 1))
@@ -66,6 +66,18 @@
#define FDT_BITWISE
#endif
#define memmove sbi_memmove
#define memcpy sbi_memcpy
#define memcmp sbi_memcmp
#define memchr sbi_memchr
#define memset sbi_memset
#define strchr sbi_strchr
#define strrchr sbi_strrchr
#define strcpy sbi_strcpy
#define strcmp sbi_strcmp
#define strlen sbi_strlen
#define strnlen sbi_strnlen
typedef uint16_t FDT_BITWISE fdt16_t;
typedef uint32_t FDT_BITWISE fdt32_t;
typedef uint64_t FDT_BITWISE fdt64_t;