logo       

cvs: ZendEngine2(PHP_5_2) / zend_operators.h php-src configure.in: msg#00035

Subject: cvs: ZendEngine2(PHP_5_2) / zend_operators.h php-src configure.in
tony2001                Tue Aug  8 09:41:09 2006 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src    configure.in 
    /ZendEngine2        zend_operators.h 
  Log:
  add zend_memrchr()
  
  
http://cvs.php.net/viewvc.cgi/php-src/configure.in?r1=1.579.2.52.2.7&r2=1.579.2.52.2.8&diff_format=u
Index: php-src/configure.in
diff -u php-src/configure.in:1.579.2.52.2.7 php-src/configure.in:1.579.2.52.2.8
--- php-src/configure.in:1.579.2.52.2.7 Sun Aug  6 20:46:02 2006
+++ php-src/configure.in        Tue Aug  8 09:41:09 2006
@@ -1,4 +1,4 @@
- ## $Id: configure.in,v 1.579.2.52.2.7 2006/08/06 20:46:02 tony2001 Exp $ -*- 
autoconf -*-
+ ## $Id: configure.in,v 1.579.2.52.2.8 2006/08/08 09:41:09 tony2001 Exp $ -*- 
autoconf -*-
 dnl ## Process this file with autoconf to produce a configure script.
 
 divert(1)
@@ -491,6 +491,7 @@
 lrand48 \
 memcpy \
 memmove \
+memrchr \
 mkstemp \
 mmap \
 nl_langinfo \
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_operators.h?r1=1.94.2.4.2.1&r2=1.94.2.4.2.2&diff_format=u
Index: ZendEngine2/zend_operators.h
diff -u ZendEngine2/zend_operators.h:1.94.2.4.2.1 
ZendEngine2/zend_operators.h:1.94.2.4.2.2
--- ZendEngine2/zend_operators.h:1.94.2.4.2.1   Tue May  9 23:53:23 2006
+++ ZendEngine2/zend_operators.h        Tue Aug  8 09:41:09 2006
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_operators.h,v 1.94.2.4.2.1 2006/05/09 23:53:23 helly Exp $ */
+/* $Id: zend_operators.h,v 1.94.2.4.2.2 2006/08/08 09:41:09 tony2001 Exp $ */
 
 #ifndef ZEND_OPERATORS_H
 #define ZEND_OPERATORS_H
@@ -160,6 +160,29 @@
        return NULL;
 }
 
+#ifdef HAVE_MEMRCHR
+# ifndef __USE_GNU
+#  define __USE_GNU
+# endif
+
+#include <string.h>
+#define zend_memrchr memrchr
+
+#else
+
+static inline void *zend_memrchr(const void *s, int c, size_t n)
+{
+       register unsigned char *e = (unsigned char *)s + n;
+
+       for (e--; e >= (unsigned char *)s; e--) {
+               if (*e == (unsigned char)c) {
+                       return (void *)e;
+               }
+       }
+
+       return NULL;
+}
+#endif
 
 BEGIN_EXTERN_C()
 ZEND_API int increment_function(zval *op1);

-- 
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe