/* #FILENAME# #DESCRIPTION# Copyright (C) 2001 #AUTHOR# Author: #AUTHOR# Date: #DATE# This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to: Free Software Foundation, Inc. 59 Temple Place - Suite 330 Boston, MA 02111-1307, USA $Id$ */ #ifndef __class_h #define __class_h typedef struct class_s { int defined; const char *name; struct class_s *base; struct methodlist_s *methods; struct type_s *ivars; } class_t; typedef struct protocol_s { const char *name; struct methodlist_s *methods; } protocol_t; class_t *get_class (const char *name, int create); void class_add_methods (class_t *class, struct methodlist_s *methods); void class_add_protocol_methods (class_t *class, expr_t *protocols); struct def_s *class_def (class_t *class); protocol_t *get_protocol (const char *name, int create); void protocol_add_methods (protocol_t *protocol, struct methodlist_s *methods); void protocol_add_protocol_methods (protocol_t *protocol, expr_t *protocols); struct def_s *protocol_def (protocol_t *protocol); #endif//__class_h