diff options
author | Stanislav Malyshev <stas@php.net> | 2015-01-03 01:22:58 -0800 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2015-01-10 15:07:38 -0800 |
commit | b7a7b1a624c97945c0aaa49d46ae996fc0bdb6bc (patch) | |
tree | 0e09490075ee4f9a75a77ef4168d8ee254c52e5b /ext/calendar | |
parent | 773c8b0c092a0e9ad5c5548815bcb9991d54d5c1 (diff) | |
download | php-git-b7a7b1a624c97945c0aaa49d46ae996fc0bdb6bc.tar.gz |
trailing whitespace removal
Diffstat (limited to 'ext/calendar')
-rw-r--r-- | ext/calendar/cal_unix.c | 8 | ||||
-rw-r--r-- | ext/calendar/easter.c | 8 | ||||
-rw-r--r-- | ext/calendar/php_calendar.h | 4 |
3 files changed, 10 insertions, 10 deletions
diff --git a/ext/calendar/cal_unix.c b/ext/calendar/cal_unix.c index 438bf38527..68dde0fa9a 100644 --- a/ext/calendar/cal_unix.c +++ b/ext/calendar/cal_unix.c @@ -12,7 +12,7 @@ | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ - | Authors: Shane Caraveo <shane@caraveo.com> | + | Authors: Shane Caraveo <shane@caraveo.com> | | Colin Viebrock <colin@easydns.com> | | Hartmut Holzgraefe <hholzgra@php.net> | +----------------------------------------------------------------------+ @@ -33,7 +33,7 @@ PHP_FUNCTION(unixtojd) if (zend_parse_parameters(ZEND_NUM_ARGS(), "|l", &ts) == FAILURE) { return; - } + } if (!ts) { ts = time(NULL); @@ -57,10 +57,10 @@ PHP_FUNCTION(jdtounix) if (zend_parse_parameters(ZEND_NUM_ARGS(), "l", &uday) == FAILURE) { return; - } + } uday -= 2440588 /* J.D. of 1.1.1970 */; - if (uday < 0 || uday > 24755) { /* before beginning of unix epoch or behind end of unix epoch */ + if (uday < 0 || uday > 24755) { /* before beginning of unix epoch or behind end of unix epoch */ RETURN_FALSE; } diff --git a/ext/calendar/easter.c b/ext/calendar/easter.c index 90e93cb54b..0b58fa9679 100644 --- a/ext/calendar/easter.c +++ b/ext/calendar/easter.c @@ -12,7 +12,7 @@ | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ - | Authors: Shane Caraveo <shane@caraveo.com> | + | Authors: Shane Caraveo <shane@caraveo.com> | | Colin Viebrock <colin@easydns.com> | | Hartmut Holzgraefe <hholzgra@php.net> | +----------------------------------------------------------------------+ @@ -50,7 +50,7 @@ static void _cal_easter(INTERNAL_FUNCTION_PARAMETERS, zend_long gm) "|ll", &year, &method) == FAILURE) { return; } - + if (gm && (year<1970 || year>2037)) { /* out of range for timestamps */ php_error_docref(NULL, E_WARNING, "This function is only valid for years between 1970 and 2037 inclusive"); RETURN_FALSE; @@ -61,7 +61,7 @@ static void _cal_easter(INTERNAL_FUNCTION_PARAMETERS, zend_long gm) if ((year <= 1582 && method != CAL_EASTER_ALWAYS_GREGORIAN) || (year >= 1583 && year <= 1752 && method != CAL_EASTER_ROMAN && method != CAL_EASTER_ALWAYS_GREGORIAN) || method == CAL_EASTER_ALWAYS_JULIAN) { /* JULIAN CALENDAR */ - + dom = (year + (year/4) + 5) % 7; /* the "Dominical number" - finding a Sunday */ if (dom < 0) { dom += 7; @@ -112,7 +112,7 @@ static void _cal_easter(INTERNAL_FUNCTION_PARAMETERS, zend_long gm) te.tm_mday = easter-10; } result = mktime(&te); - } else { /* return the days after March 21 */ + } else { /* return the days after March 21 */ result = easter; } ZVAL_LONG(return_value, result); diff --git a/ext/calendar/php_calendar.h b/ext/calendar/php_calendar.h index e353fab893..f574877a81 100644 --- a/ext/calendar/php_calendar.h +++ b/ext/calendar/php_calendar.h @@ -32,14 +32,14 @@ PHP_FUNCTION(cal_info); /* * Specifying the easter calculation method - * + * * DEFAULT is Anglican, ie. use Julian calendar before 1753 * and Gregorian after that. With ROMAN, the cutoff year is 1582. * ALWAYS_GREGORIAN and ALWAYS_JULIAN force the calendar * regardless of date. * */ - + #define CAL_EASTER_DEFAULT 0 #define CAL_EASTER_ROMAN 1 #define CAL_EASTER_ALWAYS_GREGORIAN 2 |