summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2004-11-01 12:51:52 +0000
committerH.Merijn Brand <h.m.brand@xs4all.nl>2004-11-01 12:51:52 +0000
commitb4d4ebb4e4c360bece24cfbbd8a3734e236b948a (patch)
tree60f80bc709d84f9ae4ddcedffc533f906f54c5ce /handy.h
parentdc750f2e2552556d058aca8bac0a882290acbc05 (diff)
downloadperl-b4d4ebb4e4c360bece24cfbbd8a3734e236b948a.tar.gz
Since strlcat/strlcpy are not argument/return value compatible
with strncat/strncpy, replace the misleading defines with comment p4raw-id: //depot/perl@23455
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/handy.h b/handy.h
index 904b67c575..af4890e520 100644
--- a/handy.h
+++ b/handy.h
@@ -159,17 +159,12 @@ typedef U64TYPE U64;
# endif
#endif
-/* H.Merijn Brand [ 31 Oct 2004 ]
- * Not (yet) used at top level, but mention them for metaconfig */
-#ifdef HAS_STRLCAT
-# define STRNCAT strlcat
-#else
-# define STRNCAT strncat
-#endif
-#ifdef HAS_STRLCPY
-# define STRNCPY strlcpy
-#else
-# define STRNCPY strncpy
+/* H.Merijn Brand [ 01 Nov 2004 ] */
+#if defined(HAS_STRLCAT) || defined(HAS_STRLCPY)
+/* Not (yet) used at top level, but mention them for metaconfig
+ * Read http://www.courtesan.com/todd/papers/strlcpy.html
+ * for the discussion of why replacing strncat/strncpy with
+ * strlcat/strlcpy would be wise */
#endif
/* Mention I8SIZE, U8SIZE, I16SIZE, U16SIZE, I32SIZE, U32SIZE,