* gdbtypes.c: Remove excessive parentheses at the return keywords.
This commit is contained in:
parent
ea6906eee3
commit
c16abbdefa
|
@ -1,3 +1,7 @@
|
||||||
|
2009-04-10 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
|
* gdbtypes.c: Remove excessive parentheses at the return keywords.
|
||||||
|
|
||||||
2009-04-08 Vladimir Prus <vladimir@codesourcery.com>
|
2009-04-08 Vladimir Prus <vladimir@codesourcery.com>
|
||||||
|
|
||||||
Implement -exec-jump.
|
Implement -exec-jump.
|
||||||
|
|
|
@ -180,7 +180,7 @@ alloc_type (struct objfile *objfile)
|
||||||
TYPE_VPTR_FIELDNO (type) = -1;
|
TYPE_VPTR_FIELDNO (type) = -1;
|
||||||
TYPE_CHAIN (type) = type; /* Chain back to itself. */
|
TYPE_CHAIN (type) = type; /* Chain back to itself. */
|
||||||
|
|
||||||
return (type);
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Alloc a new type instance structure, fill it with some defaults,
|
/* Alloc a new type instance structure, fill it with some defaults,
|
||||||
|
@ -204,7 +204,7 @@ alloc_type_instance (struct type *oldtype)
|
||||||
|
|
||||||
TYPE_CHAIN (type) = type; /* Chain back to itself for now. */
|
TYPE_CHAIN (type) = type; /* Chain back to itself for now. */
|
||||||
|
|
||||||
return (type);
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Clear all remnants of the previous type at TYPE, in preparation for
|
/* Clear all remnants of the previous type at TYPE, in preparation for
|
||||||
|
@ -645,7 +645,7 @@ lookup_memberptr_type (struct type *type, struct type *domain)
|
||||||
|
|
||||||
mtype = alloc_type (TYPE_OBJFILE (type));
|
mtype = alloc_type (TYPE_OBJFILE (type));
|
||||||
smash_to_memberptr_type (mtype, domain, type);
|
smash_to_memberptr_type (mtype, domain, type);
|
||||||
return (mtype);
|
return mtype;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return a pointer-to-method type, for a method of type TO_TYPE. */
|
/* Return a pointer-to-method type, for a method of type TO_TYPE. */
|
||||||
|
@ -678,7 +678,7 @@ allocate_stub_method (struct type *type)
|
||||||
TYPE_OBJFILE (type));
|
TYPE_OBJFILE (type));
|
||||||
TYPE_TARGET_TYPE (mtype) = type;
|
TYPE_TARGET_TYPE (mtype) = type;
|
||||||
/* _DOMAIN_TYPE (mtype) = unknown yet */
|
/* _DOMAIN_TYPE (mtype) = unknown yet */
|
||||||
return (mtype);
|
return mtype;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Create a range type using either a blank type supplied in
|
/* Create a range type using either a blank type supplied in
|
||||||
|
@ -830,7 +830,7 @@ create_array_type (struct type *result_type,
|
||||||
if (TYPE_LENGTH (result_type) == 0)
|
if (TYPE_LENGTH (result_type) == 0)
|
||||||
TYPE_TARGET_STUB (result_type) = 1;
|
TYPE_TARGET_STUB (result_type) = 1;
|
||||||
|
|
||||||
return (result_type);
|
return result_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Create a string type using either a blank type supplied in
|
/* Create a string type using either a blank type supplied in
|
||||||
|
@ -857,7 +857,7 @@ create_string_type (struct type *result_type,
|
||||||
string_char_type,
|
string_char_type,
|
||||||
range_type);
|
range_type);
|
||||||
TYPE_CODE (result_type) = TYPE_CODE_STRING;
|
TYPE_CODE (result_type) = TYPE_CODE_STRING;
|
||||||
return (result_type);
|
return result_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct type *
|
struct type *
|
||||||
|
@ -884,7 +884,7 @@ create_set_type (struct type *result_type, struct type *domain_type)
|
||||||
}
|
}
|
||||||
TYPE_FIELD_TYPE (result_type, 0) = domain_type;
|
TYPE_FIELD_TYPE (result_type, 0) = domain_type;
|
||||||
|
|
||||||
return (result_type);
|
return result_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -1049,11 +1049,11 @@ lookup_typename (char *name, struct block *block, int noerr)
|
||||||
name);
|
name);
|
||||||
if (tmp)
|
if (tmp)
|
||||||
{
|
{
|
||||||
return (tmp);
|
return tmp;
|
||||||
}
|
}
|
||||||
else if (!tmp && noerr)
|
else if (!tmp && noerr)
|
||||||
{
|
{
|
||||||
return (NULL);
|
return NULL;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1127,14 +1127,14 @@ lookup_union (char *name, struct block *block)
|
||||||
t = SYMBOL_TYPE (sym);
|
t = SYMBOL_TYPE (sym);
|
||||||
|
|
||||||
if (TYPE_CODE (t) == TYPE_CODE_UNION)
|
if (TYPE_CODE (t) == TYPE_CODE_UNION)
|
||||||
return (t);
|
return t;
|
||||||
|
|
||||||
/* C++ unions may come out with TYPE_CODE_CLASS, but we look at
|
/* C++ unions may come out with TYPE_CODE_CLASS, but we look at
|
||||||
* a further "declared_type" field to discover it is really a union.
|
* a further "declared_type" field to discover it is really a union.
|
||||||
*/
|
*/
|
||||||
if (HAVE_CPLUS_STRUCT (t))
|
if (HAVE_CPLUS_STRUCT (t))
|
||||||
if (TYPE_DECLARED_TYPE (t) == DECLARED_TYPE_UNION)
|
if (TYPE_DECLARED_TYPE (t) == DECLARED_TYPE_UNION)
|
||||||
return (t);
|
return t;
|
||||||
|
|
||||||
/* If we get here, it's not a union. */
|
/* If we get here, it's not a union. */
|
||||||
error (_("This context has class, struct or enum %s, not a union."),
|
error (_("This context has class, struct or enum %s, not a union."),
|
||||||
|
@ -1803,7 +1803,7 @@ init_type (enum type_code code, int length, int flags,
|
||||||
{
|
{
|
||||||
INIT_CPLUS_SPECIFIC (type);
|
INIT_CPLUS_SPECIFIC (type);
|
||||||
}
|
}
|
||||||
return (type);
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Helper function. Create an empty composite type. */
|
/* Helper function. Create an empty composite type. */
|
||||||
|
|
Loading…
Reference in New Issue