Make widl parse the 'transmit_as' and 'endpoint' keywords.
This commit is contained in:
parent
85ef456512
commit
977d863c0e
|
@ -213,6 +213,7 @@ static struct keyword {
|
||||||
{"double", tDOUBLE},
|
{"double", tDOUBLE},
|
||||||
{"dual", tDUAL},
|
{"dual", tDUAL},
|
||||||
/* ... */
|
/* ... */
|
||||||
|
{"endpoint", tENDPOINT},
|
||||||
{"entry", tENTRY},
|
{"entry", tENTRY},
|
||||||
{"enum", tENUM},
|
{"enum", tENUM},
|
||||||
{"error_status_t", tERRORSTATUST},
|
{"error_status_t", tERRORSTATUST},
|
||||||
|
@ -282,6 +283,7 @@ static struct keyword {
|
||||||
{"switch_is", tSWITCHIS},
|
{"switch_is", tSWITCHIS},
|
||||||
{"switch_type", tSWITCHTYPE},
|
{"switch_type", tSWITCHTYPE},
|
||||||
/* ... */
|
/* ... */
|
||||||
|
{"transmit_as", tTRANSMITAS},
|
||||||
{"typedef", tTYPEDEF},
|
{"typedef", tTYPEDEF},
|
||||||
{"union", tUNION},
|
{"union", tUNION},
|
||||||
/* ... */
|
/* ... */
|
||||||
|
|
|
@ -132,6 +132,7 @@ static type_t std_uhyper = { "MIDL_uhyper" };
|
||||||
%token tDEFAULT
|
%token tDEFAULT
|
||||||
%token tDISPINTERFACE
|
%token tDISPINTERFACE
|
||||||
%token tDLLNAME tDOUBLE tDUAL
|
%token tDLLNAME tDOUBLE tDUAL
|
||||||
|
%token tENDPOINT
|
||||||
%token tENTRY tENUM tERRORSTATUST
|
%token tENTRY tENUM tERRORSTATUST
|
||||||
%token tEXTERN
|
%token tEXTERN
|
||||||
%token tFLOAT
|
%token tFLOAT
|
||||||
|
@ -164,6 +165,7 @@ static type_t std_uhyper = { "MIDL_uhyper" };
|
||||||
%token tSTDCALL
|
%token tSTDCALL
|
||||||
%token tSTRING tSTRUCT
|
%token tSTRING tSTRUCT
|
||||||
%token tSWITCH tSWITCHIS tSWITCHTYPE
|
%token tSWITCH tSWITCHIS tSWITCHTYPE
|
||||||
|
%token tTRANSMITAS
|
||||||
%token tTYPEDEF
|
%token tTYPEDEF
|
||||||
%token tUNION
|
%token tUNION
|
||||||
%token tUNIQUE
|
%token tUNIQUE
|
||||||
|
@ -327,6 +329,7 @@ attribute:
|
||||||
| tDEFAULT { $$ = make_attr(ATTR_DEFAULT); }
|
| tDEFAULT { $$ = make_attr(ATTR_DEFAULT); }
|
||||||
| tDLLNAME '(' aSTRING ')' { $$ = make_attrp(ATTR_DLLNAME, $3); }
|
| tDLLNAME '(' aSTRING ')' { $$ = make_attrp(ATTR_DLLNAME, $3); }
|
||||||
| tDUAL { $$ = make_attr(ATTR_DUAL); }
|
| tDUAL { $$ = make_attr(ATTR_DUAL); }
|
||||||
|
| tENDPOINT '(' aSTRING ')' { $$ = make_attrp(ATTR_ENDPOINT, $3); }
|
||||||
| tENTRY '(' aSTRING ')' { $$ = make_attrp(ATTR_ENTRY_STRING, $3); }
|
| tENTRY '(' aSTRING ')' { $$ = make_attrp(ATTR_ENTRY_STRING, $3); }
|
||||||
| tENTRY '(' expr_const ')' { $$ = make_attrp(ATTR_ENTRY_ORDINAL, $3); }
|
| tENTRY '(' expr_const ')' { $$ = make_attrp(ATTR_ENTRY_ORDINAL, $3); }
|
||||||
| tHANDLE { $$ = make_attr(ATTR_HANDLE); }
|
| tHANDLE { $$ = make_attr(ATTR_HANDLE); }
|
||||||
|
@ -351,6 +354,7 @@ attribute:
|
||||||
| tSTRING { $$ = make_attr(ATTR_STRING); }
|
| tSTRING { $$ = make_attr(ATTR_STRING); }
|
||||||
| tSWITCHIS '(' expr ')' { $$ = make_attrp(ATTR_SWITCHIS, $3); }
|
| tSWITCHIS '(' expr ')' { $$ = make_attrp(ATTR_SWITCHIS, $3); }
|
||||||
| tSWITCHTYPE '(' type ')' { $$ = make_attrp(ATTR_SWITCHTYPE, type_ref($3)); }
|
| tSWITCHTYPE '(' type ')' { $$ = make_attrp(ATTR_SWITCHTYPE, type_ref($3)); }
|
||||||
|
| tTRANSMITAS '(' type ')' { $$ = make_attrp(ATTR_TRANSMITAS, type_ref($3)); }
|
||||||
| tUUID '(' aUUID ')' { $$ = make_attrp(ATTR_UUID, $3); }
|
| tUUID '(' aUUID ')' { $$ = make_attrp(ATTR_UUID, $3); }
|
||||||
| tV1ENUM { $$ = make_attr(ATTR_V1ENUM); }
|
| tV1ENUM { $$ = make_attr(ATTR_V1ENUM); }
|
||||||
| tVERSION '(' version ')' { $$ = make_attrv(ATTR_VERSION, $3); }
|
| tVERSION '(' version ')' { $$ = make_attrv(ATTR_VERSION, $3); }
|
||||||
|
|
|
@ -65,6 +65,7 @@ enum attr_type
|
||||||
ATTR_DEFAULT,
|
ATTR_DEFAULT,
|
||||||
ATTR_DLLNAME,
|
ATTR_DLLNAME,
|
||||||
ATTR_DUAL,
|
ATTR_DUAL,
|
||||||
|
ATTR_ENDPOINT,
|
||||||
ATTR_ENTRY_STRING,
|
ATTR_ENTRY_STRING,
|
||||||
ATTR_ENTRY_ORDINAL,
|
ATTR_ENTRY_ORDINAL,
|
||||||
ATTR_HANDLE,
|
ATTR_HANDLE,
|
||||||
|
@ -90,6 +91,7 @@ enum attr_type
|
||||||
ATTR_STRING,
|
ATTR_STRING,
|
||||||
ATTR_SWITCHIS,
|
ATTR_SWITCHIS,
|
||||||
ATTR_SWITCHTYPE,
|
ATTR_SWITCHTYPE,
|
||||||
|
ATTR_TRANSMITAS,
|
||||||
ATTR_UUID,
|
ATTR_UUID,
|
||||||
ATTR_V1ENUM,
|
ATTR_V1ENUM,
|
||||||
ATTR_VERSION,
|
ATTR_VERSION,
|
||||||
|
|
Loading…
Reference in New Issue