diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/SOURCES | 33 | ||||
-rw-r--r-- | firmware/libc/memchr.c | 1 | ||||
-rw-r--r-- | firmware/libc/memcmp.c | 2 | ||||
-rw-r--r-- | firmware/libc/memcpy.c | 2 | ||||
-rw-r--r-- | firmware/libc/strchr.c | 1 | ||||
-rw-r--r-- | firmware/libc/strcmp.c | 1 | ||||
-rw-r--r-- | firmware/libc/strcpy.c | 1 | ||||
-rw-r--r-- | firmware/libc/strlen.c | 2 | ||||
-rw-r--r-- | firmware/libc/strncmp.c | 1 | ||||
-rw-r--r-- | firmware/libc/strrchr.c | 1 |
10 files changed, 31 insertions, 14 deletions
diff --git a/firmware/SOURCES b/firmware/SOURCES index bef2b772ad..53c38e0ee9 100644 --- a/firmware/SOURCES +++ b/firmware/SOURCES | |||
@@ -46,22 +46,41 @@ libc/strtok.c | |||
46 | /* alsa on linux requires a more advanced sprintf, i.e. not ours */ | 46 | /* alsa on linux requires a more advanced sprintf, i.e. not ours */ |
47 | libc/sprintf.c | 47 | libc/sprintf.c |
48 | #endif /* PLATFORM_NATIVE || __MINGW32__ || __CYGWIN__ */ | 48 | #endif /* PLATFORM_NATIVE || __MINGW32__ || __CYGWIN__ */ |
49 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) | 49 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) || defined(HAVE_ROCKBOX_C_LIBRARY) |
50 | libc/atoi.c | 50 | libc/atoi.c |
51 | |||
52 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) | ||
53 | /* our ctype.[ch] comes from newlib and is incompitble with most desktop's ctype */ | ||
51 | libc/ctype.c | 54 | libc/ctype.c |
52 | libc/memcmp.c | 55 | #endif |
56 | |||
53 | libc/memchr.c | 57 | libc/memchr.c |
58 | libc/memcmp.c | ||
59 | |||
60 | #if !defined(CPU_SH) && !defined(CPU_COLDFIRE) && !defined(CPU_ARM) | ||
61 | #if !defined(CPU_MIPS) | ||
62 | libc/memcpy.c | ||
63 | libc/memset.c | ||
64 | #endif /* CPU_MIPS */ | ||
65 | libc/memmove.c | ||
66 | #endif /* CPU_* */ | ||
67 | |||
54 | libc/qsort.c | 68 | libc/qsort.c |
55 | libc/random.c | 69 | libc/random.c |
56 | libc/strcat.c | 70 | libc/strcat.c |
57 | libc/strchr.c | 71 | libc/strchr.c |
58 | libc/strcmp.c | 72 | libc/strcmp.c |
59 | libc/strcpy.c | 73 | libc/strcpy.c |
74 | |||
75 | #if !defined(CPU_SH) && !defined(CPU_COLDFIRE) | ||
76 | libc/strlen.c | ||
77 | #endif | ||
78 | |||
60 | libc/strncmp.c | 79 | libc/strncmp.c |
61 | libc/strrchr.c | 80 | libc/strrchr.c |
62 | libc/strstr.c | 81 | libc/strstr.c |
63 | libc/mktime.c | 82 | libc/mktime.c |
64 | #endif /* !defined(SIMULATOR)*/ | 83 | #endif /* CONFIG_PLATFORM || HAVE_ROCKBOX_C_LIBRARY */ |
65 | 84 | ||
66 | /* Common */ | 85 | /* Common */ |
67 | common/version.c | 86 | common/version.c |
@@ -414,7 +433,6 @@ target/coldfire/i2c-coldfire.c | |||
414 | target/arm/support-arm.S | 433 | target/arm/support-arm.S |
415 | target/arm/memcpy-arm.S | 434 | target/arm/memcpy-arm.S |
416 | target/arm/memmove-arm.S | 435 | target/arm/memmove-arm.S |
417 | libc/strlen.c | ||
418 | #ifndef SIMULATOR | 436 | #ifndef SIMULATOR |
419 | target/arm/memset-arm.S | 437 | target/arm/memset-arm.S |
420 | target/arm/memset16-arm.S | 438 | target/arm/memset16-arm.S |
@@ -509,10 +527,7 @@ target/arm/crt0.S | |||
509 | 527 | ||
510 | #elif defined(CPU_MIPS) | 528 | #elif defined(CPU_MIPS) |
511 | #undef mips | 529 | #undef mips |
512 | /*target/mips/strlen.S*/ | ||
513 | libc/memmove.c | ||
514 | common/memset16.c | 530 | common/memset16.c |
515 | libc/strlen.c | ||
516 | target/mips/ffs-mips.S | 531 | target/mips/ffs-mips.S |
517 | target/mips/memcpy-mips.S | 532 | target/mips/memcpy-mips.S |
518 | target/mips/memset-mips.S | 533 | target/mips/memset-mips.S |
@@ -526,11 +541,7 @@ target/mips/ingenic_jz47xx/crt0.S | |||
526 | #ifdef HAVE_PRIORITY_SCHEDULING | 541 | #ifdef HAVE_PRIORITY_SCHEDULING |
527 | common/ffs.c | 542 | common/ffs.c |
528 | #endif | 543 | #endif |
529 | libc/memcpy.c | ||
530 | libc/memmove.c | ||
531 | libc/memset.c | ||
532 | common/memset16.c | 544 | common/memset16.c |
533 | libc/strlen.c | ||
534 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) | 545 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
535 | crt0.S | 546 | crt0.S |
536 | drivers/i2c.c | 547 | drivers/i2c.c |
diff --git a/firmware/libc/memchr.c b/firmware/libc/memchr.c index 26bdb9eea3..8b6b4d69d9 100644 --- a/firmware/libc/memchr.c +++ b/firmware/libc/memchr.c | |||
@@ -35,6 +35,7 @@ QUICKREF | |||
35 | 35 | ||
36 | #include <string.h> | 36 | #include <string.h> |
37 | #include <limits.h> | 37 | #include <limits.h> |
38 | #include "_ansi.h" /* for _DEFUN */ | ||
38 | 39 | ||
39 | /* Nonzero if X is not aligned on a "long" boundary. */ | 40 | /* Nonzero if X is not aligned on a "long" boundary. */ |
40 | #define UNALIGNED(X) ((long)X & (sizeof (long) - 1)) | 41 | #define UNALIGNED(X) ((long)X & (sizeof (long) - 1)) |
diff --git a/firmware/libc/memcmp.c b/firmware/libc/memcmp.c index 1535fcf5b5..c2fa1bf6b7 100644 --- a/firmware/libc/memcmp.c +++ b/firmware/libc/memcmp.c | |||
@@ -37,7 +37,7 @@ QUICKREF | |||
37 | */ | 37 | */ |
38 | 38 | ||
39 | #include <string.h> | 39 | #include <string.h> |
40 | 40 | #include "_ansi.h" /* for _DEFUN */ | |
41 | 41 | ||
42 | /* Nonzero if either X or Y is not aligned on a "long" boundary. */ | 42 | /* Nonzero if either X or Y is not aligned on a "long" boundary. */ |
43 | #define UNALIGNED(X, Y) \ | 43 | #define UNALIGNED(X, Y) \ |
diff --git a/firmware/libc/memcpy.c b/firmware/libc/memcpy.c index a89ac3c557..c5456ab41f 100644 --- a/firmware/libc/memcpy.c +++ b/firmware/libc/memcpy.c | |||
@@ -33,7 +33,7 @@ QUICKREF | |||
33 | */ | 33 | */ |
34 | 34 | ||
35 | #include "config.h" | 35 | #include "config.h" |
36 | #include <_ansi.h> | 36 | #include "_ansi.h" /* for _DEFUN */ |
37 | #include <string.h> | 37 | #include <string.h> |
38 | 38 | ||
39 | /* Nonzero if either X or Y is not aligned on a "long" boundary. */ | 39 | /* Nonzero if either X or Y is not aligned on a "long" boundary. */ |
diff --git a/firmware/libc/strchr.c b/firmware/libc/strchr.c index 96acf5edf6..ada6e2d098 100644 --- a/firmware/libc/strchr.c +++ b/firmware/libc/strchr.c | |||
@@ -35,6 +35,7 @@ QUICKREF | |||
35 | 35 | ||
36 | #include <string.h> | 36 | #include <string.h> |
37 | #include <limits.h> | 37 | #include <limits.h> |
38 | #include "_ansi.h" /* for _DEFUN */ | ||
38 | 39 | ||
39 | /* Nonzero if X is not aligned on a "long" boundary. */ | 40 | /* Nonzero if X is not aligned on a "long" boundary. */ |
40 | #define UNALIGNED(X) ((long)X & (sizeof (long) - 1)) | 41 | #define UNALIGNED(X) ((long)X & (sizeof (long) - 1)) |
diff --git a/firmware/libc/strcmp.c b/firmware/libc/strcmp.c index bbbf4b174a..d540fae7dd 100644 --- a/firmware/libc/strcmp.c +++ b/firmware/libc/strcmp.c | |||
@@ -37,6 +37,7 @@ QUICKREF | |||
37 | 37 | ||
38 | #include <string.h> | 38 | #include <string.h> |
39 | #include <limits.h> | 39 | #include <limits.h> |
40 | #include "_ansi.h" /* for _DEFUN */ | ||
40 | 41 | ||
41 | /* Nonzero if either X or Y is not aligned on a "long" boundary. */ | 42 | /* Nonzero if either X or Y is not aligned on a "long" boundary. */ |
42 | #define UNALIGNED(X, Y) \ | 43 | #define UNALIGNED(X, Y) \ |
diff --git a/firmware/libc/strcpy.c b/firmware/libc/strcpy.c index 077ae73cc6..035e2bda9e 100644 --- a/firmware/libc/strcpy.c +++ b/firmware/libc/strcpy.c | |||
@@ -34,6 +34,7 @@ QUICKREF | |||
34 | 34 | ||
35 | #include <string.h> | 35 | #include <string.h> |
36 | #include <limits.h> | 36 | #include <limits.h> |
37 | #include "_ansi.h" /* for _DEFUN */ | ||
37 | 38 | ||
38 | /*SUPPRESS 560*/ | 39 | /*SUPPRESS 560*/ |
39 | /*SUPPRESS 530*/ | 40 | /*SUPPRESS 530*/ |
diff --git a/firmware/libc/strlen.c b/firmware/libc/strlen.c index 4d33eafce6..649df6764b 100644 --- a/firmware/libc/strlen.c +++ b/firmware/libc/strlen.c | |||
@@ -32,7 +32,7 @@ QUICKREF | |||
32 | */ | 32 | */ |
33 | 33 | ||
34 | #include "config.h" | 34 | #include "config.h" |
35 | #include <_ansi.h> | 35 | #include "_ansi.h" |
36 | #include <string.h> | 36 | #include <string.h> |
37 | #include <limits.h> | 37 | #include <limits.h> |
38 | 38 | ||
diff --git a/firmware/libc/strncmp.c b/firmware/libc/strncmp.c index b1d8d9d43a..315fae810a 100644 --- a/firmware/libc/strncmp.c +++ b/firmware/libc/strncmp.c | |||
@@ -38,6 +38,7 @@ QUICKREF | |||
38 | 38 | ||
39 | #include <string.h> | 39 | #include <string.h> |
40 | #include <limits.h> | 40 | #include <limits.h> |
41 | #include "_ansi.h" /* for _DEFUN */ | ||
41 | 42 | ||
42 | /* Nonzero if either X or Y is not aligned on a "long" boundary. */ | 43 | /* Nonzero if either X or Y is not aligned on a "long" boundary. */ |
43 | #define UNALIGNED(X, Y) \ | 44 | #define UNALIGNED(X, Y) \ |
diff --git a/firmware/libc/strrchr.c b/firmware/libc/strrchr.c index 31b0d049b3..0489edd499 100644 --- a/firmware/libc/strrchr.c +++ b/firmware/libc/strrchr.c | |||
@@ -34,6 +34,7 @@ QUICKREF | |||
34 | */ | 34 | */ |
35 | 35 | ||
36 | #include <string.h> | 36 | #include <string.h> |
37 | #include "_ansi.h" /* for _DEFUN */ | ||
37 | 38 | ||
38 | char * | 39 | char * |
39 | _DEFUN (strrchr, (s, i), | 40 | _DEFUN (strrchr, (s, i), |