Resumo de declarações
declaration:
declaration-specifiers attribute-seq opt init-declarator-list opt**;**/* attribute-seq é específico da Microsoft */
declaration-specifiers:
storage-class-specifier declaration-specifiers opttype-specifier declaration-specifiers opt
type-qualifier declaration-specifiers opt
attribute-seq : /* attribute-seq é específico da Microsoft */
attribute attribute-seq optattribute : uma destas opções: /* Específico da Microsoft */
init-declarator-list:
init-declaratorinit-declarator-list , init-declarator
init-declarator:
declaratordeclarator = initializer /* Para inicialização escalar */
storage-class-specifier:
autoregister
static
extern
typedef
__declspec ( extended-decl-modifier-seq ) /* Específico da Microsoft */
type-specifier:
voidchar
short
int
__int8 /* Específico da Microsoft */
__int16 /* Específico da Microsoft */
__int32 /* Específico da Microsoft */
__int64 /* Específico da Microsoft */
long
float
double
signed
sem sinal
struct-or-union-specifier
enum-specifier
typedef-name
type-qualifier:
constvolatile
declarator:
pointer opt direct-declaratordirect-declarator:
identifier( declarator )
direct-declarator [ constant-expression opt ]
direct-declarator ( parameter-type-list ) /* Declarador de novo estilo */
direct-declarator ( identifier-list opt ) /* Declarador de estilo obsoleto */
pointer:
*****type-qualifier-list opt*****type-qualifier-list opt pointer
parameter-type-list: /* A lista de parâmetros */
parameter-listparameter-list**, ...**
parameter-list:
parameter-declarationparameter-list , parameter-declaration
type-qualifier-list:
type-qualifiertype-qualifier-list type-qualifier
enum-specifier:
enum identifier opt { enumerator-list }enum identifier
enumerator-list:
enumeratorenumerator-list , enumerator
enumerator:
enumeration-constantenumeration-constant = constant-expression
enumeration-constant:
identifierstruct-or-union-specifier:
struct-or-union identifier opt { struct-declaration-list } struct-or-union identifierstruct-or-union:
structunion
struct-declaration-list:
struct-declarationstruct-declaration-list struct-declaration
struct-declaration:
specifier-qualifier-list struct-declarator-list ;specifier-qualifier-list:
type-specifier specifier-qualifier-list opttype-qualifier specifier-qualifier-list opt
struct-declarator-list:
struct-declarator struct-declarator-list , struct-declaratorstruct-declarator:
declaratortype-specifier declarator opt : constant-expression
parameter-declaration:
declaration-specifiers declarator /* Declarador nomeado */declaration-specifiers abstract-declarator opt /* Declarador anônimo */
identifier-list: /* Para declarador de estilo antigo * /
identifieridentifier-list , identifier
abstract-declarator: /* Usado com declaradores anônimos */
pointerpointer opt direct-abstract-declarator
direct-abstract-declarator:
( abstract-declarator )direct-abstract-declarator opt [ constant-expression opt ]
direct-abstract-declarator opt ( parameter-type-list opt )
initializer:
assignment-expression{ initializer-list } /* Para inicialização de agregação */
{ initializer-list , }
initializer-list:
initializerinitializer-list , initializer
type-name:
specifier-qualifier-list abstract-declarator opttypedef-name:
identifierextended-decl-modifier-seq:/* Específico da Microsoft */
extended-decl-modifier optextended-decl-modifier-seq extended-decl-modifier
extended-decl-modifier: /* Específico da Microsoft */
threadnaked
dllimport
dllexport