Remove strlwr and strupr

Joel Sherrill joel.sherrill@oarcorp.com
Thu Aug 21 18:22:00 GMT 2014


Hi

Attached is a patch to remove strlwr and strupr.

I manually edited the Makefile.in and would appreciate someone
comfortable with regenerating the Makefile.in and removing
the two files to do that once this is approved.

2014-08-21  Joel Sherrill <joel.sherrill@oarcorp.com>

    * libc/include/string.h: Remove strlwr() and strupr() prototypes.
    * libc/string/Makefile.am: Remove strlwr.c and strupr.c.
    * libc/string/Makefile.in: Regenerate.
    * libc/string/strings.tex: Remove includes for strlwr() and strupr().
    * libc/string/strlwr.c: Remove.
    * libc/string/strupr.c: Remove.


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985

-------------- next part --------------
Index: newlib/libc/include/string.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/string.h,v
retrieving revision 1.36
diff -u -r1.36 string.h
--- newlib/libc/include/string.h	18 Aug 2014 14:18:10 -0000	1.36
+++ newlib/libc/include/string.h	21 Aug 2014 18:20:30 -0000
@@ -123,15 +123,6 @@
 char 	*_EXFUN(strsep,(char **, const char *));
 #endif
 
-/*
- * The origin of these is unknown to me so I am conditionalizing them
- * on __STRICT_ANSI__. Finetuning this is definitely needed. --joel
- */
-#if !defined(__STRICT_ANSI__)
-char	*_EXFUN(strlwr,(char *));
-char	*_EXFUN(strupr,(char *));
-#endif
-
 #ifndef DEFS_H	/* Kludge to work around problem compiling in gdb */
 char	*_EXFUN(strsignal, (int __signo));
 #endif
Index: newlib/libc/string/Makefile.am
===================================================================
RCS file: /cvs/src/src/newlib/libc/string/Makefile.am,v
retrieving revision 1.30
diff -u -r1.30 Makefile.am
--- newlib/libc/string/Makefile.am	24 Jun 2013 15:11:24 -0000	1.30
+++ newlib/libc/string/Makefile.am	21 Aug 2014 18:20:30 -0000
@@ -28,7 +28,6 @@
 	strlcat.c \
 	strlcpy.c \
 	strlen.c  \
-	strlwr.c \
 	strncasecmp.c \
 	strncat.c \
 	strncmp.c \
@@ -41,7 +40,6 @@
 	strspn.c \
 	strtok.c \
 	strtok_r.c \
-	strupr.c \
 	strxfrm.c  \
 	strstr.c \
 	swab.c \
@@ -133,7 +131,7 @@
 index.def	rindex.def	strcspn.def	strpbrk.def swab.def \
 memchr.def	strcat.def	strerror.def	strerror_r.def strrchr.def \
 memcmp.def	strchr.def	strlen.def	strnlen.def strspn.def \
-strcasecmp.def	strncasecmp.def strcasestr.def	strlwr.def  strupr.def \
+strcasecmp.def	strncasecmp.def strcasestr.def	\
 memccpy.def 	mempcpy.def	stpcpy.def	stpncpy.def strsignal.def \
 wcscasecmp.def	wcscat.def	wcschr.def	wcscmp.def wcscoll.def \
 wcscpy.def	wcscspn.def	wcpcpy.def	wcpncpy.def wcsdup.def \
Index: newlib/libc/string/strings.tex
===================================================================
RCS file: /cvs/src/src/newlib/libc/string/strings.tex,v
retrieving revision 1.12
diff -u -r1.12 strings.tex
--- newlib/libc/string/strings.tex	11 May 2010 20:27:20 -0000	1.12
+++ newlib/libc/string/strings.tex	21 Aug 2014 18:20:30 -0000
@@ -32,7 +32,6 @@
 * strerror::    Convert error number to string
 * strerror_r::  Convert error number to string
 * strlen::      Character string length
-* strlwr::	Convert string to lowercase
 * strncasecmp::	Compare strings ignoring case
 * strncat::     Concatenate strings
 * strncmp::     Character string compare
@@ -44,7 +43,6 @@
 * strspn::      Find initial match
 * strstr::      Find string segment
 * strtok::      Get next token from a string
-* strupr::	Convert string to upper case
 * strxfrm::     Transform string
 * swab::        Swap adjacent bytes
 * wcscasecmp::  Compare wide character strings ignoring case
@@ -131,9 +129,6 @@
 @include string/strlen.def
 
 @page
-@include string/strlwr.def
-
-@page
 @include string/strncasecmp.def
 
 @page
@@ -167,9 +162,6 @@
 @include string/strtok.def
 
 @page
-@include string/strupr.def
-
-@page
 @include string/strxfrm.def
 
 @page


More information about the Newlib mailing list