Decrease chance of ABI breakage.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32156 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-02-14 06:37:45 +00:00
parent 51b232577e
commit 08dc11a192
38 changed files with 704 additions and 1027 deletions

View file

@ -34,10 +34,17 @@ DEFINE_BLOCK_TYPE(GSRegexBlock, void, NSTextCheckingResult*, NSMatchingFlags, BO
@interface NSRegularExpression : NSObject <NSCoding, NSCopying>
{
@private
GSREGEXTYPE *regex;
NSRegularExpressionOptions options;
GS_PADDING_IVAR;
#if GS_EXPOSE(NSRegularExpression)
@private
GSREGEXTYPE *regex;
NSRegularExpressionOptions options;
#endif
#if !GS_NONFRAGILE
/* Pointer to private additional data used to avoid breaking ABI
* when we don't have the non-fragile ABI available.
*/
void *_reserved;
#endif
}
+ (NSRegularExpression*)regularExpressionWithPattern: (NSString*)aPattern
options: (NSRegularExpressionOptions)opts