cvs: ZendEngine2(PHP_5_3) / zend_alloc.h
"Matt Wilmas" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.zend |
|---|---|
| Message-ID | <cvsmattwil1213330619@cvsserver> |
mattwil Fri Jun 13 04:16:59 2008 UTC
Modified files: (Branch: PHP_5_3)
/ZendEngine2 zend_alloc.h
Log:
MFH: Add pestrndup()
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_alloc.h?r1=1.63.2.2.2.12.2.4&r2=1.63.2.2.2.12.2.5&diff_format=u
Index: ZendEngine2/zend_alloc.h
diff -u ZendEngine2/zend_alloc.h:1.63.2.2.2.12.2.4 ZendEngine2/zend_alloc.h:1.63.2.2.2.12.2.5
--- ZendEngine2/zend_alloc.h:1.63.2.2.2.12.2.4 Mon Dec 31 07:17:04 2007
+++ ZendEngine2/zend_alloc.h Fri Jun 13 04:16:58 2008
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_alloc.h,v 1.63.2.2.2.12.2.4 2007/12/31 07:17:04 sebastian Exp $ */
+/* $Id: zend_alloc.h,v 1.63.2.2.2.12.2.5 2008/06/13 04:16:58 mattwil Exp $ */
#ifndef ZEND_ALLOC_H
#define ZEND_ALLOC_H
@@ -113,6 +113,7 @@
#define safe_perealloc(ptr, nmemb, size, offset, persistent) ((persistent)?_safe_realloc((ptr), (nmemb), (size), (offset)):safe_erealloc((ptr), (nmemb), (size), (offset)))
#define perealloc_recoverable(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):erealloc_recoverable((ptr), (size)))
#define pestrdup(s, persistent) ((persistent)?strdup(s):estrdup(s))
+#define pestrndup(s, length, persistent) ((persistent)?zend_strndup((s),(length)):estrndup((s),(length)))
#define pemalloc_rel(size, persistent) ((persistent)?__zend_malloc(size):emalloc_rel(size))
#define pefree_rel(ptr, persistent) ((persistent)?free(ptr):efree_rel(ptr))
--
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php