mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
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:
parent
4e034a4b95
commit
f491e64f1b
10 changed files with 82 additions and 65 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue