static void classdump_objc(RCore *r, RBinClass *c) {
	if (c->super) {
		r_cons_printf ("@interface %s : %s\n{\n", c->name, c->super);
	} else {
		r_cons_printf ("@interface %s\n{\n", c->name);
	}
	RListIter *iter2, *iter3;
	RBinField *f;
	RBinSymbol *sym;
	r_list_foreach (c->fields, iter2, f) {
		if (f->name && r_regex_match ("ivar","e", f->name)) {
			r_cons_printf ("  %s %s\n", f->type, f->name);
		}
	}
	r_cons_printf ("}\n");
	r_list_foreach (c->methods, iter3, sym) {
		if (sym->rtype && sym->rtype[0] != '@') {
			char *rp = get_rp (sym->rtype);
			r_cons_printf ("%s (%s) %s\n",
					strncmp (sym->type, R_BIN_TYPE_METH_STR, 4)? "+": "-",
					rp, sym->dname? sym->dname: sym->name);
			free (rp);
		} else if (sym->type) {
			r_cons_printf ("%s (id) %s\n",
					strncmp (sym->type, R_BIN_TYPE_METH_STR, 4)? "+": "-",
					sym->dname? sym->dname: sym->name);
		}
	}
	r_cons_printf ("@end\n");
}
static void classdump_objc(RCore *r, RBinClass *c) {
	if (c->super) {
		r_cons_printf ("@interface %s : %s\n{\n", c->name, c->super);
	} else {
		r_cons_printf ("@interface %s\n{\n", c->name);
	}
	RListIter *iter2, *iter3;
	RBinField *f;
	RBinSymbol *sym;
	r_list_foreach (c->fields, iter2, f) {
		if (f->name && r_regex_match ("ivar","e", f->name)) {
			r_cons_printf ("  %s %s\n", f->type, f->name);
		}
	}
	r_cons_printf ("}\n");
	r_list_foreach (c->methods, iter3, sym) {
		if (sym->rtype && sym->rtype[0] != '@') {
			char *rp = get_rp (sym->rtype);
			r_cons_printf ("%s (%s) %s\n",
					strncmp (sym->type, R_BIN_TYPE_METH_STR, 4)? "+": "-",
					rp, sym->dname? sym->dname: sym->name);
			free (rp);
		} else if (sym->type) {
			r_cons_printf ("%s (id) %s\n",
					strncmp (sym->type, R_BIN_TYPE_METH_STR, 4)? "+": "-",
					sym->dname? sym->dname: sym->name);
		}
	}
	r_cons_printf ("@end\n");
}