Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is `*` (the asterisk) a keyword in C11?

In section 6.4.1 of the C11 standard an asterisk appears in the list of keywords:

keyword: one of
  auto      ∗ if        unsigned
  break       inline    void
  ...

Does this indicate that * is a keyword?

If not, what is its use here indicating?

like image 553
andypea Avatar asked Apr 10 '14 03:04

andypea


1 Answers

It is a diff mark.

In the abstract (p.1) of N1570:

Changes from the previous draft (N1539) are indicated by ‘‘diff marks’’ in the right margin: deleted text is marked with ‘‘∗’’, new or changed text with ‘‘ ’’.

In the N1539 draft, alignof was a keyword, appearing on the first row of that table:

N1750 dropped alignof and replaced it with _Alignof.

The placement of the "*" does seem slightly odd, but it definitely doesn't refer to the * operator.

like image 90
Lee Duhem Avatar answered Sep 19 '22 17:09

Lee Duhem