widl: Reorder switch cases to keep alphabetical order.
This commit is contained in:
parent
8fd9716985
commit
ae0beb224b
|
@ -1311,6 +1311,9 @@ static HRESULT add_func_desc(msft_typeinfo_t* typeinfo, const func_t *func, int
|
|||
if (func->def->attrs) LIST_FOR_EACH_ENTRY( attr, func->def->attrs, const attr_t, entry ) {
|
||||
expr_t *expr = attr->u.pval;
|
||||
switch(attr->type) {
|
||||
case ATTR_BINDABLE:
|
||||
funcflags |= 0x4; /* FUNCFLAG_BINDABLE */
|
||||
break;
|
||||
case ATTR_DISPLAYBIND:
|
||||
funcflags |= 0x10; /* FUNCFLAG_DISPLAYBIND */
|
||||
break;
|
||||
|
@ -1358,9 +1361,6 @@ static HRESULT add_func_desc(msft_typeinfo_t* typeinfo, const func_t *func, int
|
|||
case ATTR_RESTRICTED:
|
||||
funcflags |= 0x1; /* FUNCFLAG_FRESTRICTED */
|
||||
break;
|
||||
case ATTR_BINDABLE:
|
||||
funcflags |= 0x4; /* FUNCFLAG_BINDABLE */
|
||||
break;
|
||||
case ATTR_VARARG:
|
||||
if (num_optional || num_defaults)
|
||||
warning("add_func_desc: ignoring vararg in function with optional or defaultvalue params\n");
|
||||
|
|
Loading…
Reference in New Issue