Define 'auto' keyword.
Tutti i controlli sono stati effettuati con successo
The build was successful.

This commit is contained in:
Rafal Kupiec 2019-06-08 12:19:00 +02:00
parent a00d30afa2
commit cbe4f29909
Firmato da: belliash
ID Chiave GPG: 4E829243E0CFE6B4
2 ha cambiato i file con 2 aggiunte e 0 eliminazioni

Vedi File

@ -542,6 +542,7 @@ static sxu32 KeywordCode(const char *z, int n) {
{"public", PH7_KEYWORD_PUBLIC},
{"static", PH7_KEYWORD_STATIC},
/* Data types */
{"auto", PH7_KEYWORD_AUTO},
{"bool", PH7_KEYWORD_BOOL},
{"callback", PH7_KEYWORD_CALLBACK},
{"char", PH7_KEYWORD_CHAR},

Vedi File

@ -1601,6 +1601,7 @@ enum ph7_expr_id {
#define PH7_KEYWORD_RETURN 54 /* return */
#define PH7_KEYWORD_BREAK 55 /* break */
#define PH7_KEYWORD_GOTO 56 /* goto */
#define PH7_KEYWORD_AUTO 0x000800 /* auto: MUST BE A POWER OF TWO */
#define PH7_KEYWORD_VOID 0x001000 /* void: MUST BE A POWER OF TWO */
#define PH7_KEYWORD_CHAR 0x002000 /* char: MUST BE A POWER OF TWO */
#define PH7_KEYWORD_BOOL 0x004000 /* bool: MUST BE A POWER OF TWO */