cvs: ZendEngine2(PHP_5_2) / zend_alloc.h

[email protected] ("Antony Dovgal")
Newsgroups php.zend-engine.cvs
Message-ID <cvstony20011223650038@cvsserver>
tony2001		Fri Oct 10 14:47:18 2008 UTC

  Modified files:              (Branch: PHP_5_2)
    /ZendEngine2	zend_alloc.h 
  Log:
  backport convenience macro
  
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_alloc.h?r1=1.63.2.2.2.13&r2=1.63.2.2.2.14&diff_format=u
Index: ZendEngine2/zend_alloc.h
diff -u ZendEngine2/zend_alloc.h:1.63.2.2.2.13 ZendEngine2/zend_alloc.h:1.63.2.2.2.14
--- ZendEngine2/zend_alloc.h:1.63.2.2.2.13	Mon Dec 31 07:20:02 2007
+++ ZendEngine2/zend_alloc.h	Fri Oct 10 14:47:17 2008
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_alloc.h,v 1.63.2.2.2.13 2007/12/31 07:20:02 sebastian Exp $ */
+/* $Id: zend_alloc.h,v 1.63.2.2.2.14 2008/10/10 14:47:17 tony2001 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))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.