diff src/strcpy.c @ 203:850242ba4a81 r20-3b28

Import from CVS: tag r20-3b28
author cvs
date Mon, 13 Aug 2007 10:02:21 +0200
parents 376386a54a3c
children 74fd4e045ea6
line wrap: on
line diff
--- a/src/strcpy.c	Mon Aug 13 10:01:24 2007 +0200
+++ b/src/strcpy.c	Mon Aug 13 10:02:21 2007 +0200
@@ -24,6 +24,10 @@
    Here are correct versions by hbs@lucid.com.
 */
 
+# include <config.h>
+# ifndef REGISTER	/* Strictly enforced in 20.3 */
+# define REGISTER
+# endif
 
 #define ALIGNED(x) (!(((unsigned long) (x)) & (sizeof (unsigned long) - 1)))
 
@@ -31,6 +35,7 @@
 #define HIGH_BIT_P(c) ((c) & hi_bit)
 #define HAS_ZERO(c) (((((c) + magic) ^ (c)) & not_magic) != not_magic)
 
+/* CONST IS LOSING, but const is part of the interface of strcpy */
 char *
 strcpy (char *to, const char *from)
 {
@@ -51,7 +56,7 @@
           if (HAS_ZERO(c)) 
             {
               to = (char *) to1;
-              from = (const char *) from1;
+              from = (CONST char *) from1;
               goto slow_loop;
             }
           else