Fix send_message().

This commit is contained in:
Bill Currie 2011-02-04 23:49:25 +09:00
parent 29fbc3b073
commit 690ae1cb57

View file

@ -252,15 +252,22 @@ copy_keywordargs (const keywordarg_t *kwargs)
expr_t * expr_t *
send_message (int super) send_message (int super)
{ {
return 0; symbol_t *sym;
#if 0 //FIXME const char *sm_name = "obj_msgSend";
if (super) type_t *sm_type = &type_IMP;
return new_def_expr (get_def (&type_supermsg, "obj_msgSend_super",
pr.scope, st_extern)); if (super) {
else sm_name = "obj_msgSend_super";
return new_def_expr (get_def (&type_IMP, "obj_msgSend", pr.scope, sm_type = &type_IMP;
st_extern)); }
#endif sym = symtab_lookup (pr.symtab, sm_name);
if (!sym) {
sym = new_symbol_type (sm_name, sm_type);
sym = function_symbol (sym, 0, 1);
make_function (sym, 0, st_extern);
symtab_addsymbol (pr.symtab, sym);
}
return new_symbol_expr (sym);
} }
method_t * method_t *