Mercurial > ecos
comparison packages/language/c/libc/string/current/cdl/string.cdl @ 2949:ae816c83f082
* include/string.h: Declare strnlen.
* include/stringsupp.hxx: Declare __strnlen.
* src/strnlen.cxx, tests/strnlen.c: Created.
* cdl/string.cdl (CYGFUN_LIBC_STRING_GNU_STRNLEN): New option,
compiles strnlen.cxx.
(CYGPKG_LIBC_STRING_TESTS): Add strnlen test.
| author | jlarmour |
|---|---|
| date | Tue, 11 May 2010 16:26:19 +0000 |
| parents | 74dbf4c3f2e1 |
| children |
comparison
equal
deleted
inserted
replaced
| 2948:041821fb5427 | 2949:ae816c83f082 |
|---|---|
| 164 compile strdup.cxx | 164 compile strdup.cxx |
| 165 description " | 165 description " |
| 166 This option indicates whether strdup() is to be supported." | 166 This option indicates whether strdup() is to be supported." |
| 167 } | 167 } |
| 168 | 168 |
| 169 cdl_option CYGFUN_LIBC_STRING_GNU_STRNLEN { | |
| 170 display "Provide strnlen() GNU extension" | |
| 171 flavor bool | |
| 172 default_value 1 | |
| 173 compile strnlen.cxx | |
| 174 description " | |
| 175 This option controls support for the strnlen() function. | |
| 176 (This is a GNU extension, not part of ANSI C.)" | |
| 177 } | |
| 178 | |
| 169 cdl_component CYGPKG_LIBC_STRING_OPTIONS { | 179 cdl_component CYGPKG_LIBC_STRING_OPTIONS { |
| 170 display "C library string functions build options" | 180 display "C library string functions build options" |
| 171 flavor none | 181 flavor none |
| 172 no_define | 182 no_define |
| 173 description " | 183 description " |
| 200 | 210 |
| 201 cdl_option CYGPKG_LIBC_STRING_TESTS { | 211 cdl_option CYGPKG_LIBC_STRING_TESTS { |
| 202 display "C library string function tests" | 212 display "C library string function tests" |
| 203 flavor data | 213 flavor data |
| 204 no_define | 214 no_define |
| 205 calculated { "tests/memchr tests/memcmp1 tests/memcmp2 tests/memcpy1 tests/memcpy2 tests/memmove1 tests/memmove2 tests/memset tests/strcat1 tests/strcat2 tests/strchr tests/strcmp1 tests/strcmp2 tests/strcoll1 tests/strcoll2 tests/strcpy1 tests/strcpy2 tests/strcspn tests/strcspn tests/strlen tests/strncat1 tests/strncat2 tests/strncpy1 tests/strncpy2 tests/strpbrk tests/strrchr tests/strspn tests/strstr tests/strtok tests/strxfrm1 tests/strxfrm2" } | 215 calculated { "tests/memchr tests/memcmp1 tests/memcmp2 tests/memcpy1 tests/memcpy2 tests/memmove1 tests/memmove2 tests/memset tests/strcat1 tests/strcat2 tests/strchr tests/strcmp1 tests/strcmp2 tests/strcoll1 tests/strcoll2 tests/strcpy1 tests/strcpy2 tests/strcspn tests/strcspn tests/strlen tests/strncat1 tests/strncat2 tests/strncpy1 tests/strncpy2 tests/strpbrk tests/strrchr tests/strspn tests/strstr tests/strtok tests/strxfrm1 tests/strxfrm2 tests/strnlen" } |
| 206 description " | 216 description " |
| 207 This option specifies the set of tests for the C library | 217 This option specifies the set of tests for the C library |
| 208 string functions." | 218 string functions." |
| 209 } | 219 } |
| 210 } | 220 } |
