widl: Fix proc format string for explicit binding handles.
This commit is contained in:
parent
8d7fa4c013
commit
417a61fa61
|
@ -156,6 +156,7 @@ static inline int is_base_type(unsigned char type)
|
||||||
case RPC_FC_ENUM16:
|
case RPC_FC_ENUM16:
|
||||||
case RPC_FC_ENUM32:
|
case RPC_FC_ENUM32:
|
||||||
case RPC_FC_ERROR_STATUS_T:
|
case RPC_FC_ERROR_STATUS_T:
|
||||||
|
case RPC_FC_BIND_PRIMITIVE:
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -208,6 +209,12 @@ static size_t write_procformatstring_var(FILE *file, int indent,
|
||||||
CASE_BASETYPE(FC_DOUBLE);
|
CASE_BASETYPE(FC_DOUBLE);
|
||||||
CASE_BASETYPE(FC_ERROR_STATUS_T);
|
CASE_BASETYPE(FC_ERROR_STATUS_T);
|
||||||
#undef CASE_BASETYPE
|
#undef CASE_BASETYPE
|
||||||
|
|
||||||
|
case RPC_FC_BIND_PRIMITIVE:
|
||||||
|
print_file(file, indent, "0x%02x, /* FC_IGNORE */\n", RPC_FC_IGNORE);
|
||||||
|
size = 2; /* includes param type prefix */
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
error("Unknown/unsupported type: %s (0x%02x)\n", var->name, type->type);
|
error("Unknown/unsupported type: %s (0x%02x)\n", var->name, type->type);
|
||||||
size = 0;
|
size = 0;
|
||||||
|
@ -1461,6 +1468,11 @@ void marshall_arguments(FILE *file, int indent, func_t *func,
|
||||||
alignment = (4 - last_size);
|
alignment = (4 - last_size);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case RPC_FC_IGNORE:
|
||||||
|
case RPC_FC_BIND_PRIMITIVE:
|
||||||
|
/* no marshalling needed */
|
||||||
|
continue;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
error("marshall_arguments: Unsupported type: %s (0x%02x, ptr_level: 0)\n", var->name, var->type->type);
|
error("marshall_arguments: Unsupported type: %s (0x%02x, ptr_level: 0)\n", var->name, var->type->type);
|
||||||
size = 0;
|
size = 0;
|
||||||
|
@ -1499,10 +1511,6 @@ void marshall_arguments(FILE *file, int indent, func_t *func,
|
||||||
case RPC_FC_BOGUS_STRUCT:
|
case RPC_FC_BOGUS_STRUCT:
|
||||||
ndrtype = "ComplexStruct";
|
ndrtype = "ComplexStruct";
|
||||||
break;
|
break;
|
||||||
case RPC_FC_IGNORE:
|
|
||||||
case RPC_FC_BIND_PRIMITIVE:
|
|
||||||
/* no marshalling needed */
|
|
||||||
continue;
|
|
||||||
default:
|
default:
|
||||||
error("marshall_arguments: Unsupported type: %s (0x%02x, ptr_level: %d)\n",
|
error("marshall_arguments: Unsupported type: %s (0x%02x, ptr_level: %d)\n",
|
||||||
var->name, var->type->type, var->ptr_level);
|
var->name, var->type->type, var->ptr_level);
|
||||||
|
@ -1636,6 +1644,11 @@ void unmarshall_arguments(FILE *file, int indent, func_t *func,
|
||||||
alignment = (4 - last_size);
|
alignment = (4 - last_size);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case RPC_FC_IGNORE:
|
||||||
|
case RPC_FC_BIND_PRIMITIVE:
|
||||||
|
/* no unmarshalling needed */
|
||||||
|
continue;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
error("unmarshall_arguments: Unsupported type: %s (0x%02x, ptr_level: 0)\n", var->name, var->type->type);
|
error("unmarshall_arguments: Unsupported type: %s (0x%02x, ptr_level: 0)\n", var->name, var->type->type);
|
||||||
size = 0;
|
size = 0;
|
||||||
|
@ -1674,10 +1687,6 @@ void unmarshall_arguments(FILE *file, int indent, func_t *func,
|
||||||
case RPC_FC_BOGUS_STRUCT:
|
case RPC_FC_BOGUS_STRUCT:
|
||||||
ndrtype = "ComplexStruct";
|
ndrtype = "ComplexStruct";
|
||||||
break;
|
break;
|
||||||
case RPC_FC_IGNORE:
|
|
||||||
case RPC_FC_BIND_PRIMITIVE:
|
|
||||||
/* no unmarshalling needed */
|
|
||||||
continue;
|
|
||||||
default:
|
default:
|
||||||
error("unmarshall_arguments: Unsupported type: %s (0x%02x, ptr_level: %d)\n",
|
error("unmarshall_arguments: Unsupported type: %s (0x%02x, ptr_level: %d)\n",
|
||||||
var->name, var->type->type, var->ptr_level);
|
var->name, var->type->type, var->ptr_level);
|
||||||
|
|
Loading…
Reference in New Issue