+2000-11-30 Neil Booth <neilb@earthling.net>
+
+ * objc/objc-act.c (lang_init, finish_file, maybe_objc_comptypes,
+ maybe_objc_check_decl, build_objc_string_object,
+ objc_declare_alias, objc_declare_class, build_message_expr,
+ build_protocol_expr, build_selector_expr, build_encode_expr,
+ get_class_ivars, start_class, start_protocol): Remove
+ redundant code, assuming doing_objc_thang is true.
+
2000-11-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
* pa.c (restore_unscaled_index_insn_codes): Delete procedure.
objc_ellipsis_node = make_node (ERROR_MARK);
- if (doing_objc_thang)
- init_objc ();
+ init_objc ();
if (print_struct_values)
generate_struct_by_value_array ();
void
finish_file ()
{
- if (doing_objc_thang)
- finish_objc (); /* Objective-C finalization */
+ finish_objc (); /* Objective-C finalization */
if (gen_declaration_file)
fclose (gen_declaration_file);
tree lhs, rhs;
int reflexive;
{
- if (doing_objc_thang)
- return objc_comptypes (lhs, rhs, reflexive);
- return -1;
+ return objc_comptypes (lhs, rhs, reflexive);
}
static tree
maybe_objc_check_decl (decl)
tree decl;
{
- if (doing_objc_thang)
- objc_check_decl (decl);
+ objc_check_decl (decl);
}
/* Implement static typing. At this point, we know we have an interface. */
tree string, initlist, constructor;
int length;
- if (!doing_objc_thang)
- objc_fatal ();
-
if (lookup_interface (constant_string_id) == NULL_TREE)
{
error ("Cannot find interface declaration for `%s'",
tree alias_ident;
tree class_ident;
{
- if (!doing_objc_thang)
- objc_fatal ();
-
if (is_class_name (class_ident) != class_ident)
warning ("Cannot find class `%s'", IDENTIFIER_POINTER (class_ident));
else if (is_class_name (alias_ident))
{
tree list;
- if (!doing_objc_thang)
- objc_fatal ();
-
for (list = ident_list; list; list = TREE_CHAIN (list))
{
tree ident = TREE_VALUE (list);
/* 1 if this is sending to the superclass. */
int super;
- if (!doing_objc_thang)
- objc_fatal ();
-
if (TREE_CODE (receiver) == ERROR_MARK)
return error_mark_node;
tree protoname;
{
tree expr;
- tree p;
-
- if (!doing_objc_thang)
- objc_fatal ();
-
- p = lookup_protocol (protoname);
+ tree p = lookup_protocol (protoname);
if (!p)
{
{
tree selname;
- if (!doing_objc_thang)
- objc_fatal ();
-
/* Obtain the full selector name. */
if (TREE_CODE (selnamelist) == IDENTIFIER_NODE)
/* A unary selector. */
tree result;
const char *string;
- if (!doing_objc_thang)
- objc_fatal ();
-
encode_type (type, obstack_object_size (&util_obstack),
OBJC_ENCODE_INLINE_DEFS);
obstack_1grow (&util_obstack, 0); /* null terminate string */
get_class_ivars (interface)
tree interface;
{
- if (!doing_objc_thang)
- objc_fatal ();
-
return build_ivar_chain (interface, 1);
}
\f
{
tree class, decl;
- if (!doing_objc_thang)
- objc_fatal ();
-
class = make_node (code);
TYPE_BINFO (class) = make_tree_vec (5);
{
tree protocol;
- if (!doing_objc_thang)
- objc_fatal ();
-
/* This is as good a place as any. Need to invoke push_tag_toplevel. */
if (!objc_protocol_template)
objc_protocol_template = build_protocol_template ();