Fix typos.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1276 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1996-03-26 20:59:42 +00:00
parent 4e034a4b95
commit f491e64f1b
10 changed files with 82 additions and 65 deletions

View file

@ -1,8 +1,8 @@
/* IndexedCollection definitions for the use of subclass implementations only
Copyright (C) 1993,1994 Free Software Foundation, Inc.
Copyright (C) 1993, 1994, 1996 Free Software Foundation, Inc.
Written by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
Date: May 1993
Created: May 1993
This file is part of the GNU Objective C Class Library.
@ -26,22 +26,16 @@
#include <objects/stdobjects.h>
#include <objects/CollectionPrivate.h>
#include <Foundation/NSException.h>
#include <objects/NSString.h>
/* To be used inside a method for making sure that index
is not above range.
*/
#define CHECK_INDEX_RANGE_ERROR(INDEX, OVER) \
({if (INDEX >= OVER) \
[self error:"in %s, index out of range", sel_get_name(_cmd)];})
/* For use with subclasses of IndexedCollections that allow elements to
be added, but not added at particular indices---the collection itself
determines the order.
*/
#define INSERTION_ERROR() \
([self error:"in %s, this collection does not allow insertions", \
sel_get_name(aSel)];)
if (INDEX >= OVER) \
[NSException raise: NSRangeException \
format: @"in %s, index %d is out of range", \
sel_get_name (_cmd), INDEX]
#endif /* __IndexedCollectionPrivate_h_INCLUDE_GNU */