This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Define memset() for microperl
authorDavid Leadbeater <dgl@dgl.cx>
Mon, 7 Mar 2011 19:26:20 +0000 (19:26 +0000)
committerNicholas Clark <nick@ccl4.org>
Mon, 28 Mar 2011 09:21:47 +0000 (10:21 +0100)
README.micro
uconfig.h
uconfig.sh

index c51c185..412b952 100644 (file)
@@ -10,7 +10,7 @@ We assume ANSI C89 plus the following:
 - <stddef.h>, <stdlib.h>
 - rename()
 - opendir(), readdir(), closedir() (via dirent.h)
-- memchr(), memcmp(), memcpy() (via string.h)
+- memchr(), memcmp(), memcpy(), memset() (via string.h)
 - (a safe) putenv() (via stdlib.h)
 - strtoul() (via stdlib.h)
 (grep for 'define' in uconfig.sh.)
index ba2104b..04612f3 100644 (file)
--- a/uconfig.h
+++ b/uconfig.h
  *     This symbol, if defined, indicates that the memset routine is available
  *     to set blocks of memory.
  */
-/*#define HAS_MEMSET   / **/
+#define HAS_MEMSET     /**/
 
 /* HAS_MKDIR:
  *     This symbol, if defined, indicates that the mkdir routine is available
 
 /* Generated from:
  * 323778627146f2762cd41f4dd1db6659f59006ec9bcaaf6bcc645d0380dda938 config_h.SH
- * 2cdfa76d1081a21ef8613b40d1cf699548c8347531c5e8358469f5bb52db6a44 uconfig.sh
+ * 90b7a3f95ddf0116391ca50b622a54eb7f8b4268aebfe9ab052bd22978c94c54 uconfig.sh
  * ex: set ro: */
index 097e07b..a4f579e 100644 (file)
@@ -251,7 +251,7 @@ d_memchr='define'
 d_memcmp='define'
 d_memcpy='define'
 d_memmove='undef'
-d_memset='undef'
+d_memset='define'
 d_mkdir='undef'
 d_mkdtemp='undef'
 d_mkfifo='undef'