jani            Tue Nov  6 10:57:10 2007 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/standard       lcg.c 
  Log:
  MFH: ws + folding tags
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/lcg.c?r1=1.41.2.1.2.2&r2=1.41.2.1.2.2.2.1&diff_format=u
Index: php-src/ext/standard/lcg.c
diff -u php-src/ext/standard/lcg.c:1.41.2.1.2.2 
php-src/ext/standard/lcg.c:1.41.2.1.2.2.2.1
--- php-src/ext/standard/lcg.c:1.41.2.1.2.2     Thu May 17 06:38:13 2007
+++ php-src/ext/standard/lcg.c  Tue Nov  6 10:57:10 2007
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: lcg.c,v 1.41.2.1.2.2 2007/05/17 06:38:13 rasmus Exp $ */
+/* $Id: lcg.c,v 1.41.2.1.2.2.2.1 2007/11/06 10:57:10 jani Exp $ */
 
 #include "php.h"
 #include "php_lcg.h"
@@ -36,7 +36,6 @@
 #else
 static php_lcg_globals lcg_globals;
 #endif
- 
 
 #ifdef PHP_WIN32
 #include <process.h>
@@ -44,7 +43,7 @@
 
 /*
  * combinedLCG() returns a pseudo random number in the range of (0, 1).
- * The function combines two CGs with periods of 
+ * The function combines two CGs with periods of
  * 2^31 - 85 and 2^31 - 249. The period of this function
  * is equal to the product of both primes.
  */
@@ -53,11 +52,11 @@
 
 static void lcg_seed(TSRMLS_D);
 
-PHPAPI double php_combined_lcg(TSRMLS_D)
+PHPAPI double php_combined_lcg(TSRMLS_D) /* {{{ */
 {
        php_int32 q;
        php_int32 z;
-       
+
        if (!LCG(seeded)) {
                lcg_seed(TSRMLS_C);
        }
@@ -72,8 +71,9 @@
 
        return z * 4.656613e-10;
 }
+/* }}} */
 
-static void lcg_seed(TSRMLS_D)
+static void lcg_seed(TSRMLS_D) /* {{{ */
 {
        struct timeval tv;
 
@@ -90,13 +90,15 @@
 
        LCG(seeded) = 1;
 }
+/* }}} */
 
-static void lcg_init_globals(php_lcg_globals *lcg_globals_p TSRMLS_DC)
+static void lcg_init_globals(php_lcg_globals *lcg_globals_p TSRMLS_DC) /* {{{ 
*/
 {
        LCG(seeded) = 0;
 }
+/* }}} */
 
-PHP_MINIT_FUNCTION(lcg)
+PHP_MINIT_FUNCTION(lcg) /* {{{ */
 {
 #ifdef ZTS
        ts_allocate_id(&lcg_globals_id, sizeof(php_lcg_globals), 
(ts_allocate_ctor) lcg_init_globals, NULL);
@@ -105,6 +107,7 @@
 #endif
        return SUCCESS;
 }
+/* }}} */
 
 /* {{{ proto float lcg_value()
    Returns a value from the combined linear congruential generator */

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to