cvs: Zend / zend.h zend_config.nw.h

From: Date: Thu, 19 Dec 2002 11:02:51 +0000
Subject: cvs: Zend / zend.h zend_config.nw.h
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-724@lists.php.net to get a copy of this message
hyanantha Thu Dec 19 06:02:51 2002 EDT Modified files: /Zend zend_config.nw.h zend.h Log: NetWare related changes/modifications. Addition of definitions for NetWare. Index: Zend/zend_config.nw.h diff -u /dev/null Zend/zend_config.nw.h:1.2 --- /dev/null Thu Dec 19 06:02:51 2002 +++ Zend/zend_config.nw.h Thu Dec 19 06:02:51 2002 @@ -0,0 +1,101 @@ +/* + +----------------------------------------------------------------------+ + | Zend Engine | + +----------------------------------------------------------------------+ + | Copyright (c) 1998-2002 Zend Technologies Ltd. (http://www.zend.com) | + +----------------------------------------------------------------------+ + | This source file is subject to version 2.00 of the Zend license, | + | that is bundled with this package in the file LICENSE, and is | + | available at through the world-wide-web at | + | http://www.zend.com/license/2_00.txt. | + | If you did not receive a copy of the Zend license and are unable to | + | obtain it through the world-wide-web, please send a note to | + | license@zend.com so we can mail you a copy immediately. | + +----------------------------------------------------------------------+ + | Authors: Andi Gutmans <andi@zend.com> | + | Zeev Suraski <zeev@zend.com> | + | Modified for NetWare: Novell, Inc. | + +----------------------------------------------------------------------+ +*/ + + +#ifndef ZEND_CONFIG_NW_H +#define ZEND_CONFIG_NW_H + + +#include <string.h> +#include <float.h> + +typedef unsigned long ulong; +typedef unsigned int uint; + +/* Though we have alloca(), this seems to be causing some problem + * with the stack pointer. Hence not using it + */ +/*#define HAVE_ALLOCA 1*/ +#define HAVE_LIMITS_H 1 + +#undef HAVE_KILL +#define HAVE_GETPID 1 +/*#define HAVE_ALLOCA_H 1*/ +#define HAVE_MEMCPY 1 +#define HAVE_STRDUP 1 +#define HAVE_SYS_TYPES_H 1 +/*#define HAVE_STDIOSTR_H 1*/ +#define HAVE_CLASS_ISTDIOSTREAM +#define istdiostream stdiostream +#define HAVE_STDARG_H 1 +#define HAVE_SNPRINTF 1 +#define HAVE_VSNPRINTF 1 + +#define HAVE_STRING_H + +/* For now, to possibly avoid a whole lot of compiler cribs */ +#define ZEND_ENABLE_FAST_CACHE 0 +/*# define ZEND_DISABLE_MEMORY_CACHE 1*/ + +#define zend_sprintf sprintf + + +/* Below, till end: + * From acconfig.h file. This is done to remove the dependency + * on that file since that file will be removed soon by PHP group. + * The blelow is what is required from acconfig.h for NetWare. + */ + +#define ZEND_API +#define ZEND_DLEXPORT + +#ifdef HAVE_ISNAN +#define zend_isnan(a) isnan(a) +#elif defined(NAN) +#define zend_isnan(a) (((a)==NAN)?1:0) +#elif defined(HAVE_FPCLASS) +#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN)) +#else +#define zend_isnan(a) 0 +#endif + +#ifdef HAVE_ISINF +#define zend_isinf(a) isinf(a) +#elif defined(INFINITY) +/* Might not work, but is required by ISO C99 */ +#define zend_isinf(a) (((a)==INFINITY)?1:0) +#elif defined(HAVE_FPCLASS) +#define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF)) +#else +#define zend_isinf(a) 0 +#endif + +#ifdef HAVE_FINITE +#define zend_finite(a) finite(a) +#elif defined(HAVE_ISFINITE) || defined(isfinite) +#define zend_finite(a) isfinite(a) +#elif defined(fpclassify) +#define zend_finite(a) ((fpclassify((a))!=FP_INFINITE&&fpclassify((a))!=FP_NAN)?1:0) +#else +#define zend_finite(a) (zend_isnan(a) ? 0 : zend_isinf(a) ? 0 : 1) +#endif + + +#endif /* ZEND_CONFIG_NW_H */ Index: Zend/zend.h diff -u Zend/zend.h:1.167 Zend/zend.h:1.168 --- Zend/zend.h:1.167 Sat Nov 30 05:51:56 2002 +++ Zend/zend.h Thu Dec 19 06:02:50 2002 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend.h,v 1.167 2002/11/30 10:51:56 andi Exp $ */ +/* $Id: zend.h,v 1.168 2002/12/19 11:02:50 hyanantha Exp $ */ #ifndef ZEND_H #define ZEND_H @@ -128,7 +128,9 @@ #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ +# ifndef NETWARE char *alloca (); +# endif # endif # endif # endif

« previous php.zend-engine.cvs (#724) next »