Skip to content

WCharacter.h and ctype.h function definitions conflict... [imported] #830

Closed
@cmaglie

Description

@cmaglie

This is Issue 830 moved from a Google Code project.
Added by 2012-02-25T07:46:26.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Invalid).

Original labels: Type-Defect, Priority-Medium

Original description

WCharacter.h (part of Arduino) contains a bunch of isXXXX() function definitions that are also defined in ctype.h, which it includes. But the Arduino definitions return "boolean", while ctype.h (and apparently the C99 standard) definitions use "int."

This does not seem to create problems now, but there are some indications on other platforms that this will result in errors under future versions of the compiler and/or fussier reporting modes.

If WCharacter.h is going to implement inline versions of the libc functions, it should do so with standards-compatible prototypes...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: InvalidOff topic for this repository, or a bug report determined to not actually represent a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions