(attrtab, attrtab_idx): New variables. (add_attribute, init_attributes): New functions. (decl_attributes): Major rewrite. From-SVN: r9261