cvs: ZendEngine2 / zend_operators.h php-src configure.in

[email protected] ("Dmitry Stogov")
Newsgroups php.zend-engine.cvs
Message-ID <cvsdmitry1202919732@cvsserver>
dmitry		Wed Feb 13 16:22:12 2008 UTC

  Modified files:              
    /php-src	configure.in 
    /ZendEngine2	zend_operators.h 
  Log:
  Use memrchr() instead of zend_memrchr() if available. (Nuno)
  
  
http://cvs.php.net/viewvc.cgi/php-src/configure.in?r1=1.644&r2=1.645&diff_format=u
Index: php-src/configure.in
diff -u php-src/configure.in:1.644 php-src/configure.in:1.645
--- php-src/configure.in:1.644	Wed Jan 30 09:56:21 2008
+++ php-src/configure.in	Wed Feb 13 16:22:12 2008
@@ -1,4 +1,4 @@
-## $Id: configure.in,v 1.644 2008/01/30 09:56:21 dmitry Exp $ -*- autoconf -*-
+## $Id: configure.in,v 1.645 2008/02/13 16:22:12 dmitry Exp $ -*- autoconf -*-
 dnl ## Process this file with autoconf to produce a configure script.
 
 divert(1)
@@ -514,6 +514,7 @@
 lrand48 \
 memcpy \
 memmove \
+memrchr \
 mkstemp \
 mmap \
 nl_langinfo \
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_operators.h?r1=1.125&r2=1.126&diff_format=u
Index: ZendEngine2/zend_operators.h
diff -u ZendEngine2/zend_operators.h:1.125 ZendEngine2/zend_operators.h:1.126
--- ZendEngine2/zend_operators.h:1.125	Mon Dec 31 07:12:07 2007
+++ ZendEngine2/zend_operators.h	Wed Feb 13 16:22:12 2008
@@ -17,13 +17,14 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_operators.h,v 1.125 2007/12/31 07:12:07 sebastian Exp $ */
+/* $Id: zend_operators.h,v 1.126 2008/02/13 16:22:12 dmitry Exp $ */
 
 #ifndef ZEND_OPERATORS_H
 #define ZEND_OPERATORS_H
 
 #include <errno.h>
 #include <math.h>
+#include <string.h>
 
 #ifdef HAVE_IEEEFP_H
 #include <ieeefp.h>
@@ -250,6 +251,9 @@
 	return NULL;
 }
 
+#ifdef HAVE_MEMRCHR
+# define zend_memrchr(s,c,n) memrchr(s,c,n)
+#else
 static inline void *zend_memrchr(const void *s, int c, size_t n)
 {
 	register unsigned char *e;
@@ -266,6 +270,7 @@
 
 	return NULL;
 }
+#endif
 
 BEGIN_EXTERN_C()
 ZEND_API int increment_function(zval *op1);
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.