diff options
author | Max Semenik <maxsem.wiki@gmail.com> | 2020-07-01 16:32:55 +0300 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-07-06 21:13:34 +0200 |
commit | 2b5de6f839feea0ae1d5289d59dd7f159fcdcc8c (patch) | |
tree | f23a5c00a96f30a62ddcf626b4c6a6d53809d14f /ext/calendar | |
parent | 47579986504022d3eab38e24fff5861d5e4eadad (diff) | |
download | php-git-2b5de6f839feea0ae1d5289d59dd7f159fcdcc8c.tar.gz |
Remove proto comments from C files
Closes GH-5758
Diffstat (limited to 'ext/calendar')
-rw-r--r-- | ext/calendar/cal_unix.c | 6 | ||||
-rw-r--r-- | ext/calendar/calendar.c | 42 | ||||
-rw-r--r-- | ext/calendar/easter.c | 6 |
3 files changed, 18 insertions, 36 deletions
diff --git a/ext/calendar/cal_unix.c b/ext/calendar/cal_unix.c index cfcc62f11b..6b5fbf7f79 100644 --- a/ext/calendar/cal_unix.c +++ b/ext/calendar/cal_unix.c @@ -21,8 +21,7 @@ #include "sdncal.h" #include <time.h> -/* {{{ proto int unixtojd([int timestamp]) - Convert UNIX timestamp to Julian Day */ +/* {{{ Convert UNIX timestamp to Julian Day */ PHP_FUNCTION(unixtojd) { time_t ts; @@ -48,8 +47,7 @@ PHP_FUNCTION(unixtojd) } /* }}} */ -/* {{{ proto int jdtounix(int jday) - Convert Julian Day to UNIX timestamp */ +/* {{{ Convert Julian Day to UNIX timestamp */ PHP_FUNCTION(jdtounix) { zend_long uday; diff --git a/ext/calendar/calendar.c b/ext/calendar/calendar.c index fd8b107156..4de31ccf77 100644 --- a/ext/calendar/calendar.c +++ b/ext/calendar/calendar.c @@ -169,8 +169,7 @@ static void _php_cal_info(int cal, zval *ret) } -/* {{{ proto array cal_info([int calendar]) - Returns information about a particular calendar */ +/* {{{ Returns information about a particular calendar */ PHP_FUNCTION(cal_info) { zend_long cal = -1; @@ -201,8 +200,7 @@ PHP_FUNCTION(cal_info) } /* }}} */ -/* {{{ proto int cal_days_in_month(int calendar, int month, int year) - Returns the number of days in a month for a given year and calendar */ +/* {{{ Returns the number of days in a month for a given year and calendar */ PHP_FUNCTION(cal_days_in_month) { zend_long cal, month, year; @@ -249,8 +247,7 @@ PHP_FUNCTION(cal_days_in_month) } /* }}} */ -/* {{{ proto int cal_to_jd(int calendar, int month, int day, int year) - Converts from a supported calendar to Julian Day Count */ +/* {{{ Converts from a supported calendar to Julian Day Count */ PHP_FUNCTION(cal_to_jd) { zend_long cal, month, day, year; @@ -268,8 +265,7 @@ PHP_FUNCTION(cal_to_jd) } /* }}} */ -/* {{{ proto array cal_from_jd(int jd, int calendar) - Converts from Julian Day Count to a supported calendar and return extended information */ +/* {{{ Converts from Julian Day Count to a supported calendar and return extended information */ PHP_FUNCTION(cal_from_jd) { zend_long jd, cal; @@ -320,8 +316,7 @@ PHP_FUNCTION(cal_from_jd) } /* }}} */ -/* {{{ proto string jdtogregorian(int juliandaycount) - Converts a julian day count to a gregorian calendar date */ +/* {{{ Converts a julian day count to a gregorian calendar date */ PHP_FUNCTION(jdtogregorian) { zend_long julday; @@ -337,8 +332,7 @@ PHP_FUNCTION(jdtogregorian) } /* }}} */ -/* {{{ proto int gregoriantojd(int month, int day, int year) - Converts a gregorian calendar date to julian day count */ +/* {{{ Converts a gregorian calendar date to julian day count */ PHP_FUNCTION(gregoriantojd) { zend_long year, month, day; @@ -351,8 +345,7 @@ PHP_FUNCTION(gregoriantojd) } /* }}} */ -/* {{{ proto string jdtojulian(int juliandaycount) - Convert a julian day count to a julian calendar date */ +/* {{{ Convert a julian day count to a julian calendar date */ PHP_FUNCTION(jdtojulian) { zend_long julday; @@ -368,8 +361,7 @@ PHP_FUNCTION(jdtojulian) } /* }}} */ -/* {{{ proto int juliantojd(int month, int day, int year) - Converts a julian calendar date to julian day count */ +/* {{{ Converts a julian calendar date to julian day count */ PHP_FUNCTION(juliantojd) { zend_long year, month, day; @@ -478,8 +470,7 @@ static char *heb_number_to_chars(int n, int fl, char **ret) } /* }}} */ -/* {{{ proto string jdtojewish(int juliandaycount [, bool hebrew [, int fl]]) - Converts a julian day count to a jewish calendar date */ +/* {{{ Converts a julian day count to a jewish calendar date */ PHP_FUNCTION(jdtojewish) { zend_long julday, fl = 0; @@ -512,8 +503,7 @@ PHP_FUNCTION(jdtojewish) } /* }}} */ -/* {{{ proto int jewishtojd(int month, int day, int year) - Converts a jewish calendar date to a julian day count */ +/* {{{ Converts a jewish calendar date to a julian day count */ PHP_FUNCTION(jewishtojd) { zend_long year, month, day; @@ -526,8 +516,7 @@ PHP_FUNCTION(jewishtojd) } /* }}} */ -/* {{{ proto string jdtofrench(int juliandaycount) - Converts a julian day count to a french republic calendar date */ +/* {{{ Converts a julian day count to a french republic calendar date */ PHP_FUNCTION(jdtofrench) { zend_long julday; @@ -543,8 +532,7 @@ PHP_FUNCTION(jdtofrench) } /* }}} */ -/* {{{ proto int frenchtojd(int month, int day, int year) - Converts a french republic calendar date to julian day count */ +/* {{{ Converts a french republic calendar date to julian day count */ PHP_FUNCTION(frenchtojd) { zend_long year, month, day; @@ -557,8 +545,7 @@ PHP_FUNCTION(frenchtojd) } /* }}} */ -/* {{{ proto mixed jddayofweek(int juliandaycount [, int mode]) - Returns name or number of day of week from julian day count */ +/* {{{ Returns name or number of day of week from julian day count */ PHP_FUNCTION(jddayofweek) { zend_long julday, mode = CAL_DOW_DAYNO; @@ -588,8 +575,7 @@ PHP_FUNCTION(jddayofweek) } /* }}} */ -/* {{{ proto string jdmonthname(int juliandaycount, int mode) - Returns name of month for julian day count */ +/* {{{ Returns name of month for julian day count */ PHP_FUNCTION(jdmonthname) { zend_long julday, mode; diff --git a/ext/calendar/easter.c b/ext/calendar/easter.c index 05f54084b4..291fd4a272 100644 --- a/ext/calendar/easter.c +++ b/ext/calendar/easter.c @@ -115,16 +115,14 @@ static void _cal_easter(INTERNAL_FUNCTION_PARAMETERS, zend_long gm) ZVAL_LONG(return_value, result); } -/* {{{ proto int easter_date([int year]) - Return the timestamp of midnight on Easter of a given year (defaults to current year) */ +/* {{{ Return the timestamp of midnight on Easter of a given year (defaults to current year) */ PHP_FUNCTION(easter_date) { _cal_easter(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1); } /* }}} */ -/* {{{ proto int easter_days([int year, [int method]]) - Return the number of days after March 21 that Easter falls on for a given year (defaults to current year) */ +/* {{{ Return the number of days after March 21 that Easter falls on for a given year (defaults to current year) */ PHP_FUNCTION(easter_days) { _cal_easter(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0); |