Project

General

Profile

Bug #3721

sys/ctype.h should pragma inline isxdigit

Added by Joshua M. Clulow over 7 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Start date:
2013-04-16
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

The file sys/ctype.h contains what appears to be a typographical error resulting from over-vigorous copying and pasting, resulting in isdigit being inlined twice and isxdigit not at all.

Witness:

static boolean_t
isdigit(char c)
{
        return (ISDIGIT(c));
}
#pragma inline(isdigit)

static boolean_t
isxdigit(char c)
{
        return (ISXDIGIT(c));
}
#pragma inline(isdigit)

Also available in: Atom PDF