diff options
author | Sascha Schumann <sas@php.net> | 2000-06-05 23:59:06 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2000-06-05 23:59:06 +0000 |
commit | 45a5555b09aa706e9326f8ec0cf388ae1709a0bf (patch) | |
tree | 3339d69db0faecb9d8900b79a7281339ad6e7aa5 /ext/standard/php_global.h | |
parent | 102c6ce4b89c4efd46eb8c2b212943c188312938 (diff) | |
download | php-git-45a5555b09aa706e9326f8ec0cf388ae1709a0bf.tar.gz |
Move global.h to php_global.h.
Diffstat (limited to 'ext/standard/php_global.h')
-rw-r--r-- | ext/standard/php_global.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/ext/standard/php_global.h b/ext/standard/php_global.h new file mode 100644 index 0000000000..9b03e21b82 --- /dev/null +++ b/ext/standard/php_global.h @@ -0,0 +1,62 @@ +/* + +----------------------------------------------------------------------+ + | PHP HTML Embedded Scripting Language Version 3.0 | + +----------------------------------------------------------------------+ + | Copyright (c) 1997,1998 PHP Development Team (See Credits file) | + +----------------------------------------------------------------------+ + | This program is free software; you can redistribute it and/or modify | + | it under the terms of one of the following licenses: | + | | + | A) the GNU General Public License as published by the Free Software | + | Foundation; either version 2 of the License, or (at your option) | + | any later version. | + | | + | B) the PHP License as published by the PHP Development Team and | + | included in the distribution in the file: LICENSE | + | | + | This program is distributed in the hope that it will be useful, | + | but WITHOUT ANY WARRANTY; without even the implied warranty of | + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | + | GNU General Public License for more details. | + | | + | You should have received a copy of both licenses referred to here. | + | If you did not, or have any questions about PHP licensing, please | + | contact core@php.net. | + +----------------------------------------------------------------------+ + | Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca> | + +----------------------------------------------------------------------+ + */ +/* GLOBAL.H - RSAREF types and constants + */ + +/* PROTOTYPES should be set to one if and only if the compiler supports + function argument prototyping. + The following makes PROTOTYPES default to 0 if it has not already + been defined with C compiler flags. + */ +#ifndef PROTOTYPES +#define PROTOTYPES 1 /* PHP has prototypes everywhere */ +#endif + +/* _POINTER defines a generic pointer type */ +typedef unsigned char *_POINTER; + +/* UINT2 defines a two byte word */ +typedef unsigned short int UINT2; + +/* UINT4 defines a four byte word */ +#if SIZEOF_INT == 4 +typedef unsigned int UINT4; +#elif SIZEOF_LONG == 4 +typedef unsigned long UINT4; +#endif + +/* PROTO_LIST is defined depending on how PROTOTYPES is defined above. + If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it + returns an empty list. + */ +#if PROTOTYPES +#define PROTO_LIST(list) list +#else +#define PROTO_LIST(list) () +#endif |