Skip to content

Commit

Permalink
Use ROM functions directly instead of wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
igrr committed Jul 6, 2015
1 parent f1c914f commit bd5187a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
1 change: 0 additions & 1 deletion cores/esp8266/core_esp8266_noniso.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include "ets_sys.h"

#define sprintf ets_sprintf
#define strcpy ets_strcpy

int atoi(const char* s) {
return (int) atol(s);
Expand Down
32 changes: 0 additions & 32 deletions cores/esp8266/libc_replacements.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,38 +87,6 @@ int vsnprintf(char * buffer, size_t size, const char * format, va_list arg) {
return ets_vsnprintf(buffer, size, format, arg);
}

int memcmp(const void *s1, const void *s2, size_t n) {
return ets_memcmp(s1, s2, n);
}

void* memcpy(void *dest, const void *src, size_t n) {
return ets_memcpy(dest, src, n);
}

void* memset(void *s, int c, size_t n) {
return ets_memset(s, c, n);
}

int strcmp(const char *s1, const char *s2) {
return ets_strcmp(s1, s2);
}

char* strcpy(char *dest, const char *src) {
return ets_strcpy(dest, src);
}

size_t strlen(const char *s) {
return ets_strlen(s);
}

int strncmp(const char *s1, const char *s2, size_t len) {
return ets_strncmp(s1, s2, len);
}

char* strncpy(char * dest, const char * src, size_t n) {
return ets_strncpy(dest, src, n);
}

size_t ICACHE_FLASH_ATTR strnlen(const char *s, size_t len) {
// there is no ets_strnlen
const char *cp;
Expand Down

0 comments on commit bd5187a

Please sign in to comment.