Skip to content

Commit e90180d

Browse files
committed
Use standard function signature instead of K&R in Intrl extension
Drive-by removal of register qualifier. Fix [-Wstrict-prototypes] warnings in Intl extension.
1 parent 57a8bf6 commit e90180d

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

ext/intl/collator/collator_is_numeric.c

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,16 +110,13 @@ static double collator_u_strtod(const UChar *nptr, UChar **endptr) /* {{{ */
110110
*
111111
* Ignores `locale' stuff.
112112
*/
113-
static zend_long collator_u_strtol(nptr, endptr, base)
114-
const UChar *nptr;
115-
UChar **endptr;
116-
register int base;
113+
static zend_long collator_u_strtol(const UChar *nptr, UChar **endptr, int base)
117114
{
118-
register const UChar *s = nptr;
119-
register zend_ulong acc;
120-
register UChar c;
121-
register zend_ulong cutoff;
122-
register int neg = 0, any, cutlim;
115+
const UChar *s = nptr;
116+
zend_ulong acc;
117+
UChar c;
118+
zend_ulong cutoff;
119+
int neg = 0, any, cutlim;
123120

124121
if (s == NULL) {
125122
errno = ERANGE;

0 commit comments

Comments
 (0)