1999-04-08 05:05:13 +08:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
1999-07-16 21:13:16 +08:00
|
|
|
| PHP version 4.0 |
|
1999-04-08 05:05:13 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2000-01-01 09:32:05 +08:00
|
|
|
| Copyright (c) 1997, 1998, 1999, 2000 The PHP Group |
|
1999-04-08 05:05:13 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2000-05-18 23:34:45 +08:00
|
|
|
| This source file is subject to version 2.02 of the PHP license, |
|
1999-07-16 21:13:16 +08:00
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
|
|
| available at through the world-wide-web at |
|
2000-05-18 23:34:45 +08:00
|
|
|
| http://www.php.net/license/2_02.txt. |
|
1999-07-16 21:13:16 +08:00
|
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
|
|
| license@php.net so we can mail you a copy immediately. |
|
1999-04-08 05:05:13 +08:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| Authors: Andi Gutmans <andi@zend.com> |
|
|
|
|
| Zeev Suraski <zeev@zend.com> |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
2000-07-03 07:46:51 +08:00
|
|
|
#ifndef PHP_H
|
|
|
|
#define PHP_H
|
1999-04-08 05:05:13 +08:00
|
|
|
|
1999-06-26 08:34:36 +08:00
|
|
|
#ifdef HAVE_DMALLOC
|
|
|
|
#include <dmalloc.h>
|
|
|
|
#endif
|
|
|
|
|
1999-04-22 03:39:21 +08:00
|
|
|
#define PHP_API_VERSION 19990421
|
|
|
|
|
1999-04-08 05:05:13 +08:00
|
|
|
#define YYDEBUG 0
|
|
|
|
|
|
|
|
#include "php_version.h"
|
|
|
|
#include "zend.h"
|
2000-03-04 22:44:01 +08:00
|
|
|
#include "php_compat.h"
|
1999-04-22 07:28:00 +08:00
|
|
|
|
|
|
|
/* automake defines PACKAGE and VERSION for Zend too */
|
2000-06-08 14:16:22 +08:00
|
|
|
#undef PACKAGE
|
|
|
|
#undef VERSION
|
1999-04-22 07:28:00 +08:00
|
|
|
|
1999-04-08 05:05:13 +08:00
|
|
|
#include "zend_API.h"
|
|
|
|
|
2000-06-08 14:16:22 +08:00
|
|
|
#if PHP_BROKEN_SPRINTF
|
|
|
|
#undef sprintf
|
|
|
|
#define sprintf php_sprintf
|
|
|
|
#endif
|
1999-04-08 05:05:13 +08:00
|
|
|
|
|
|
|
extern unsigned char first_arg_force_ref[];
|
|
|
|
extern unsigned char first_arg_allow_ref[];
|
|
|
|
extern unsigned char second_arg_force_ref[];
|
|
|
|
extern unsigned char second_arg_allow_ref[];
|
|
|
|
|
|
|
|
|
|
|
|
/* somebody stealing BOOL from windows. pick something else!
|
|
|
|
#ifndef BOOL
|
|
|
|
#define BOOL MYBOOL
|
|
|
|
#endif
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2000-02-11 23:59:30 +08:00
|
|
|
#ifdef PHP_WIN32
|
1999-04-08 05:05:13 +08:00
|
|
|
#include "win95nt.h"
|
1999-04-26 22:00:49 +08:00
|
|
|
# ifdef PHP_EXPORTS
|
|
|
|
# define PHPAPI __declspec(dllexport)
|
|
|
|
# else
|
|
|
|
# define PHPAPI __declspec(dllimport)
|
|
|
|
# endif
|
1999-04-08 05:05:13 +08:00
|
|
|
#else
|
1999-04-26 22:00:49 +08:00
|
|
|
#define PHPAPI
|
|
|
|
#define THREAD_LS
|
1999-04-08 05:05:13 +08:00
|
|
|
#endif
|
|
|
|
|
1999-10-30 22:22:10 +08:00
|
|
|
#include "php_regex.h"
|
1999-04-08 05:05:13 +08:00
|
|
|
|
|
|
|
/* PHP's DEBUG value must match Zend's ZEND_DEBUG value */
|
2000-03-12 04:48:49 +08:00
|
|
|
#undef PHP_DEBUG
|
|
|
|
#define PHP_DEBUG ZEND_DEBUG
|
1999-04-08 05:05:13 +08:00
|
|
|
|
|
|
|
|
2000-03-12 04:48:49 +08:00
|
|
|
#if PHP_DEBUG || !(defined(__GNUC__)||defined(PHP_WIN32))
|
1999-04-08 05:05:13 +08:00
|
|
|
#ifdef inline
|
|
|
|
#undef inline
|
|
|
|
#endif
|
|
|
|
#define inline
|
|
|
|
#endif
|
|
|
|
|
2000-02-11 03:41:21 +08:00
|
|
|
#define APACHE 0
|
|
|
|
#define CGI_BINARY 0
|
1999-04-08 05:05:13 +08:00
|
|
|
|
|
|
|
#if HAVE_UNIX_H
|
|
|
|
#include <unix.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if HAVE_ALLOCA_H
|
|
|
|
#include <alloca.h>
|
|
|
|
#endif
|
|
|
|
|
1999-09-15 17:35:20 +08:00
|
|
|
#ifndef HAVE_STRLCPY
|
2000-04-21 01:40:03 +08:00
|
|
|
PHPAPI size_t strlcpy(char *dst, const char *src, size_t siz);
|
1999-09-15 03:12:57 +08:00
|
|
|
#endif
|
|
|
|
|
1999-09-15 17:35:20 +08:00
|
|
|
#ifndef HAVE_STRLCAT
|
2000-04-21 01:40:03 +08:00
|
|
|
PHPAPI size_t strlcat(char *dst, const char *src, size_t siz);
|
1999-09-15 03:12:57 +08:00
|
|
|
#endif
|
|
|
|
|
1999-11-27 08:48:50 +08:00
|
|
|
#ifndef HAVE_STRTOK_R
|
|
|
|
char *strtok_r(char *s, const char *delim, char **last);
|
|
|
|
#endif
|
|
|
|
|
1999-12-31 00:09:17 +08:00
|
|
|
#ifndef HAVE_SOCKLEN_T
|
|
|
|
typedef unsigned int socklen_t;
|
|
|
|
#endif
|
|
|
|
|
1999-04-08 05:05:13 +08:00
|
|
|
#define CREATE_MUTEX(a,b)
|
|
|
|
#define SET_MUTEX(a)
|
|
|
|
#define FREE_MUTEX(a)
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Then the ODBC support can use both iodbc and Solid,
|
|
|
|
* uncomment this.
|
|
|
|
* #define HAVE_ODBC (HAVE_IODBC|HAVE_SOLID)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
#if HAVE_UNISTD_H
|
|
|
|
#include <unistd.h>
|
|
|
|
#endif
|
|
|
|
#if HAVE_STDARG_H
|
|
|
|
#include <stdarg.h>
|
|
|
|
#else
|
|
|
|
# if HAVE_SYS_VARARGS_H
|
|
|
|
# include <sys/varargs.h>
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#include "zend_hash.h"
|
1999-12-05 07:03:01 +08:00
|
|
|
#include "php3_compat.h"
|
1999-04-08 05:05:13 +08:00
|
|
|
#include "zend_alloc.h"
|
|
|
|
#include "zend_stack.h"
|
|
|
|
|
|
|
|
typedef zval pval;
|
|
|
|
|
|
|
|
#define pval_copy_constructor zval_copy_ctor
|
|
|
|
#define pval_destructor zval_dtor
|
|
|
|
|
|
|
|
#if STDC_HEADERS
|
|
|
|
# include <string.h>
|
|
|
|
#else
|
|
|
|
# ifndef HAVE_MEMCPY
|
|
|
|
# define memcpy(d, s, n) bcopy((s), (d), (n))
|
|
|
|
# define memmove(d, s, n) bcopy ((s), (d), (n))
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "safe_mode.h"
|
|
|
|
|
|
|
|
#ifndef HAVE_STRERROR
|
|
|
|
extern char *strerror(int);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "fopen-wrappers.h"
|
|
|
|
|
2000-02-18 18:13:15 +08:00
|
|
|
#if (REGEX == 1 || REGEX == 0) && !defined(NO_REGEX_EXTRA_H)
|
1999-11-14 00:51:33 +08:00
|
|
|
#include "regex/regex_extra.h"
|
|
|
|
#endif
|
|
|
|
|
1999-04-08 05:05:13 +08:00
|
|
|
#if HAVE_PWD_H
|
2000-02-11 23:59:30 +08:00
|
|
|
# ifdef PHP_WIN32
|
1999-04-08 05:05:13 +08:00
|
|
|
#include "win32/pwd.h"
|
|
|
|
#include "win32/param.h"
|
|
|
|
# else
|
|
|
|
#include <pwd.h>
|
|
|
|
#include <sys/param.h>
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if HAVE_LIMITS_H
|
|
|
|
#include <limits.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef LONG_MAX
|
|
|
|
#define LONG_MAX 2147483647L
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef LONG_MIN
|
|
|
|
#define LONG_MIN (- LONG_MAX - 1)
|
|
|
|
#endif
|
|
|
|
|
2000-03-13 01:18:21 +08:00
|
|
|
#if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF) || defined(BROKEN_SPRINTF)
|
2000-03-12 23:47:34 +08:00
|
|
|
#include "snprintf.h"
|
1999-04-08 05:05:13 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define EXEC_INPUT_BUF 4096
|
|
|
|
|
|
|
|
|
|
|
|
#define DONT_FREE 0
|
|
|
|
#define DO_FREE 1
|
|
|
|
|
1999-12-22 03:40:27 +08:00
|
|
|
#define PHP_MIME_TYPE "application/x-httpd-php"
|
1999-04-08 05:05:13 +08:00
|
|
|
|
|
|
|
/* macros */
|
|
|
|
#undef COPY_STRING
|
|
|
|
#define COPY_STRING(yy) (yy).value.str.val = (char *) estrndup((yy).value.str.val,(yy).value.str.len)
|
1999-07-09 03:18:42 +08:00
|
|
|
#define STR_PRINT(str) ((str)?(str):"")
|
1999-04-08 05:05:13 +08:00
|
|
|
|
|
|
|
#ifndef MAXPATHLEN
|
|
|
|
#define MAXPATHLEN 256 /* Should be safe for any weird systems that do not define it */
|
|
|
|
#endif
|
|
|
|
|
1999-12-18 03:16:50 +08:00
|
|
|
#define PHP_FN(name) php_if_##name
|
1999-04-08 05:05:13 +08:00
|
|
|
#define PHP_NAMED_FUNCTION(name) void name(INTERNAL_FUNCTION_PARAMETERS)
|
1999-12-18 03:16:50 +08:00
|
|
|
#define PHP_FUNCTION(name) PHP_NAMED_FUNCTION(PHP_FN(name))
|
1999-04-08 05:05:13 +08:00
|
|
|
|
|
|
|
#define PHP_NAMED_FE(php_name, name, arg_types) { #php_name, name, arg_types },
|
1999-12-18 03:16:50 +08:00
|
|
|
#define PHP_FE(name, arg_types) PHP_NAMED_FE(name, PHP_FN(name), arg_types)
|
|
|
|
#define PHP_FALIAS(name, alias, arg_types) PHP_NAMED_FE(name, PHP_FN(alias), arg_types)
|
1999-04-08 05:05:13 +08:00
|
|
|
|
1999-12-18 03:16:50 +08:00
|
|
|
#define PHP_MINIT(module) php_minit_##module
|
|
|
|
#define PHP_MSHUTDOWN(module) php_mshutdown_##module
|
|
|
|
#define PHP_RINIT(module) php_rinit_##module
|
|
|
|
#define PHP_RSHUTDOWN(module) php_rshutdown_##module
|
|
|
|
#define PHP_MINFO(module) php_info_##module
|
|
|
|
#define PHP_GINIT(module) php_ginit_##module
|
|
|
|
#define PHP_GSHUTDOWN(module) php_gshutdown_##module
|
1999-09-04 01:46:39 +08:00
|
|
|
|
|
|
|
#define PHP_MINIT_FUNCTION(module) int PHP_MINIT(module)(INIT_FUNC_ARGS)
|
|
|
|
#define PHP_MSHUTDOWN_FUNCTION(module) int PHP_MSHUTDOWN(module)(SHUTDOWN_FUNC_ARGS)
|
|
|
|
#define PHP_RINIT_FUNCTION(module) int PHP_RINIT(module)(INIT_FUNC_ARGS)
|
|
|
|
#define PHP_RSHUTDOWN_FUNCTION(module) int PHP_RSHUTDOWN(module)(SHUTDOWN_FUNC_ARGS)
|
|
|
|
#define PHP_MINFO_FUNCTION(module) void PHP_MINFO(module)(ZEND_MODULE_INFO_FUNC_ARGS)
|
2000-03-07 04:37:11 +08:00
|
|
|
#define PHP_GINIT_FUNCTION(module) int PHP_GINIT(module)(GINIT_FUNC_ARGS)
|
|
|
|
#define PHP_GSHUTDOWN_FUNCTION(module) int PHP_GSHUTDOWN(module)(void)
|
1999-07-27 04:09:08 +08:00
|
|
|
|
1999-04-08 05:05:13 +08:00
|
|
|
|
|
|
|
/* global variables */
|
|
|
|
extern pval *data;
|
2000-02-11 23:59:30 +08:00
|
|
|
#if !defined(PHP_WIN32)
|
1999-04-08 05:05:13 +08:00
|
|
|
extern char **environ;
|
2000-02-11 03:41:21 +08:00
|
|
|
#define php_sleep sleep
|
1999-04-08 05:05:13 +08:00
|
|
|
#endif
|
1999-04-26 22:00:49 +08:00
|
|
|
|
1999-04-08 05:05:13 +08:00
|
|
|
extern void phperror(char *error);
|
1999-12-18 03:16:50 +08:00
|
|
|
extern PHPAPI int php_write(void *buf, int size);
|
2000-02-19 21:11:02 +08:00
|
|
|
extern PHPAPI int php_printf(const char *format, ...);
|
1999-12-18 03:16:50 +08:00
|
|
|
extern void php_log_err(char *log_message);
|
2000-02-19 21:11:02 +08:00
|
|
|
extern int Debug(char *format, ...);
|
1999-04-08 05:05:13 +08:00
|
|
|
extern int cfgparse(void);
|
|
|
|
|
2000-04-28 02:37:02 +08:00
|
|
|
#define php_error zend_error
|
|
|
|
|
|
|
|
|
1999-04-08 05:05:13 +08:00
|
|
|
#define zenderror phperror
|
|
|
|
#define zendlex phplex
|
|
|
|
|
|
|
|
#define phpparse zendparse
|
|
|
|
#define phprestart zendrestart
|
|
|
|
#define phpin zendin
|
|
|
|
|
|
|
|
/* functions */
|
1999-12-08 04:49:01 +08:00
|
|
|
int php_startup_internal_extensions(void);
|
|
|
|
int php_global_startup_internal_extensions(void);
|
|
|
|
int php_global_shutdown_internal_extensions(void);
|
1999-04-08 05:05:13 +08:00
|
|
|
|
1999-10-16 05:23:37 +08:00
|
|
|
int mergesort(void *base, size_t nmemb, register size_t size, int (*cmp) (const void *, const void *));
|
1999-10-16 03:23:04 +08:00
|
|
|
|
1999-04-08 05:05:13 +08:00
|
|
|
/*from basic functions*/
|
1999-08-03 03:17:14 +08:00
|
|
|
extern PHPAPI int _php_error_log(int opt_err,char *message,char *opt,char *headers);
|
1999-04-08 05:05:13 +08:00
|
|
|
|
2000-01-15 21:02:54 +08:00
|
|
|
PHPAPI void php_register_pre_request_shutdown(void (*func)(void *), void *userdata);
|
1999-11-18 07:01:27 +08:00
|
|
|
|
1999-04-08 05:05:13 +08:00
|
|
|
PHPAPI int cfg_get_long(char *varname, long *result);
|
|
|
|
PHPAPI int cfg_get_double(char *varname, double *result);
|
|
|
|
PHPAPI int cfg_get_string(char *varname, char **result);
|
|
|
|
|
|
|
|
|
|
|
|
/* Output support */
|
1999-10-28 02:30:41 +08:00
|
|
|
#include "ext/standard/php_output.h"
|
1999-09-12 11:25:02 +08:00
|
|
|
#define PHPWRITE(str, str_len) php_body_write((str), (str_len))
|
|
|
|
#define PUTS(str) php_body_write((str), strlen((str)))
|
|
|
|
#define PUTC(c) (php_body_write(&(c), 1), (c))
|
|
|
|
#define PHPWRITE_H(str, str_len) php_header_write((str), (str_len))
|
|
|
|
#define PUTS_H(str) php_header_write((str), strlen((str)))
|
|
|
|
#define PUTC_H(c) (php_header_write(&(c), 1), (c))
|
1999-04-08 05:05:13 +08:00
|
|
|
|
2000-06-25 00:10:18 +08:00
|
|
|
#ifdef ZTS
|
2000-05-24 01:02:21 +08:00
|
|
|
#define VIRTUAL_DIR
|
2000-06-25 00:10:18 +08:00
|
|
|
#endif
|
|
|
|
|
2000-04-10 03:54:50 +08:00
|
|
|
#include "php_virtual_cwd.h"
|
2000-04-07 18:26:28 +08:00
|
|
|
|
2000-03-31 06:38:50 +08:00
|
|
|
/* Virtual current directory support */
|
|
|
|
#ifdef VIRTUAL_DIR
|
2000-06-13 03:39:04 +08:00
|
|
|
|
2000-04-15 22:20:01 +08:00
|
|
|
#define V_GETCWD(buff, size) virtual_getcwd(buff,size)
|
|
|
|
#define V_FOPEN(path, mode) virtual_fopen(path, mode)
|
2000-05-01 00:32:36 +08:00
|
|
|
/* The V_OPEN macro will need to be used as V_OPEN((path, flags, ...)) */
|
|
|
|
#define V_OPEN(open_args) virtual_open open_args
|
2000-04-30 03:01:58 +08:00
|
|
|
#define V_CREAT(path, mode) virtual_creat(path, mode)
|
2000-04-15 22:20:01 +08:00
|
|
|
#define V_CHDIR(path) virtual_chdir(path)
|
|
|
|
#define V_CHDIR_FILE(path) virtual_chdir_file(path)
|
|
|
|
#define V_GETWD(buf)
|
2000-04-21 00:38:08 +08:00
|
|
|
#define V_STAT(path, buff) virtual_stat(path, buff)
|
2000-04-21 01:58:25 +08:00
|
|
|
#ifdef PHP_WIN32
|
|
|
|
#define V_LSTAT(path, buff) virtual_stat(path, buff)
|
|
|
|
#else
|
2000-04-21 01:24:01 +08:00
|
|
|
#define V_LSTAT(path, buff) virtual_lstat(path, buff)
|
2000-04-21 01:58:25 +08:00
|
|
|
#endif
|
2000-05-23 22:36:27 +08:00
|
|
|
#define V_UNLINK(path) virtual_unlink(path)
|
2000-05-24 01:02:21 +08:00
|
|
|
#define V_MKDIR(pathname, mode) virtual_mkdir(pathname, mode)
|
|
|
|
#define V_RMDIR(pathname) virtual_rmdir(pathname)
|
2000-06-04 16:29:11 +08:00
|
|
|
#define V_OPENDIR(pathname) virtual_opendir(pathname)
|
2000-06-13 02:48:18 +08:00
|
|
|
#define V_POPEN(command, type) virtual_popen(command, type)
|
2000-06-13 03:39:04 +08:00
|
|
|
|
2000-03-31 06:38:50 +08:00
|
|
|
#else
|
2000-06-13 03:39:04 +08:00
|
|
|
|
2000-04-15 22:20:01 +08:00
|
|
|
#define V_GETCWD(buff, size) getcwd(buff,size)
|
|
|
|
#define V_FOPEN(path, mode) fopen(path, mode)
|
2000-05-01 00:32:36 +08:00
|
|
|
#define V_OPEN(open_args) open open_args
|
2000-04-30 03:01:58 +08:00
|
|
|
#define V_CREAT(path, mode) creat(path, mode)
|
2000-04-15 22:20:01 +08:00
|
|
|
#define V_CHDIR(path) chdir(path)
|
|
|
|
#define V_CHDIR_FILE(path) chdir_file(path)
|
|
|
|
#define V_GETWD(buf) getwd(buf)
|
2000-04-21 00:38:08 +08:00
|
|
|
#define V_STAT(path, buff) stat(path, buff)
|
2000-04-21 01:24:01 +08:00
|
|
|
#define V_LSTAT(path, buff) lstat(path, buff)
|
2000-05-23 22:36:27 +08:00
|
|
|
#define V_UNLINK(path) unlink(path)
|
2000-05-24 01:02:21 +08:00
|
|
|
#define V_MKDIR(pathname, mode) mkdir(pathname, mode)
|
|
|
|
#define V_RMDIR(pathname) rmdir(pathname)
|
2000-06-04 16:29:11 +08:00
|
|
|
#define V_OPENDIR(pathname) opendir(pathname)
|
2000-06-13 02:48:18 +08:00
|
|
|
#define V_POPEN(command, type) popen(command, type)
|
2000-06-13 03:39:04 +08:00
|
|
|
|
2000-03-31 06:38:50 +08:00
|
|
|
#endif
|
1999-04-08 05:05:13 +08:00
|
|
|
|
|
|
|
#include "zend_constants.h"
|
|
|
|
|
1999-09-05 04:12:47 +08:00
|
|
|
/* connection status states */
|
|
|
|
#define PHP_CONNECTION_NORMAL 0
|
|
|
|
#define PHP_CONNECTION_ABORTED 1
|
|
|
|
#define PHP_CONNECTION_TIMEOUT 2
|
1999-04-08 05:05:13 +08:00
|
|
|
|
1999-11-27 01:07:41 +08:00
|
|
|
#include "php_reentrancy.h"
|
1999-04-10 03:09:29 +08:00
|
|
|
|
|
|
|
/* Finding offsets of elements within structures.
|
|
|
|
* Taken from the Apache code, which in turn, was taken from X code...
|
|
|
|
*/
|
|
|
|
|
|
|
|
#if defined(CRAY) || (defined(__arm) && !defined(LINUX))
|
|
|
|
#ifdef __STDC__
|
|
|
|
#define XtOffset(p_type,field) _Offsetof(p_type,field)
|
|
|
|
#else
|
|
|
|
#ifdef CRAY2
|
|
|
|
#define XtOffset(p_type,field) \
|
|
|
|
(sizeof(int)*((unsigned int)&(((p_type)NULL)->field)))
|
|
|
|
|
|
|
|
#else /* !CRAY2 */
|
|
|
|
|
|
|
|
#define XtOffset(p_type,field) ((unsigned int)&(((p_type)NULL)->field))
|
|
|
|
|
|
|
|
#endif /* !CRAY2 */
|
|
|
|
#endif /* __STDC__ */
|
|
|
|
#else /* ! (CRAY || __arm) */
|
|
|
|
|
|
|
|
#define XtOffset(p_type,field) \
|
|
|
|
((long) (((char *) (&(((p_type)NULL)->field))) - ((char *) NULL)))
|
|
|
|
|
|
|
|
#endif /* !CRAY */
|
|
|
|
|
|
|
|
#ifdef offsetof
|
|
|
|
#define XtOffsetOf(s_type,field) offsetof(s_type,field)
|
|
|
|
#else
|
|
|
|
#define XtOffsetOf(s_type,field) XtOffset(s_type*,field)
|
|
|
|
#endif
|
|
|
|
|
2000-05-30 01:08:01 +08:00
|
|
|
PHP_FUNCTION(warn_not_available);
|
|
|
|
|
1999-04-08 05:05:13 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Local variables:
|
|
|
|
* tab-width: 4
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* End:
|
|
|
|
*/
|