Skip to content
This repository was archived by the owner on Apr 12, 2026. It is now read-only.
This repository was archived by the owner on Apr 12, 2026. It is now read-only.

C99/C11 keyword support #43

@tgtakaoka

Description

@tgtakaoka

It is great if nesc can support some of C99 and C11 reserved keywords, for instance restrict, _Noreturn, and _Bool.

While I tried the latest nesc and tinyos with the beta release of TI MSP430-GCC which is based on gcc 7.3, I noticed that restrict and _Noreturn weren't processed correctly by nesc and caused errors. I worked around errors by making those keywords as empty string. But supporting those keywords in nesc is apparently preferable.

TinyOS defines bool as uint8_t in tos.h, but defining it as _Bool may utilize further compiler optimization. nx_bool has similar definition too. So it is highly preferable for nesc to support _Bool type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions