diff options
| author | Antony Dovgal <tony2001@php.net> | 2007-07-14 08:38:20 +0000 |
|---|---|---|
| committer | Antony Dovgal <tony2001@php.net> | 2007-07-14 08:38:20 +0000 |
| commit | b608bd654dd9df5059dc031e7f1b01d1f14e65a5 (patch) | |
| tree | d817be4dffce1ef4917c4230cf14acaae90f56a5 /ext/standard/lcg.c | |
| parent | fd4bf13ac36ecef6803d6db0aaf4c3eafa007ce7 (diff) | |
| download | php-git-b608bd654dd9df5059dc031e7f1b01d1f14e65a5.tar.gz | |
fix ws, cs & folding
Diffstat (limited to 'ext/standard/lcg.c')
| -rw-r--r-- | ext/standard/lcg.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ext/standard/lcg.c b/ext/standard/lcg.c index 1366b4e45f..a3069749aa 100644 --- a/ext/standard/lcg.c +++ b/ext/standard/lcg.c @@ -53,7 +53,7 @@ static php_lcg_globals lcg_globals; 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; @@ -72,8 +72,9 @@ PHPAPI double php_combined_lcg(TSRMLS_D) return z * 4.656613e-10; } +/* }}} */ -static void lcg_seed(TSRMLS_D) +static void lcg_seed(TSRMLS_D) /* {{{ */ { struct timeval tv; @@ -90,13 +91,15 @@ static void lcg_seed(TSRMLS_D) 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 +108,7 @@ PHP_MINIT_FUNCTION(lcg) #endif return SUCCESS; } +/* }}} */ /* {{{ proto float lcg_value() U Returns a value from the combined linear congruential generator */ |
