Commit fcb96cf8 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

widl: Remove the unused "indent" parameter from write_type_tfs().

parent 0afbcee9
...@@ -3577,9 +3577,8 @@ static unsigned int write_range_tfs(FILE *file, const attr_list_t *attrs, ...@@ -3577,9 +3577,8 @@ static unsigned int write_range_tfs(FILE *file, const attr_list_t *attrs,
return start_offset; return start_offset;
} }
static unsigned int write_type_tfs(FILE *file, int indent, static unsigned int write_type_tfs(FILE *file, const attr_list_t *attrs,
const attr_list_t *attrs, type_t *type, type_t *type, const char *name,
const char *name,
enum type_context context, enum type_context context,
unsigned int *typeformat_offset) unsigned int *typeformat_offset)
{ {
...@@ -3660,13 +3659,13 @@ static unsigned int write_type_tfs(FILE *file, int indent, ...@@ -3660,13 +3659,13 @@ static unsigned int write_type_tfs(FILE *file, int indent,
if (context != TYPE_CONTEXT_CONTAINER_NO_POINTERS) if (context != TYPE_CONTEXT_CONTAINER_NO_POINTERS)
write_pointer_tfs(file, attrs, type, *typeformat_offset + 4, context, typeformat_offset); write_pointer_tfs(file, attrs, type, *typeformat_offset + 4, context, typeformat_offset);
offset = write_type_tfs(file, indent, attrs, ref, name, ref_context, typeformat_offset); offset = write_type_tfs(file, attrs, ref, name, ref_context, typeformat_offset);
if (context == TYPE_CONTEXT_CONTAINER_NO_POINTERS) if (context == TYPE_CONTEXT_CONTAINER_NO_POINTERS)
return 0; return 0;
return offset; return offset;
} }
offset = write_type_tfs( file, indent, attrs, type_pointer_get_ref(type), name, offset = write_type_tfs( file, attrs, type_pointer_get_ref(type), name,
ref_context, typeformat_offset); ref_context, typeformat_offset);
if (context == TYPE_CONTEXT_CONTAINER_NO_POINTERS) if (context == TYPE_CONTEXT_CONTAINER_NO_POINTERS)
return 0; return 0;
...@@ -3682,7 +3681,7 @@ static unsigned int write_type_tfs(FILE *file, int indent, ...@@ -3682,7 +3681,7 @@ static unsigned int write_type_tfs(FILE *file, int indent,
static int write_embedded_types(FILE *file, const attr_list_t *attrs, type_t *type, static int write_embedded_types(FILE *file, const attr_list_t *attrs, type_t *type,
const char *name, int write_ptr, unsigned int *tfsoff) const char *name, int write_ptr, unsigned int *tfsoff)
{ {
return write_type_tfs(file, 2, attrs, type, name, write_ptr ? TYPE_CONTEXT_CONTAINER : TYPE_CONTEXT_CONTAINER_NO_POINTERS, tfsoff); return write_type_tfs(file, attrs, type, name, write_ptr ? TYPE_CONTEXT_CONTAINER : TYPE_CONTEXT_CONTAINER_NO_POINTERS, tfsoff);
} }
static void process_tfs_iface(type_t *iface, FILE *file, int indent, unsigned int *offset) static void process_tfs_iface(type_t *iface, FILE *file, int indent, unsigned int *offset)
...@@ -3709,12 +3708,12 @@ static void process_tfs_iface(type_t *iface, FILE *file, int indent, unsigned in ...@@ -3709,12 +3708,12 @@ static void process_tfs_iface(type_t *iface, FILE *file, int indent, unsigned in
var = type_function_get_retval(func->type); var = type_function_get_retval(func->type);
if (!is_void(var->type)) if (!is_void(var->type))
var->typestring_offset = write_type_tfs( file, 2, var->attrs, var->type, func->name, var->typestring_offset = write_type_tfs( file, var->attrs, var->type, func->name,
TYPE_CONTEXT_RETVAL, offset); TYPE_CONTEXT_RETVAL, offset);
if (type_get_function_args(func->type)) if (type_get_function_args(func->type))
LIST_FOR_EACH_ENTRY( var, type_get_function_args(func->type), var_t, entry ) LIST_FOR_EACH_ENTRY( var, type_get_function_args(func->type), var_t, entry )
var->typestring_offset = write_type_tfs( file, 2, var->attrs, var->type, var->name, var->typestring_offset = write_type_tfs( file, var->attrs, var->type, var->name,
TYPE_CONTEXT_TOPLEVELPARAM, offset ); TYPE_CONTEXT_TOPLEVELPARAM, offset );
break; break;
...@@ -3726,7 +3725,7 @@ static void process_tfs_iface(type_t *iface, FILE *file, int indent, unsigned in ...@@ -3726,7 +3725,7 @@ static void process_tfs_iface(type_t *iface, FILE *file, int indent, unsigned in
{ {
if (is_attr(type_entry->type->attrs, ATTR_ENCODE) if (is_attr(type_entry->type->attrs, ATTR_ENCODE)
|| is_attr(type_entry->type->attrs, ATTR_DECODE)) || is_attr(type_entry->type->attrs, ATTR_DECODE))
type_entry->type->typestring_offset = write_type_tfs( file, 2, type_entry->type->typestring_offset = write_type_tfs( file,
type_entry->type->attrs, type_entry->type, type_entry->type->name, type_entry->type->attrs, type_entry->type, type_entry->type->name,
TYPE_CONTEXT_CONTAINER, offset); TYPE_CONTEXT_CONTAINER, offset);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment