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

  1. /* 
  2.    +----------------------------------------------------------------------+
  3.    | PHP version 4.0                                                      |
  4.    +----------------------------------------------------------------------+
  5.    | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group                   |
  6.    +----------------------------------------------------------------------+
  7.    | This source file is subject to version 2.02 of the PHP license,      |
  8.    | that is bundled with this package in the file LICENSE, and is        |
  9.    | available at through the world-wide-web at                           |
  10.    | http://www.php.net/license/2_02.txt.                                 |
  11.    | If you did not receive a copy of the PHP license and are unable to   |
  12.    | obtain it through the world-wide-web, please send a note to          |
  13.    | license@php.net so we can mail you a copy immediately.               |
  14.    +----------------------------------------------------------------------+
  15.    | Authors: Sascha Schumann <ss@2ns.de>                                 |
  16.    +----------------------------------------------------------------------+
  17.  */
  18.  
  19. #ifndef PHP_LCG_H
  20. #define PHP_LCG_H
  21.  
  22. typedef struct {
  23.     long s1;
  24.     long s2;
  25. } php_lcg_globals;
  26.  
  27. double php_combined_lcg(void);
  28. PHP_FUNCTION(lcg_value);
  29. PHP_MINIT_FUNCTION(lcg);
  30.  
  31. #ifdef ZTS
  32. #define LCGLS_D php_lcg_globals *lcg_globals
  33. #define LCG(v) (lcg_globals->v)
  34. #define LCGLS_FETCH() php_lcg_globals *lcg_globals = ts_resource(lcg_globals_id)
  35. #else
  36. #define LCGLS_D void
  37. #define LCG(v) (lcg_globals.v)
  38. #define LCGLS_FETCH()
  39. #endif
  40.  
  41. #endif
  42.