home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / Magazine / HomeAutomation / Apache / include / php / ext / standard / php_global.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-05  |  2.8 KB  |  63 lines

  1. /*
  2.    +----------------------------------------------------------------------+
  3.    | PHP HTML Embedded Scripting Language Version 3.0                     |
  4.    +----------------------------------------------------------------------+
  5.    | Copyright (c) 1997,1998 PHP Development Team (See Credits file)      |
  6.    +----------------------------------------------------------------------+
  7.    | This program is free software; you can redistribute it and/or modify |
  8.    | it under the terms of one of the following licenses:                 |
  9.    |                                                                      |
  10.    |  A) the GNU General Public License as published by the Free Software |
  11.    |     Foundation; either version 2 of the License, or (at your option) |
  12.    |     any later version.                                               |
  13.    |                                                                      |
  14.    |  B) the PHP License as published by the PHP Development Team and     |
  15.    |     included in the distribution in the file: LICENSE                |
  16.    |                                                                      |
  17.    | This program is distributed in the hope that it will be useful,      |
  18.    | but WITHOUT ANY WARRANTY; without even the implied warranty of       |
  19.    | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        |
  20.    | GNU General Public License for more details.                         |
  21.    |                                                                      |
  22.    | You should have received a copy of both licenses referred to here.   |
  23.    | If you did not, or have any questions about PHP licensing, please    |
  24.    | contact core@php.net.                                                |
  25.    +----------------------------------------------------------------------+
  26.    | Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca>                       |
  27.    +----------------------------------------------------------------------+
  28.  */
  29. /* GLOBAL.H - RSAREF types and constants
  30.  */
  31.  
  32. /* PROTOTYPES should be set to one if and only if the compiler supports
  33.    function argument prototyping.
  34.    The following makes PROTOTYPES default to 0 if it has not already
  35.    been defined with C compiler flags.
  36.  */
  37. #ifndef PROTOTYPES
  38. #define PROTOTYPES 1 /* PHP has prototypes everywhere */
  39. #endif
  40.  
  41. /* _POINTER defines a generic pointer type */
  42. typedef unsigned char *_POINTER;
  43.  
  44. /* UINT2 defines a two byte word */
  45. typedef unsigned short int UINT2;
  46.  
  47. /* UINT4 defines a four byte word */
  48. #if SIZEOF_INT == 4
  49. typedef unsigned int UINT4;
  50. #elif SIZEOF_LONG == 4
  51. typedef unsigned long UINT4;
  52. #endif
  53.  
  54. /* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
  55.    If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
  56.    returns an empty list.
  57.  */
  58. #if PROTOTYPES
  59. #define PROTO_LIST(list) list
  60. #else
  61. #define PROTO_LIST(list) ()
  62. #endif
  63.