xref: /netbsd-src/external/gpl3/gcc.old/dist/libobjc/Protocol.m (revision 8feb0f0b7eaff0608f8350bbfa3098827b4bb91b)
136ac495dSmrg/* This file contains the implementation of class Protocol.
2*8feb0f0bSmrg   Copyright (C) 1993-2020 Free Software Foundation, Inc.
336ac495dSmrg
436ac495dSmrgThis file is part of GCC.
536ac495dSmrg
636ac495dSmrgGCC is free software; you can redistribute it and/or modify
736ac495dSmrgit under the terms of the GNU General Public License as published by
836ac495dSmrgthe Free Software Foundation; either version 3, or (at your option)
936ac495dSmrgany later version.
1036ac495dSmrg
1136ac495dSmrgGCC is distributed in the hope that it will be useful,
1236ac495dSmrgbut WITHOUT ANY WARRANTY; without even the implied warranty of
1336ac495dSmrgMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1436ac495dSmrgGNU General Public License for more details.
1536ac495dSmrg
1636ac495dSmrgUnder Section 7 of GPL version 3, you are granted additional
1736ac495dSmrgpermissions described in the GCC Runtime Library Exception, version
1836ac495dSmrg3.1, as published by the Free Software Foundation.
1936ac495dSmrg
2036ac495dSmrgYou should have received a copy of the GNU General Public License and
2136ac495dSmrga copy of the GCC Runtime Library Exception along with this program;
2236ac495dSmrgsee the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
2336ac495dSmrg<http://www.gnu.org/licenses/>.  */
2436ac495dSmrg
2536ac495dSmrg#include "objc-private/common.h"
2636ac495dSmrg#include "objc/runtime.h"
2736ac495dSmrg#include "objc/Protocol.h"
2836ac495dSmrg
2936ac495dSmrg@implementation Protocol
3036ac495dSmrg- (BOOL) isEqual: (id)obj
3136ac495dSmrg{
3236ac495dSmrg  return protocol_isEqual (self, obj);
3336ac495dSmrg}
3436ac495dSmrg@end
35