From 4e1e4eea2700d512e10611d41efce02d1a938b6f Mon Sep 17 00:00:00 2001 From: David Ayers Date: Sat, 30 Dec 2006 17:41:02 +0000 Subject: [PATCH] * EOControl/GNUmakefile: Simplify documentation declarations. * EOAccess/GNUmakefile: Ditto. * EOInterface/GNUmakefile: Ditto. * Tools/GNUmakefile: Ditto. * common.make (ADDITIONAL_LIB_DIRS): Move handling from here... * variable-processing.make: ... to new file. * EOControl/GNUmakefile: Use variable-processing.make. Include common.make early. * EOAccess/GNUmakefile: Ditto. * EOInterface/GNUmakefile: Ditto. * Tools/GNUmakefile: Ditto. * DBModeler/GNUmakefile: Ditto. * EOModeler/GNUmakefile: Ditto. * GDL2Palette/GNUmakefile: Ditto. * EOControl/EOFetchSpecification.h/m: Cleanup for documentation generation. * EOControl/EOGenericRecord.m: Ditto. * EOControl/EOClassDescription.h/m: Ditto. * EOControl/EONSAddOns.m: Ditto. * EOControl/EOObjectStore.h: Ditto. * EOControl/EOEditingContext.h: Ditto. * EOControl/EODataSource.m: Ditto. * EOControl/EOKeyValueArchiver.h/m: Ditto. * EOControl/EOFault.h/m: Ditto. * EOControl/EOObserver.h: Ditto. * EOControl/EOEventCenter.m: Ditto. * EOControl/EOMultiReaderLock.m: Ditto. * EOControl/EOKeyGlobalID.h/m: Ditto. * EOControl/EOObserver.m: Ditto. * EOControl/EOEvent.m: Ditto. * EOControl/EOObjectStoreCoordinator.h: Ditto. * EOControl/EODeprecated.h: Ditto. * EOControl/EOUndoManager.m: Ditto. * EOControl/EOKeyValueCoding.h/m: Ditto. * EOControl/EOQualifier.h: Ditto. * EOControl/EOClassDescription.h/m (editingContext): Remove duplicate declartion and definition (see EOEditingContext.h/m) * EOControl/EOFetchSpecification.h (EOPrefetchingRelationshipHintKey) (EOFetchLimitHintKey, EOPromptsAfterFetchLimitHintKey): Remove deprecated declarations. * EOAccess/EOAttribute.m: Cleanup for documentation. * EOAccess/EOAttribute.m (newValueForBytes:length:encoding:): Avoid creating intermediate NSData object. * EOControl/EOControl.gsdoc: Added Documentation. * EOControl/EOUndoManager.h: Remove content of deprecated header and add warning. * common.make (GDL2_AGSDOC_FLAGS): Add global GDL2 documenation flags. * config.h.in (RCSID): Avoid reserved names by relying in static declarations and avoid recursive call. * EOAdaptors/PostgreSQLAdaptor/PostgreSQLAdaptor.m (assignExternalInfoForAttribute:) Move implementation to... (assignExternalTypeForAttribute:) ...here. * Version: Update variable names. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@24297 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 66 ++++++++ DBModeler/GNUmakefile | 3 +- EOAccess/EOAttribute.m | 156 +++++++++--------- EOAccess/GNUmakefile | 24 ++- .../PostgreSQLAdaptor/PostgreSQLAdaptor.m | 9 +- EOControl/EOClassDescription.h | 4 - EOControl/EOClassDescription.m | 77 +++++---- EOControl/EOControl.gsdoc | 18 +- EOControl/EODataSource.m | 1 + EOControl/EODeprecated.h | 20 +-- EOControl/EOEditingContext.h | 10 +- EOControl/EOEditingContext.m | 13 +- EOControl/EOEvent.m | 5 + EOControl/EOEventCenter.m | 11 ++ EOControl/EOFault.h | 8 +- EOControl/EOFault.m | 52 +++--- EOControl/EOFetchSpecification.h | 7 +- EOControl/EOFetchSpecification.m | 4 +- EOControl/EOGenericRecord.m | 2 +- EOControl/EOGlobalID.h | 3 - EOControl/EOKeyGlobalID.h | 3 - EOControl/EOKeyGlobalID.m | 2 +- EOControl/EOKeyValueArchiver.h | 2 +- EOControl/EOKeyValueArchiver.m | 15 +- EOControl/EOKeyValueCoding.h | 2 +- EOControl/EOKeyValueCoding.m | 4 +- EOControl/EOMultiReaderLock.m | 4 + EOControl/EONSAddOns.m | 18 +- EOControl/EOObjectStore.h | 2 +- EOControl/EOObjectStoreCoordinator.h | 2 +- EOControl/EOObserver.h | 2 +- EOControl/EOObserver.m | 60 ++++--- EOControl/EOQualifier.h | 4 +- EOControl/EOSharedEditingContext.m | 6 +- EOControl/EOUndoManager.h | 18 +- EOControl/EOUndoManager.m | 6 +- EOControl/GNUmakefile | 24 +-- EOInterface/GNUmakefile | 13 +- EOModeler/GNUmakefile | 3 +- GDL2Palette/GNUmakefile | 4 +- Tools/GNUmakefile | 13 +- Version | 12 +- common.make | 12 +- config.h.in | 4 +- variable-processing.make | 5 + 45 files changed, 404 insertions(+), 329 deletions(-) create mode 100644 variable-processing.make diff --git a/ChangeLog b/ChangeLog index b0e7b27..c3333a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,69 @@ +2006-12-30 David Ayers + + * EOControl/GNUmakefile: Simplify documentation declarations. + * EOAccess/GNUmakefile: Ditto. + * EOInterface/GNUmakefile: Ditto. + * Tools/GNUmakefile: Ditto. + + * common.make (ADDITIONAL_LIB_DIRS): Move handling from here... + * variable-processing.make: ... to new file. + * EOControl/GNUmakefile: Use variable-processing.make. + Include common.make early. + * EOAccess/GNUmakefile: Ditto. + * EOInterface/GNUmakefile: Ditto. + * Tools/GNUmakefile: Ditto. + * DBModeler/GNUmakefile: Ditto. + * EOModeler/GNUmakefile: Ditto. + * GDL2Palette/GNUmakefile: Ditto. + + * EOControl/EOFetchSpecification.h/m: Cleanup for documentation + generation. + * EOControl/EOGenericRecord.m: Ditto. + * EOControl/EOClassDescription.h/m: Ditto. + * EOControl/EONSAddOns.m: Ditto. + * EOControl/EOObjectStore.h: Ditto. + * EOControl/EOEditingContext.h: Ditto. + * EOControl/EODataSource.m: Ditto. + * EOControl/EOKeyValueArchiver.h/m: Ditto. + * EOControl/EOFault.h/m: Ditto. + * EOControl/EOObserver.h: Ditto. + * EOControl/EOEventCenter.m: Ditto. + * EOControl/EOMultiReaderLock.m: Ditto. + * EOControl/EOKeyGlobalID.h/m: Ditto. + * EOControl/EOObserver.m: Ditto. + * EOControl/EOEvent.m: Ditto. + * EOControl/EOObjectStoreCoordinator.h: Ditto. + * EOControl/EODeprecated.h: Ditto. + * EOControl/EOUndoManager.m: Ditto. + * EOControl/EOKeyValueCoding.h/m: Ditto. + * EOControl/EOQualifier.h: Ditto. + + * EOControl/EOClassDescription.h/m (editingContext): Remove + duplicate declartion and definition (see EOEditingContext.h/m) + * EOControl/EOFetchSpecification.h (EOPrefetchingRelationshipHintKey) + (EOFetchLimitHintKey, EOPromptsAfterFetchLimitHintKey): Remove + deprecated declarations. + + * EOAccess/EOAttribute.m: Cleanup for documentation. + * EOAccess/EOAttribute.m (newValueForBytes:length:encoding:): + Avoid creating intermediate NSData object. + + * EOControl/EOControl.gsdoc: Added Documentation. + + * EOControl/EOUndoManager.h: Remove content of deprecated header + and add warning. + + * common.make (GDL2_AGSDOC_FLAGS): Add global GDL2 documenation + flags. + * config.h.in (RCSID): Avoid reserved names by relying + in static declarations and avoid recursive call. + + * EOAdaptors/PostgreSQLAdaptor/PostgreSQLAdaptor.m + (assignExternalInfoForAttribute:) Move implementation to... + (assignExternalTypeForAttribute:) ...here. + + * Version: Update variable names. + 2006-12-28 Matt Rice * EOAdaptors/PostgreSQL/LoginPanel/GNUmakefile: Fix path to diff --git a/DBModeler/GNUmakefile b/DBModeler/GNUmakefile index dbc20ce..b2c3246 100644 --- a/DBModeler/GNUmakefile +++ b/DBModeler/GNUmakefile @@ -24,6 +24,7 @@ # include $(GNUSTEP_MAKEFILES)/common.make +include ../common.make APP_NAME = DBModeler DBModeler_SUBPROJECTS=Inspectors @@ -72,5 +73,5 @@ $(APP_NAME)_OBJC_FILES = \ EntityView.m \ DiagramEditor.m -include ../common.make +include ../variable-processing.make include $(GNUSTEP_MAKEFILES)/application.make diff --git a/EOAccess/EOAttribute.m b/EOAccess/EOAttribute.m index c9f625d..4bf18b1 100644 --- a/EOAccess/EOAttribute.m +++ b/EOAccess/EOAttribute.m @@ -614,13 +614,13 @@ RCS_ID("$Id$") *

Returns the name of the class values of this attribute * are represented by. The standard classes are NSNumber, * NSString, NSData and NSDate for the corresponding - * [adaptorValueType]. A model can define more specific + * [-adaptorValueType]. A model can define more specific * classes like NSDecimalNumber, NSCalendarDate and NSImage * or custom classes which implement a factory method - * specified by [valueFactoryMethodName] to create instances + * specified by [-valueFactoryMethodName] to create instances * with the data supplied by the data source.

*

If the valueClassName has not been set explicitly and the - * reciever [isFlattened], the valueClassName of the flattened + * reciever [-isFlattened], the valueClassName of the flattened * attribute is returned.

*

Otherwise, if the reciever has a prototype then the * valueClassName of the prototype is returned.

@@ -642,7 +642,7 @@ RCS_ID("$Id$") *

Returns the adaptor specific name of externalType. This is * the name use during SQL generation.

*

If the externalType has not been set explicitly and the - * reciever [isFlattened], the valueClassName of the flattened + * reciever [-isFlattened], the valueClassName of the flattened * attribute is returned.

*

Otherwise, if the reciever has a prototype then the * externalType of the prototype is returned.

@@ -661,23 +661,23 @@ RCS_ID("$Id$") /** *

Returns a one character string identifiying the underlying - * C type of an NSNumber [valueTypeName]. The legal values in GDL2 are:

- *
    - *
  • @"c": char
  • - *
  • @"C": unsigned char
  • - *
  • @"s": short
  • - *
  • @"S": unsigned short
  • - *
  • @"i": int
  • - *
  • @"I": unsigned int
  • - *
  • @"l": long
  • - *
  • @"L": unsigned long
  • - *
  • @"u": long long
  • - *
  • @"U": unsigned long long
  • - *
  • @"f": float
  • - *
  • @"d": double
  • - *
+ * C type of an NSNumber [-valueType]. The legal values in GDL2 are:

+ * + * @"c": char + * @"C": unsigned char + * @"s": short + * @"S": unsigned short + * @"i": int + * @"I": unsigned int + * @"l": long + * @"L": unsigned long + * @"u": long long + * @"U": unsigned long long + * @"f": float + * @"d": double + * *

If the valueType has not been set explicitly and the - * reciever [isFlattened], the valueClassName of the flattened + * reciever [-isFlattened], the valueClassName of the flattened * attribute is returned.

*

Otherwise, if the reciever has a prototype then the * valueType of the prototype is returned.

@@ -1212,13 +1212,10 @@ return nexexp { case EOFactoryMethodArgumentIsNSString: { - NSData *data = nil; NSString *string = nil; - data = AUTORELEASE([(GDL2_alloc(NSData)) initWithBytes: bytes - length: length]); - - string = [(GDL2_alloc(NSString)) initWithData: data + string = [(GDL2_alloc(NSString)) initWithBytes: bytes + length: length encoding: encoding]; // If we have a value factiry method, call it to get the final value @@ -1291,12 +1288,9 @@ return nexexp if(!value) { - NSData *data; - data = AUTORELEASE([(GDL2_alloc(NSData)) initWithBytes: bytes - length: length]); - //For efficiency reasons, the returned value is NOT autoreleased ! - value = [(GDL2_alloc(NSString)) initWithData: data + value = [(GDL2_alloc(NSString)) initWithBytes: bytes + length: length encoding: encoding]; } @@ -1339,30 +1333,31 @@ return nexexp return date; } -/** Returns the name of the method to use for creating a custom class -value for this attribute. - -See Also: - valueFactoryMethod, -newValueForBytes:length: -**/ +/** + *

Returns the name of the method to use for creating a custom class + * value for this attribute.

+ * See Also: [-valueFactoryMethod], [-newValueForBytes:length:] + */ - (NSString *)valueFactoryMethodName { return _valueFactoryMethodName; } -/** Returns the selector of the method to use for creating a custom class -value for this attribute. -Default implementation returns selector for name returned by --valueFactoryMethodName or NULL if no selector is found. - -See Also: - valueFactoryMethodName, -newValueForBytes:length: -**/ +/** + *

Returns the selector of the method to use for creating a custom class + * value for this attribute.

+ *

Default implementation returns selector for name returned by + * [-valueFactoryMethodName] or NULL if no selector is found.

+ * + * See Also: [-valueFactoryMethodName], [-newValueForBytes:length:] + */ - (SEL)valueFactoryMethod { return _valueFactoryMethod; } /** - * Depending on -adaptorValueType this method checks whether the value + * Depending on [-adaptorValueType] this method checks whether the value * is a NSNumber, NSString, NSData or NSDate instance respectively. * If not, it attempts to retrieve the -adaptorValueConversionMethod * which should be used to convert the value accordingly. If none @@ -1419,7 +1414,8 @@ See Also: - valueFactoryMethodName, -newValueForBytes:length: } else { - /* This exception might not be conformant, but seems helpful. */ + /* This exception might not be conformant, + but seems helpful. */ [NSException raise: NSInvalidArgumentException format: @"Value of class: %@ needs conversion " @"yet no conversion method specified. " @@ -1437,38 +1433,49 @@ See Also: - valueFactoryMethodName, -newValueForBytes:length: return value; } -/** Returns method name to use to convert value of a class -different than attribute adaptor value type. - -See also: -adaptorValueByConvertingAttributeValue, -adaptorValueConversionMethod -**/ +/** + *

Returns method name to use to convert value of a class + * different than attribute adaptor value type.

+ * + * See also: [-adaptorValueByConvertingAttributeValue:], + * [-adaptorValueConversionMethod] + */ - (NSString *)adaptorValueConversionMethodName { return _adaptorValueConversionMethodName; } -/** Returns selector of the method to use to convert value of a class -different than attribute adaptor value type. -Default implementation returns selector of method returned by -adaptorValueConversionMethodName or NULL if there's not selector for the method - -See also: -adaptorValueByConvertingAttributeValue, -adaptorValueConversionMethodName -**/ +/** + *

Returns selector of the method to use to convert value of a class + * different than attribute adaptor value type.

+ *

The default implementation returns the selector corresponding to + * [-adaptorValueConversionMethodName] or NULL if there's not selector + * for the method.

+ * + * See also: [-adaptorValueByConvertingAttributeValue:], + * [-adaptorValueConversionMethodName] + */ - (SEL)adaptorValueConversionMethod { return _adaptorValueConversionMethod; } -/** Returns an EOAdaptorValueType describing the adaptor -(i.e. database) type of data for this attribute. - -Returned value can be: -EOAdaptorBytesType Raw bytes (default type) -EOAdaptorNumberType Number value (attribute valueClass is kind of NSNumber) -EOAdaptorCharactersType String value (attribute valueClass is kind of NSString) -EOAdaptorDateType Date value (attribute valueClass is kind of NSDate) - -**/ +/** + *

Returns an EOAdaptorValueType describing the adaptor + * (i.e. database) type of data for this attribute.

+ * + *

Returned value can be:

+ * + * EOAdaptorBytesType + * Raw bytes (default type) + * EOAdaptorNumberType + * Number value (attribute valueClass is kind of NSNumber) + * EOAdaptorCharactersType + * String value (attribute valueClass is kind of NSString) + * EOAdaptorDateType + * Date value (attribute valueClass is kind of NSDate) + * + */ - (EOAdaptorValueType)adaptorValueType { if (!_flags.isAttributeValueInitialized) @@ -1543,19 +1550,20 @@ See also: -setFactoryMethodArgumentType: _valueFactoryMethod = NSSelectorFromString(_valueFactoryMethodName); } -/** Set method name to use to convert value of a class -different than attribute adaptor value type. - -See also: -adaptorValueByConvertingAttributeValue, -adaptorValueConversionMethod, - -adaptorValueConversionMethodName -**/ - +/** + *

Set method name to use to convert value of a class + * different than attribute adaptor value type.

+ * + * See also: [-adaptorValueByConvertingAttributeValue:], + * [-adaptorValueConversionMethod], [-adaptorValueConversionMethodName] + */ - (void)setAdaptorValueConversionMethodName: (NSString *)conversionMethodName { [self willChange]; ASSIGN(_adaptorValueConversionMethodName, conversionMethodName); - _adaptorValueConversionMethod = NSSelectorFromString(_adaptorValueConversionMethodName); + _adaptorValueConversionMethod + = NSSelectorFromString(_adaptorValueConversionMethodName); } /** Set the type of argument needed by the factoryMethod. diff --git a/EOAccess/GNUmakefile b/EOAccess/GNUmakefile index 7847b72..37c3590 100644 --- a/EOAccess/GNUmakefile +++ b/EOAccess/GNUmakefile @@ -27,6 +27,7 @@ include $(GNUSTEP_MAKEFILES)/common.make include ../Version +include ../common.make # The library to be compiled NATIVE_LIBRARY_NAME=EOAccess @@ -88,26 +89,21 @@ EOAccess.h DOCUMENT_NAME = EOAccess -EOAccess_AUTOGSDOC_HEADERS = $(EOAccess_HEADER_FILES) -EOAccess_AUTOGSDOC_SOURCE = $(EOAccess_OBJC_FILES) -EOAccess_HEADER_FILES_DIR = $(HEADER_DIR) -EOAccess_AGSDOC_FILES = EOAccess.gsdoc $(EOAccess_AUTOGSDOC_HEADERS) -#$(EOAccess_AUTOGSDOC_SOURCE) + +# autogsdoc scan the source files corresponding to the headers +EOAccess_AGSDOC_FILES = EOAccess.gsdoc \ + $(EOAccess_HEADER_FILES) \ + $(EOAccess_OBJC_FILES) + EOAccess_AGSDOC_FLAGS = \ -Declared EOAccess \ - -Standards YES \ -Project EOAccess \ - -WordMap '{\ - FOUNDATION_EXPORT=extern;FOUNDATION_STATIC_INLINE="";\ - GS_GEOM_SCOPE=extern;GS_GEOM_ATTR="";\ - GS_EXPORT=extern;GS_DECLARE="";\ - GS_RANGE_SCOPE=extern;GS_RANGE_ATTR="";\ - GS_ZONE_SCOPE=extern;GS_ZONE_ATTR="";\ - }' -Up EOAccess + -Up EOAccess \ + $(GDL2_AGSDOC_FLAGS) -include Makefile.preamble -include ../common.make +include ../variable-processing.make -include GNUmakefile.local diff --git a/EOAdaptors/PostgreSQLAdaptor/PostgreSQLAdaptor.m b/EOAdaptors/PostgreSQLAdaptor/PostgreSQLAdaptor.m index 0614133..09308c0 100644 --- a/EOAdaptors/PostgreSQLAdaptor/PostgreSQLAdaptor.m +++ b/EOAdaptors/PostgreSQLAdaptor/PostgreSQLAdaptor.m @@ -259,7 +259,7 @@ static NSString *typeNames[][2] = { return [[self externalToInternalTypeMap] allKeys]; } -+ (void)assignExternalInfoForAttribute: (EOAttribute *)attribute ++ (void)assignExternalTypeForAttribute: (EOAttribute *)attribute { // TODO EOAdaptorValueType value = [attribute adaptorValueType]; @@ -326,12 +326,13 @@ static NSString *typeNames[][2] = { - (void)assertConnectionDictionaryIsValid { - NSException *exception = nil; - EOAdaptorContext *adaptorContext; - EOAdaptorChannel *adaptorChannel; if (![self hasOpenChannels]) { + EOAdaptorContext *adaptorContext; + EOAdaptorChannel *adaptorChannel; + volatile NSException *exception = nil; + adaptorContext = [self createAdaptorContext]; adaptorChannel = [adaptorContext createAdaptorChannel]; diff --git a/EOControl/EOClassDescription.h b/EOControl/EOClassDescription.h index bc9e81a..e64a614 100644 --- a/EOControl/EOClassDescription.h +++ b/EOControl/EOClassDescription.h @@ -233,8 +233,4 @@ GDL2CONTROL_EXPORT NSString *EOValidatedPropertyUserInfoKey; @end -@interface NSObject (_EOEditingContext) -- (EOEditingContext *)editingContext; -@end - #endif diff --git a/EOControl/EOClassDescription.m b/EOControl/EOClassDescription.m index 88c6bef..d03679b 100644 --- a/EOControl/EOClassDescription.m +++ b/EOControl/EOClassDescription.m @@ -86,8 +86,6 @@ RCS_ID("$Id$") +(id)defaultGroup; @end -@implementation EOClassDescription - NSString *EOClassDescriptionNeededNotification = @"EOClassDescriptionNeededNotification"; @@ -111,6 +109,8 @@ static NSMapTable *classDescriptionForClass = NULL; static id classDelegate = nil; static NSRecursiveLock *local_lock = nil; +@implementation EOClassDescription + + (void) initialize { static BOOL initialized=NO; @@ -303,17 +303,18 @@ static NSRecursiveLock *local_lock = nil; EOFLOGObjectFnStop(); return dictionary; -}; - -- (void)awakeObject: (id)object -fromFetchInEditingContext: (EOEditingContext *)anEditingContext -{ - //OK - //nothing to do } - (void)awakeObject: (id)object -fromInsertionInEditingContext: (EOEditingContext *)anEditingContext +fromFetchInEditingContext: (EOEditingContext *)editingContext +{ + //OK + //nothing to do + return; +} + +- (void)awakeObject: (id)object +fromInsertionInEditingContext: (EOEditingContext *)editingContext { //Near OK NSArray *toManyRelationshipKeys = nil; @@ -357,7 +358,7 @@ fromInsertionInEditingContext: (EOEditingContext *)anEditingContext return nil; } -- (id)createInstanceWithEditingContext: (EOEditingContext *)anEditingContext +- (id)createInstanceWithEditingContext: (EOEditingContext *)editingContext globalID: (EOGlobalID *)globalID zone: (NSZone *)zone { @@ -440,7 +441,7 @@ fromInsertionInEditingContext: (EOEditingContext *)anEditingContext } - (void)propagateDeleteForObject: (id)object - editingContext: (EOEditingContext *)context + editingContext: (EOEditingContext *)editingContext { NSArray *toRelArray; NSEnumerator *toRelEnum; @@ -478,9 +479,12 @@ fromInsertionInEditingContext: (EOEditingContext *)anEditingContext NSDebugMLLog(@"gsdb", @"ToOne key=%@", key); if (classDelegate) - shouldPropagate = [classDelegate shouldPropagateDeleteForObject: object - inEditingContext: context - forRelationshipKey: key]; + { + shouldPropagate + = [classDelegate shouldPropagateDeleteForObject: object + inEditingContext: editingContext + forRelationshipKey: key]; + } NSDebugMLLog(@"gsdb", @"ToOne key=%@ shouldPropagate=%s", key, (shouldPropagate ? "YES" : "NO")); @@ -523,8 +527,8 @@ fromInsertionInEditingContext: (EOEditingContext *)anEditingContext EOFLOGObjectLevel(@"gsdb", @"EODeleteRuleCascade"); [object removeObject: destination fromBothSidesOfRelationshipWithKey: key]; - [context deleteObject: destination]; - [destination propagateDeleteWithEditingContext: context]; + [editingContext deleteObject: destination]; + [destination propagateDeleteWithEditingContext: editingContext]; break; case EODeleteRuleDeny: @@ -554,9 +558,12 @@ fromInsertionInEditingContext: (EOEditingContext *)anEditingContext NSDebugMLLog(@"gsdb", @"ToMany key=%@", key); if (classDelegate) - shouldPropagate = [classDelegate shouldPropagateDeleteForObject: object - inEditingContext: context - forRelationshipKey: key]; + { + shouldPropagate + = [classDelegate shouldPropagateDeleteForObject: object + inEditingContext: editingContext + forRelationshipKey: key]; + } NSDebugMLLog(@"gsdb", @"ToMany key=%@ shouldPropagate=%s", key, (shouldPropagate ? "YES" : "NO")); @@ -612,8 +619,8 @@ fromInsertionInEditingContext: (EOEditingContext *)anEditingContext [object removeObject: destination fromBothSidesOfRelationshipWithKey: key]; - [context deleteObject: destination]; - [destination propagateDeleteWithEditingContext: context]; + [editingContext deleteObject: destination]; + [destination propagateDeleteWithEditingContext: editingContext]; } NSDebugMLLog(@"gsdb", @"toManyArray %p=%@", toManyArray, toManyArray); @@ -661,17 +668,17 @@ fromInsertionInEditingContext: (EOEditingContext *)anEditingContext return nil; } -- (EORelationship *)anyRelationshipNamed:(NSString *)relationshipNamed +- (EORelationship *)anyRelationshipNamed:(NSString *)relationshipName { return nil; } -- (NSString *)userPresentableDescriptionForObject:(id)anObject +- (NSString *)userPresentableDescriptionForObject:(id)object { NSArray *attrArray = [self attributeKeys]; NSEnumerator *attrEnum = [attrArray objectEnumerator]; - NSMutableString *values = [NSMutableString stringWithCapacity: - 4 * [attrArray count]]; + NSMutableString *values + = [NSMutableString stringWithCapacity: 4 * [attrArray count]]; NSString *key; BOOL init = YES; @@ -729,9 +736,9 @@ fromInsertionInEditingContext: (EOEditingContext *)anEditingContext @implementation NSObject (EOInitialization) -- (id)initWithEditingContext: (EOEditingContext *)ec - classDescription: (EOClassDescription *)classDesc - globalID: (EOGlobalID *)globalID; +- (id)initWithEditingContext: (EOEditingContext *)editingContext + classDescription: (EOClassDescription *)classDescription + globalID: (EOGlobalID *)globalID { return [self init]; } @@ -1870,7 +1877,7 @@ fromBothSidesOfRelationshipWithKey: (NSString *)key @implementation NSObject (EOClassDescriptionClassDelegate) - (BOOL)shouldPropagateDeleteForObject: (id)object - inEditingContext: (EOEditingContext *)ec + inEditingContext: (EOEditingContext *)editingContext forRelationshipKey: (NSString *)key { return YES; @@ -2007,13 +2014,3 @@ fromBothSidesOfRelationshipWithKey: (NSString *)key @end -@implementation NSObject (_EOEditingContext) - -- (EOEditingContext*)editingContext -{ - return [EOObserverCenter observerForObject: self - ofClass: [EOEditingContext class]]; -} - -@end - diff --git a/EOControl/EOControl.gsdoc b/EOControl/EOControl.gsdoc index 0b0706b..2935c8a 100644 --- a/EOControl/EOControl.gsdoc +++ b/EOControl/EOControl.gsdoc @@ -3,20 +3,30 @@ GDL2 - EOControl + + + - - - + $Revision$ + $Date$ + 2006 Free Software Foundation, Inc. GDL2 - EOControl -

... +

+ EOControl is the fundemantal framework of GDL2 which implements the + the abstraction of a database from the view of an object oriented + application. To be useful it generally requires support from a + suppurting framework like EOAccess which implements the components + needed for SQL based RDBMS implementations. In theory EOControl could + be used together with supporting Libraries with other storage models + but these are hardely used in practice.

diff --git a/EOControl/EODataSource.m b/EOControl/EODataSource.m index 45e7281..8eb241c 100644 --- a/EOControl/EODataSource.m +++ b/EOControl/EODataSource.m @@ -120,6 +120,7 @@ RCS_ID("$Id$") - (void)setQualifierBindings: (NSDictionary *)bindings { + return; } - (NSDictionary *)qualifierBindings diff --git a/EOControl/EODeprecated.h b/EOControl/EODeprecated.h index 058ad5e..e017f7a 100644 --- a/EOControl/EODeprecated.h +++ b/EOControl/EODeprecated.h @@ -43,27 +43,27 @@ @end @interface EOClassDescription (EODeprecated) -/** Deprecated. Use +setClassDelegate. */ +/** Deprecated. Use [+setClassDelegate:]. */ + (void)setDelegate: (id)delegate; -/** Deprecated. Use +classDelegate. */ +/** Deprecated. Use [+classDelegate]. */ + (id)delegate; @end /** Deprecated. Use NSUndoManager. */ @interface EOUndoManager : NSUndoManager -/** Deprecated. Use -removeAllActionsWithTarget:. */ -- (void)forgetAllWithTarget: (id)param0; +/** Deprecated. Use removeAllActionsWithTarget:. */ +- (void)forgetAllWithTarget: (id)target; -/** Deprecated. Use -removeAllActionsWithTarget:. */ +/** Deprecated. Use removeAllActionsWithTarget:. */ - (void)forgetAll; -/** Deprecated. Use -registerUndoWithTarget:selector:object:. */ -- (void)registerUndoWithTarget: (id)param0 - selector: (SEL)param1 - arg: (id)param2; +/** Deprecated. Use registerUndoWithTarget:selector:object:. */ +- (void)registerUndoWithTarget: (id)target + selector: (SEL)selector + arg: (id)argument; -/** Deprecated. Use -enableUndoRegistration. */ +/** Deprecated. Use enableUndoRegistration. */ - (void)reenableUndoRegistration; @end diff --git a/EOControl/EOEditingContext.h b/EOControl/EOEditingContext.h index 5b4b4b5..2e406ab 100644 --- a/EOControl/EOEditingContext.h +++ b/EOControl/EOEditingContext.h @@ -163,7 +163,7 @@ - (void)validateDeletesUsingTable: (NSHashTable *)deleteTable; - (BOOL)validateTable: (NSHashTable *)table withSelector: (SEL)sel - exceptionArray: (NSMutableArray**)exceptionArray + exceptionArray: (NSMutableArray**)exceptionArrayPtr continueAfterFailure: (BOOL)continueAfterFailure; @@ -173,10 +173,10 @@ - (void)setPropagatesDeletesAtEndOfEvent: (BOOL)propagatesDeletesAtEndOfEvent; - (BOOL)stopsValidationAfterFirstError; -- (void)setStopsValidationAfterFirstError: (BOOL)yn; +- (void)setStopsValidationAfterFirstError: (BOOL)flag; - (BOOL)locksObjectsBeforeFirstModification; -- (void)setLocksObjectsBeforeFirstModification: (BOOL)yn; +- (void)setLocksObjectsBeforeFirstModification: (BOOL)flag; - (EOSharedEditingContext *)sharedEditingContext; - (void)setSharedEditingContext:(EOSharedEditingContext *)sharedEditingContext; @@ -201,7 +201,7 @@ modified state of the object.**/ - (void)refaultObjects; -- (void)setInvalidatesObjectsWhenFreed: (BOOL)yn; +- (void)setInvalidatesObjectsWhenFreed: (BOOL)flag; - (BOOL)invalidatesObjectsWhenFreed; - (void)addEditor: (id)editor; @@ -334,7 +334,7 @@ shouldContinueFetchingWithCurrentObjectCount: (unsigned)count @interface EOEditingContext (EOStateArchiving) -+ (void)setUsesContextRelativeEncoding: (BOOL)yn; ++ (void)setUsesContextRelativeEncoding: (BOOL)flag; + (BOOL)usesContextRelativeEncoding; + (void)encodeObject: (id)object withCoder: (NSCoder *)coder; + (id)initObject: (id)object withCoder: (NSCoder *)coder; diff --git a/EOControl/EOEditingContext.m b/EOControl/EOEditingContext.m index 90849f2..dc0b6e7 100644 --- a/EOControl/EOEditingContext.m +++ b/EOControl/EOEditingContext.m @@ -1293,13 +1293,13 @@ _mergeValueForKey(id obj, id value, EOFLOGObjectFnStop(); } -- (NSArray *)objectsWithFetchSpecification: (EOFetchSpecification *)fetch +- (NSArray *)objectsWithFetchSpecification: (EOFetchSpecification *)fetchSpecification { NSArray *objects; EOFLOGObjectFnStart(); - objects = [self objectsWithFetchSpecification: fetch + objects = [self objectsWithFetchSpecification: fetchSpecification editingContext: self]; EOFLOGObjectFnStop(); @@ -2354,6 +2354,7 @@ _mergeValueForKey(id obj, id value, -(void)setLevelsOfUndo:(int)levels { //TODO + return; }; - (void) _registerClearStateWithUndoManager @@ -3654,7 +3655,7 @@ modified state of the object.**/ } } -- (NSArray *)objectsWithFetchSpecification: (EOFetchSpecification *)fetch +- (NSArray *)objectsWithFetchSpecification: (EOFetchSpecification *)fetchSpecification editingContext: (EOEditingContext *)context { //OK @@ -3663,14 +3664,14 @@ modified state of the object.**/ EOFLOGObjectFnStart(); EOFLOGObjectLevelArgs(@"EOEditingContext", - @"_objectStore=%@ fetch=%@ context=%@", - _objectStore, fetch, context); + @"_objectStore=%@ fetchSpecification=%@ context=%@", + _objectStore, fetchSpecification, context); [self lock]; //TODOLOCK NS_DURING { - objects = [_objectStore objectsWithFetchSpecification: fetch + objects = [_objectStore objectsWithFetchSpecification: fetchSpecification editingContext: context]; } NS_HANDLER diff --git a/EOControl/EOEvent.m b/EOControl/EOEvent.m index 6b2501e..7361558 100644 --- a/EOControl/EOEvent.m +++ b/EOControl/EOEvent.m @@ -58,15 +58,19 @@ NSString *EOEventGroupName = @"EOEventGroupName"; - (void)markStartWithInfo: (id)info { + return; } - (void)markAtomicWithInfo: (id)info { + return; } - (void)markEnd { + return; } - (void)setInfo: (id)info { + return; } - (id)info { @@ -74,6 +78,7 @@ NSString *EOEventGroupName = @"EOEventGroupName"; } - (void)setType: (NSString *)type { + return; } - (NSString *)type { diff --git a/EOControl/EOEventCenter.m b/EOControl/EOEventCenter.m index 7eadf21..daceea2 100644 --- a/EOControl/EOEventCenter.m +++ b/EOControl/EOEventCenter.m @@ -73,23 +73,29 @@ NSString *EOEventLoggingLimit = @"EOEventLoggingLimit"; } + (void)suspendLogging { + return; } + (void)resumeLogging { + return; } + (void)resetLogging { + return; } - (void)resetLogging { + return; } + (void)registerEventClass: (Class)eventClass classPointer: (Class *)classPtr { + return; } + (void)registerEventClass: (Class)eventClass handler: (id )handler { + return; } + (NSArray *)registeredEventClasses { @@ -102,6 +108,7 @@ NSString *EOEventLoggingLimit = @"EOEventLoggingLimit"; + (void)setRecordsEvents: (BOOL)flag forClass: (Class)eventClass { + return; } + (id)newEventOfClass: (Class)eventClass type: (NSString *)type @@ -111,16 +118,20 @@ NSString *EOEventLoggingLimit = @"EOEventLoggingLimit"; + (void)markStartOfEvent: (EOEvent *)event info: (id)info { + return; } + (void)markAtomicEvent: (EOEvent *)event info: (id)info { + return; } + (void)markEndOfEvent:(EOEvent *)event { + return; } + (void)cancelEvent:(EOEvent *)event { + return; } - (NSArray *)eventsOfClass: (Class)eventClass type: (NSString *)type diff --git a/EOControl/EOFault.h b/EOControl/EOFault.h index b1c4f48..c22ca40 100644 --- a/EOControl/EOFault.h +++ b/EOControl/EOFault.h @@ -71,8 +71,8 @@ + (unsigned)retainCount; + (BOOL)isKindOfClass: (Class)aClass; -+ (void)doesNotRecognizeSelector: (SEL)sel; -+ (BOOL)respondsToSelector: (SEL)sel; ++ (void)doesNotRecognizeSelector: (SEL)selector; ++ (BOOL)respondsToSelector: (SEL)selector; + (void)makeObjectIntoFault: (id)object withHandler: (EOFaultHandler *)handler; @@ -92,7 +92,7 @@ - (BOOL)isKindOfClass: (Class)aClass; - (BOOL)isMemberOfClass: (Class)aClass; - (BOOL)conformsToProtocol: (Protocol *)protocol; -- (BOOL)respondsToSelector: (SEL)sel; +- (BOOL)respondsToSelector: (SEL)selector; - (NSMethodSignature *)methodSignatureForSelector: (SEL)selector; - (id)retain; @@ -116,7 +116,7 @@ - (id)self; -- (void)doesNotRecognizeSelector: (SEL)sel; +- (void)doesNotRecognizeSelector: (SEL)selector; - (void)forwardInvocation: (NSInvocation *)invocation; - (id)gcSetNextObject: (id)object; diff --git a/EOControl/EOFault.m b/EOControl/EOFault.m index 887fb1f..6dd5f8f 100644 --- a/EOControl/EOFault.m +++ b/EOControl/EOFault.m @@ -130,38 +130,38 @@ static Class EOFaultClass = NULL; return NO; } -+ (void)doesNotRecognizeSelector: (SEL)sel ++ (void)doesNotRecognizeSelector: (SEL)selector { [NSException raise: NSInvalidArgumentException format: @"%@ -- %@ 0x%x: selector \"%@\" not recognized", NSStringFromSelector(_cmd), NSStringFromClass([self class]), self, - NSStringFromSelector(sel)]; + NSStringFromSelector(selector)]; } -+ (BOOL)respondsToSelector: (SEL)sel ++ (BOOL)respondsToSelector: (SEL)selector { - return (GSGetMethod(self, sel, NO, YES) != (GSMethod)0); + return (GSGetMethod(self, selector, NO, YES) != (GSMethod)0); } /** * Returns a pointer to the C function implementing the method used - * to respond to messages with aSelector by instances of the receiving + * to respond to messages with selector by instances of the receiving * class. *
Raises NSInvalidArgumentException if given a null selector. * * It's a temporary fix to support NSAutoreleasePool optimization */ -+ (IMP) instanceMethodForSelector: (SEL)aSelector ++ (IMP) instanceMethodForSelector: (SEL)selector { - if (aSelector == 0) + if (selector == 0) [NSException raise: NSInvalidArgumentException format: @"%@ null selector given", NSStringFromSelector(_cmd)]; /* * Since 'self' is an class, get_imp() will get the instance method. */ - return get_imp((Class)self, aSelector); + return get_imp((Class)self, selector); } // Fault class methods @@ -294,7 +294,7 @@ static Class EOFaultClass = NULL; return [_handler targetClass]; } -- (BOOL)isKindOfClass: (Class)aclass; +- (BOOL)isKindOfClass: (Class)aClass { Class class; BOOL koc=NO; @@ -302,15 +302,15 @@ static Class EOFaultClass = NULL; class = [_handler targetClass]; for (; !koc && class != Nil; class = GSObjCSuper(class)) - if (class == aclass) + if (class == aClass) koc = YES; return koc; } -- (BOOL)isMemberOfClass: (Class)aclass +- (BOOL)isMemberOfClass: (Class)aClass { - return [_handler targetClass] == aclass; + return [_handler targetClass] == aClass; } - (BOOL)conformsToProtocol: (Protocol *)protocol @@ -336,7 +336,7 @@ static Class EOFaultClass = NULL; return NO; } -- (BOOL)respondsToSelector: (SEL)aSelector +- (BOOL)respondsToSelector: (SEL)selector { Class class; BOOL respondsToSelector; @@ -344,24 +344,24 @@ static Class EOFaultClass = NULL; NSDebugFLLog(@"gsdb", @"START self=%p", self); class = [_handler targetClass]; - NSDebugFLLog(@"gsdb", @"class=%@ aSelector=%@", class, - NSStringFromSelector(aSelector)); + NSDebugFLLog(@"gsdb", @"class=%@ selector=%@", class, + NSStringFromSelector(selector)); respondsToSelector - = (GSGetMethod(class, aSelector, YES, YES) != (GSMethod)0); + = (GSGetMethod(class, selector, YES, YES) != (GSMethod)0); NSDebugFLLog(@"gsdb", @"STOP self=%p", self); return respondsToSelector; } -- (NSMethodSignature *)methodSignatureForSelector: (SEL)aSelector +- (NSMethodSignature *)methodSignatureForSelector: (SEL)selector { NSMethodSignature *sig; NSDebugFLLog(@"gsdb", @"START self=%p", self); NSDebugFLLog(@"gsdb", @"_handler=%p", _handler); - sig = [_handler methodSignatureForSelector: aSelector + sig = [_handler methodSignatureForSelector: selector forFault: self]; NSDebugFLLog(@"gsdb", @"STOP self=%p", self); @@ -482,24 +482,24 @@ static Class EOFaultClass = NULL; return self; } -- (void)doesNotRecognizeSelector: (SEL)sel +- (void)doesNotRecognizeSelector: (SEL)selector { [NSException raise: NSInvalidArgumentException format: @"%@ -- %@ 0x%x: selector \"%@\" not recognized", NSStringFromSelector(_cmd), NSStringFromClass([self class]), self, - NSStringFromSelector(sel)]; + NSStringFromSelector(selector)]; } -- (retval_t)forward: (SEL)sel +- (retval_t)forward: (SEL)selector : (arglist_t)args { retval_t ret; NSInvocation *inv; inv = [[[NSInvocation alloc] initWithArgframe: args - selector: sel] + selector: selector] autorelease]; [self forwardInvocation: inv]; @@ -542,14 +542,14 @@ static Class EOFaultClass = NULL; // GC -- gcSetNextObject: (id)anObject +- gcSetNextObject: (id)object { - return [_handler gcSetNextObject: anObject]; + return [_handler gcSetNextObject: object]; } -- gcSetPreviousObject: (id)anObject +- gcSetPreviousObject: (id)object { - return [_handler gcSetPreviousObject: anObject]; + return [_handler gcSetPreviousObject: object]; } - (id)gcNextObject diff --git a/EOControl/EOFetchSpecification.h b/EOControl/EOFetchSpecification.h index 04bbec8..1da8e9b 100644 --- a/EOControl/EOFetchSpecification.h +++ b/EOControl/EOFetchSpecification.h @@ -115,7 +115,7 @@ - (void)setIsDeep: (BOOL)isDeep; - (BOOL)isDeep; -- (void)setLocksObjects: (BOOL)setLocksObjects; +- (void)setLocksObjects: (BOOL)locksObjects; - (BOOL)locksObjects; - (void)setRefreshesRefetchedObjects: (BOOL)refreshesRefetchedObjects; @@ -148,10 +148,5 @@ @end -GDL2CONTROL_EXPORT NSString *EOPrefetchingRelationshipHintKey; -GDL2CONTROL_EXPORT NSString *EOFetchLimitHintKey; -GDL2CONTROL_EXPORT NSString *EOPromptsAfterFetchLimitHintKey; - - #endif diff --git a/EOControl/EOFetchSpecification.m b/EOControl/EOFetchSpecification.m index e0501ab..0ba0be4 100644 --- a/EOControl/EOFetchSpecification.m +++ b/EOControl/EOFetchSpecification.m @@ -392,10 +392,10 @@ setRequiresAllQualifierBindingVariables:requiresAllQualifierBindingVariables return _qualifier; } -- (void)setUsesDistinct: (BOOL)flag +- (void)setUsesDistinct: (BOOL)usesDistinct { [self willChange]; - _flags.usesDistinct = flag ? YES : NO; + _flags.usesDistinct = usesDistinct ? YES : NO; } - (BOOL)usesDistinct diff --git a/EOControl/EOGenericRecord.m b/EOControl/EOGenericRecord.m index b168160..9be4231 100644 --- a/EOControl/EOGenericRecord.m +++ b/EOControl/EOGenericRecord.m @@ -160,7 +160,7 @@ static NSRecursiveLock *allGenericRecordsLock = nil; - (id) initWithEditingContext: (EOEditingContext *)context classDescription: (EOClassDescription *)classDesc - globalID: (EOGlobalID *)globalID; + globalID: (EOGlobalID *)globalID { if ((self = [self init])) { diff --git a/EOControl/EOGlobalID.h b/EOControl/EOGlobalID.h index 8c2c43b..fe541ce 100644 --- a/EOControl/EOGlobalID.h +++ b/EOControl/EOGlobalID.h @@ -73,9 +73,6 @@ enum { - (BOOL)isTemporary; -- (void)encodeWithCoder: (NSCoder *)coder; -- (id)initWithCoder: (NSCoder *)decoder; - @end #endif diff --git a/EOControl/EOKeyGlobalID.h b/EOControl/EOKeyGlobalID.h index b443456..52072bd 100644 --- a/EOControl/EOKeyGlobalID.h +++ b/EOControl/EOKeyGlobalID.h @@ -52,9 +52,6 @@ - (BOOL)isEqual: (id)other; - (unsigned)hash; -- (void)encodeWithCoder: (NSCoder *)coder; -- (id)initWithCoder: (NSCoder *)decoder; - - (BOOL)isFinal; - (NSString *)description; - (BOOL)areKeysAllNulls; diff --git a/EOControl/EOKeyGlobalID.m b/EOControl/EOKeyGlobalID.m index 3e9cd49..135b9d0 100644 --- a/EOControl/EOKeyGlobalID.m +++ b/EOControl/EOKeyGlobalID.m @@ -155,7 +155,7 @@ RCS_ID("$Id$") } -- (unsigned int)hash // TODO +- (unsigned int)hash { int i; unsigned int hash = 0; diff --git a/EOControl/EOKeyValueArchiver.h b/EOControl/EOKeyValueArchiver.h index 54d6878..7e434e5 100644 --- a/EOControl/EOKeyValueArchiver.h +++ b/EOControl/EOKeyValueArchiver.h @@ -109,7 +109,7 @@ referenceToEncodeForObject: (id)object; - (void)setDelegate: (id)delegate; - (id)delegate; -- (id)_findTypeForPropertyListDecoding: (id)param0; +- (id)_findTypeForPropertyListDecoding: (id)obj; - (id)_dictionaryForPropertyList: (NSDictionary *)propList; - (id)_objectsForPropertyList: (NSArray *)propList; - (id)_objectForPropertyList: (NSDictionary *)propList; diff --git a/EOControl/EOKeyValueArchiver.m b/EOControl/EOKeyValueArchiver.m index d906296..f8c23db 100644 --- a/EOControl/EOKeyValueArchiver.m +++ b/EOControl/EOKeyValueArchiver.m @@ -621,7 +621,7 @@ NO if no object is found **/ /** Returns unarchived object for the reference archived as 'key'. The receiver gets the object for reference by calling -its delegate method -archiver:objectForReference: **/ +its delegate method -unarchiver:objectForReference: **/ - (id) decodeObjectReferenceForKey: (NSString*)key { id objectReference = nil; @@ -838,11 +838,12 @@ class instances should implements -initWithKeyValueUnarchiver: **/ @implementation NSObject (EOKeyValueUnarchiverDelegation) -/** Returns an object for archived 'reference'. -Should be overriden by EOKeyValueUnarchiver's delegates -**/ +/** + * Returns an object for archived 'reference'. + * Implemented by EOKeyValueUnarchiver's delegate. + */ - (id)unarchiver: (EOKeyValueUnarchiver*)archiver -objectForReference: (id)reference +objectForReference: (id)keyPath { [self subclassResponsibility:_cmd]; return nil; @@ -856,11 +857,13 @@ objectForReference: (id)reference - (void)finishInitializationWithKeyValueUnarchiver: (EOKeyValueUnarchiver *)unarchiver { //Does nothing ? + return; } -- (void)awakeFromKeyValueUnarchiver: (EOKeyValueUnarchiver *)unarchiver; +- (void)awakeFromKeyValueUnarchiver: (EOKeyValueUnarchiver *)unarchiver { //Does nothing ? + return; } @end diff --git a/EOControl/EOKeyValueCoding.h b/EOControl/EOKeyValueCoding.h index 2e748ae..9d1ba03 100644 --- a/EOControl/EOKeyValueCoding.h +++ b/EOControl/EOKeyValueCoding.h @@ -109,7 +109,7 @@ * Contrary to the TOC of the documentation, this method is called * unableToSetNilForKey: and not unableToSetNullForKey:
* This implementation raises an NSInvalidArgument exception.
- * The NSKeyValueCoding -setNilValueForKey: is overriden to invoke this + * The NSKeyValueCoding setNilValueForKey: is overriden to invoke this * method instead. We manipulate the runtime to insure that our implementation * of unableToSetNilForKey: is used in favor of the one in gnustep-base or * Foundation. diff --git a/EOControl/EOKeyValueCoding.m b/EOControl/EOKeyValueCoding.m index 3e05181..62c265e 100644 --- a/EOControl/EOKeyValueCoding.m +++ b/EOControl/EOKeyValueCoding.m @@ -254,7 +254,7 @@ initialize(void) * returned by invoking [NSObject-valueForKey:] * for each item in the receiver, substituting EONull for nil. * Keys formated like "@function.someKey" are resolved by invoking - * [NSArray-computeFuncionWithKey:] "someKey" on the receiver. + * NSArray computeFunctionWithKey: "someKey" on the receiver. * If the key is omitted, the function will be called with nil. * The following functions are supported by default: * @@ -431,7 +431,7 @@ initialize(void) * Iterates over the objects of the receiver send each object valueForKey: * with the parameter. The decimalValue of the returned object is accumalted * and then divided by number of objects contained by the receiver as returned - * by [NSArray-coung]. An empty array returns NSDecimalNumber 0. + * by NSArray count. An empty array returns NSDecimalNumber 0. */ - (id)computeAvgForKey: (NSString *)key { diff --git a/EOControl/EOMultiReaderLock.m b/EOControl/EOMultiReaderLock.m index 8de668e..4ac76a3 100644 --- a/EOControl/EOMultiReaderLock.m +++ b/EOControl/EOMultiReaderLock.m @@ -225,6 +225,7 @@ */ - (void)lockForWriting { + return; } /** @@ -235,6 +236,7 @@ */ - (void)unlockForWriting { + return; } /** @@ -244,6 +246,7 @@ */ - (void)suspendReaderLocks { + return; } /** @@ -253,6 +256,7 @@ */ - (void)retrieveReaderLocks { + return; } @end diff --git a/EOControl/EONSAddOns.m b/EOControl/EONSAddOns.m index 101c5a1..133ba73 100644 --- a/EOControl/EONSAddOns.m +++ b/EOControl/EONSAddOns.m @@ -426,13 +426,13 @@ GDL2_ActivateAllGDL2Categories(void) return result; } -- (NSArray *)arrayExcludingObject: (id)anObject +- (NSArray *)arrayExcludingObject: (id)object { //Verify: mutable/non mutable,.. NSArray *result = nil; unsigned int selfCount = [self count]; - if (selfCount > 0 && anObject) //else return nil + if (selfCount > 0 && object) //else return nil { int i; @@ -440,7 +440,7 @@ GDL2_ActivateAllGDL2Categories(void) { id object = [self objectAtIndex: i]; - if (object != anObject) + if (object != object) { if (result) [(NSMutableArray *)result addObject: object]; @@ -617,7 +617,7 @@ GDL2_ActivateAllGDL2Categories(void) }; return (short)v; }; --(unsigned short)unsignedShortValue; +-(unsigned short)unsignedShortValue { int v=atoi([self lossyCString]); if (v<0 || v>USHRT_MAX) @@ -633,7 +633,7 @@ GDL2_ActivateAllGDL2Categories(void) return atol([self lossyCString]); }; --(unsigned long)unsignedLongValue; +-(unsigned long)unsignedLongValue { long long v=atoll([self lossyCString]); if (v<0 || v>ULONG_MAX) @@ -665,18 +665,18 @@ GDL2_ActivateAllGDL2Categories(void) * The method must be one which takes three arguments and returns an object. *
Raises NSInvalidArgumentException if given a null selector. */ -- (id) performSelector: (SEL)aSelector +- (id) performSelector: (SEL)selector withObject: (id) object1 withObject: (id) object2 withObject: (id) object3 { IMP msg; - if (aSelector == 0) + if (selector == 0) [NSException raise: NSInvalidArgumentException format: @"%@ null selector given", NSStringFromSelector(_cmd)]; - msg = get_imp(GSObjCClass(self), aSelector); + msg = get_imp(GSObjCClass(self), selector); if (!msg) { [NSException raise: NSGenericException @@ -684,7 +684,7 @@ GDL2_ActivateAllGDL2Categories(void) return nil; } - return (*msg)(self, aSelector, object1, object2, object3); + return (*msg)(self, selector, object1, object2, object3); } @end diff --git a/EOControl/EOObjectStore.h b/EOControl/EOObjectStore.h index dad76d2..97a0122 100644 --- a/EOControl/EOObjectStore.h +++ b/EOControl/EOObjectStore.h @@ -71,7 +71,7 @@ - (void)saveChangesInEditingContext: (EOEditingContext *)context; -- (NSArray *)objectsWithFetchSpecification: (EOFetchSpecification *)fetchSpec +- (NSArray *)objectsWithFetchSpecification: (EOFetchSpecification *)fetchSpecification editingContext: (EOEditingContext *)context; - (BOOL)isObjectLockedWithGlobalID: (EOGlobalID *)gid diff --git a/EOControl/EOObjectStoreCoordinator.h b/EOControl/EOObjectStoreCoordinator.h index 5730fde..6692691 100644 --- a/EOControl/EOObjectStoreCoordinator.h +++ b/EOControl/EOObjectStoreCoordinator.h @@ -58,7 +58,7 @@ - (NSDictionary *)valuesForKeys: (NSArray *)keys object: (id)object; -- (EOCooperatingObjectStore *)objectStoreForGlobalID: (EOGlobalID *)gloablID; +- (EOCooperatingObjectStore *)objectStoreForGlobalID: (EOGlobalID *)globalID; - (EOCooperatingObjectStore *)objectStoreForObject: (id)object; diff --git a/EOControl/EOObserver.h b/EOControl/EOObserver.h index 75a6d65..4a7a7c4 100644 --- a/EOControl/EOObserver.h +++ b/EOControl/EOObserver.h @@ -127,7 +127,7 @@ enum - (void)enqueueObserver: (EODelayedObserver *)observer; - (void)dequeueObserver: (EODelayedObserver *)observer; -- (void)notifyObserversUpToPriority: (EOObserverPriority)lastPriority; +- (void)notifyObserversUpToPriority: (EOObserverPriority)priority; - (void)setRunLoopModes: (NSArray *)modes; - (NSArray *)runLoopModes; diff --git a/EOControl/EOObserver.m b/EOControl/EOObserver.m index 7f58c02..2fbcb11 100644 --- a/EOControl/EOObserver.m +++ b/EOControl/EOObserver.m @@ -64,7 +64,7 @@ RCS_ID("$Id$") * all mutating accessor methods before the state of the receiver changes. * This method invokes [EOObserverCenter+notifyObserversObjectWillChange:] * with the receiver. It is responsible for invoking - * [EOObserving-objectWillChange:] for all corresponding observers. + * [(EOObserving)-objectWillChange:] for all corresponding observers. */ - (void)willChange { @@ -80,14 +80,14 @@ RCS_ID("$Id$") /** *

This is the central coordinating class of the change tracking system - * of EOControl. It manages the observers [EOObserving] and the objects + * of EOControl. It manages the observers [(EOObserving)] and the objects * to be observed. No instances of this class should be needed or created. * All methods for coordinating the tracking mechanism are class methods.

- *

Observers must implement the [EObserving] protocol, in particular - * [EOObserving-objectWillChange:] while the observed objects must invoke + *

Observers must implement the [(EOObserving)] protocol, in particular + * [(EOObserving)-objectWillChange:] while the observed objects must invoke * [NSObject-willChange]. Invoke [+addObserver:forObject:] to register an * observer for a particular object. That will setup for - * [EOObserving-objectWillChange:] to be invoked on the observer each time + * [(EOObserving)-objectWillChange:] to be invoked on the observer each time * [NSObject-willChange] gets called. To remove an observer invoke * [+removeObserver:forObject:]. For observers who wish to be notified for * every change the methods [+addOmniscientObserver:] and @@ -115,22 +115,25 @@ static id lastObject; /** *

- * Adds the observer to be notified with a [EOObserving-objectWillChange:] + * Adds the observer to be notified with a [(EOObserving)-objectWillChange:] * on the first of consecutive [NSObject-willChange] methods invoked on * the object. + *

*

* This does not retain the object. It is the observers - * responsibility to unregister the object with [-removeObserver:forObject:] + * responsibility to unregister the object with [+removeObserver:forObject:] * before the object ceases to exist. * The observer is also not retained. It is the observers responsibility * to unregister before it ceases to exist. *

*

* Both observer and object equality are considered equal through pointer - * equality, so an observer observing multiple objects considered -isEqual: - * will recieve multiple observer notifications,
- * objects considered -isEqual may contain different sets of observers, - * and an object can have multiple observers considered -isEqual:. + * equality, so an observer observing multiple objects considered + * isEqual: + * will recieve multiple observer notifications, + * objects considered isEqual: may contain different sets of + * observers, and an object can have multiple observers considered + * isEqual:. *

*/ + (void)addObserver: (id )observer forObject: (id)object @@ -186,7 +189,7 @@ static id lastObject; /** * This method is invoked from [NSObject-willChange] to dispatch - * [EOObserving-objectWillChange:] to all observers registered + * [(EOObserving)-objectWillChange:] to all observers registered * to observe object. This method records the last object it was * invoked with so that subsequent invocations with the same object * get ignored. Invoke this method with nil as the object to insure @@ -309,7 +312,7 @@ static id lastObject; /** * Increases the notification suppression count. When the count is * non zero [+notifyObserversObjectWillChange:] invocations do nothing. - * Call [+enableObserverNotificaion] a matching amount of times + * Call [+enableObserverNotification] a matching amount of times * to enable the dispatch of those notifications again. */ + (void)suppressObserverNotification @@ -321,9 +324,9 @@ static id lastObject; * Decreases the notification suppression count. This should be called * to pair up [+suppressObserverNotification] invocations. When they * all have been paired up [+notifyObserversObjectWillChange:] will - * continue to dispatch [EOObserving-objectWillChange:] methods again. - * If this is invoked when the [+observerNotificationCount] is 0, this - * method raises an NSInternalInconsistencyException. + * continue to dispatch [(EOObserving)-objectWillChange:] methods again. + * If this is invoked when the [+observerNotificationSuppressCount] is 0, + * this method raises an NSInternalInconsistencyException. */ + (void)enableObserverNotification { @@ -348,7 +351,7 @@ static id lastObject; /** * Adds observer as an omniscient observer to receive - * [EOObserving-objectWillChange:] for all objects and nil. + * [(EOObserving)-objectWillChange:] for all objects and nil. */ + (void)addOmniscientObserver: (id )observer { @@ -371,7 +374,7 @@ static id lastObject; @implementation EODelayedObserver /** - * EOObserving implementation which enqueues the receiver in the + * [(EOObserving)] implementation which enqueues the receiver in the * queue returned by observerQueue. */ - (void)objectWillChange: (id)subject @@ -400,13 +403,14 @@ static id lastObject; } /** - * Invoked by [EODelayedObserverQueue-notifyObserverUpToPriority:] or + * Invoked by [EODelayedObserverQueue-notifyObserversUpToPriority:] or * [EODelayedObserverQueue-enqueueObserver:]. Overridden by subclasses * to process the delayed change notification. EODelayesObserver does * nothing. */ - (void)subjectChanged { + return; } /** @@ -424,14 +428,15 @@ static id lastObject; /** * EODelayedObserverQueue manages the delayed observer notifications - * for [EODelayedObservers] that register with it. A delayed observer + * for [EODelayedObserver] that register with it. A delayed observer * may only register itself with one queue and a fixed priority. * Upon [-notifyObserversUpToPriority:] all enqueued observers are sent - * [EODelyedObserver-subjectChanged] according to the EOObserverPriority + * [EODelayedObserver-subjectChanged] according to the EOObserverPriority * of the observer. The first time an observer is enqueued with * [-enqueueObserver:] (with a priority other than * EOObserverPriorityImmediate) the queue registers itself with the - * [NSRunLoop-currentRunLoop] with EOFlushDelayedObserverRunLoopOrdering + * NSRunLoop currentRunLoop with + * EOFlushDelayedObserverRunLoopOrdering * to invoke [-notifyObserversUpToPriority:] with EOObserverPrioritySixth. * In general this mechanism is used by [EOAssociation] subclasses and * in part [EODisplayGroup] or even [EOEditingContext]. @@ -482,11 +487,12 @@ static EODelayedObserverQueue *observerQueue; * for the current processing.

*

Upon the first invocation within a run loop, this method registers * a callback method to have [-notifyObserversUpToPriority:] invoked - * with EOObserverPrioritySixth with the [NSRunLoop-currentRunLoop] with + * with EOObserverPrioritySixth with the + * NSRunLoop currentRunLoop with * EOFlushDelayedObserverRunLoopOrdering and the receivers run loop modes.

*

The observer is not retained and should be removed from the receiver - * with [-dequeueObserver:] during the EODelayedObservers [NSObject-dealloc] - * method.

+ * with [-dequeueObserver:] during the EODelayedObservers + * NSObject dealloc method.

*/ - (void)enqueueObserver: (EODelayedObserver *)observer { @@ -635,7 +641,7 @@ static EODelayedObserverQueue *observerQueue; /** * Sets the run loop modes the receiver uses when registering * for [-notifyObserversUpToPriority:] during [-enqueueObserver:]. - * (see [NSRunLoop]). + * (see NSRunLoop). */ - (void)setRunLoopModes: (NSArray *)modes { @@ -645,7 +651,7 @@ static EODelayedObserverQueue *observerQueue; /** * Returns the run loop modes the receiver uses when registering * for [-notifyObserversUpToPriority:] during [-enqueueObserver:]. - * (see [NSRunLoop]). + * (see NSRunLoop). */ - (NSArray *)runLoopModes { diff --git a/EOControl/EOQualifier.h b/EOControl/EOQualifier.h index 835b4a0..70919c4 100644 --- a/EOControl/EOQualifier.h +++ b/EOControl/EOQualifier.h @@ -63,7 +63,7 @@ + (EOQualifier *)qualifierToMatchAllValues: (NSDictionary *)values; + (EOQualifier *)qualifierToMatchAnyValue: (NSDictionary *)values; -- (NSException *)validateKeysWithRootClassDescription: (EOClassDescription *)classDesc; +- (NSException *)validateKeysWithRootClassDescription: (EOClassDescription *)classDescription; + (NSArray *)allQualifierOperators; @@ -83,7 +83,7 @@ - (NSString *)keyPathForBindingKey: (NSString *)key; - (NSSet *)allQualifierKeys; -- (void)addQualifierKeysToSet: (NSMutableSet *)qualKeys; +- (void)addQualifierKeysToSet: (NSMutableSet *)keys; - (BOOL)evaluateWithObject: (id)object; diff --git a/EOControl/EOSharedEditingContext.m b/EOControl/EOSharedEditingContext.m index 04f0124..989e146 100644 --- a/EOControl/EOSharedEditingContext.m +++ b/EOControl/EOSharedEditingContext.m @@ -39,6 +39,7 @@ RCS_ID("$Id$") #include #include #include +#include #endif #include @@ -48,7 +49,6 @@ RCS_ID("$Id$") #include "EOFetchSpecification.h" #include "EOGlobalID.h" #include "EOObjectStoreCoordinator.h" -#include "EOUndoManager.h" NSString *EODefaultSharedEditingContextWasInitializedNotification @@ -420,6 +420,7 @@ static EOSharedEditingContext *dfltSharedEditingContext = nil; */ - (void)reset { + return; } /** @@ -551,6 +552,7 @@ static EOSharedEditingContext *dfltSharedEditingContext = nil; */ - (void)validateChangesForSave { + return; } /** @@ -580,7 +582,7 @@ static EOSharedEditingContext *dfltSharedEditingContext = nil; * Raises an NSInternalInconsistencyException * since objects in a shared editing context may not be modified. */ -- (void)objectWillChange: (id)object; +- (void)objectWillChange: (id)object { [NSException raise: NSInternalInconsistencyException format: @"+[%@ deleteObject:] attempted to delete object in shared editing context", [self class]]; diff --git a/EOControl/EOUndoManager.h b/EOControl/EOUndoManager.h index f86dc92..55b3783 100644 --- a/EOControl/EOUndoManager.h +++ b/EOControl/EOUndoManager.h @@ -27,21 +27,7 @@ #ifndef __EOUndoManager_h__ #define __EOUndoManager_h__ -#ifdef GNUSTEP -#include -#else -#include -#endif - -@interface EOUndoManager : NSUndoManager - -- (void)forgetAllWithTarget: (id)param0; -- (void)forgetAll; -- (void)registerUndoWithTarget: (id)param0 - selector: (SEL)param1 - arg: (id)param2; -- (void)reenableUndoRegistration; - -@end +#warning This file is deprecated. Use NSUndoManager. +#include #endif // __EOUndoManager_h__ diff --git a/EOControl/EOUndoManager.m b/EOControl/EOUndoManager.m index 3955890..f283376 100644 --- a/EOControl/EOUndoManager.m +++ b/EOControl/EOUndoManager.m @@ -46,7 +46,7 @@ RCS_ID("$Id$") @implementation EOUndoManager -- (void) forgetAllWithTarget: (id)param0 +- (void) forgetAllWithTarget: (id)target { EOFLOGObjectFnStart(); @@ -65,8 +65,8 @@ RCS_ID("$Id$") } - (void) registerUndoWithTarget: (id)target - selector: (SEL)sel - arg: (id)arg + selector: (SEL)selector + arg: (id)argument { EOFLOGObjectFnStart(); diff --git a/EOControl/GNUmakefile b/EOControl/GNUmakefile index 628ee5e..1dbcb7c 100644 --- a/EOControl/GNUmakefile +++ b/EOControl/GNUmakefile @@ -27,6 +27,7 @@ include $(GNUSTEP_MAKEFILES)/common.make include ../Version +include ../common.make # The library to be compiled NATIVE_LIBRARY_NAME=EOControl @@ -104,26 +105,19 @@ EODeprecated.h \ EOControl.h DOCUMENT_NAME = EOControl -EOControl_AUTOGSDOC_HEADERS = $(EOControl_HEADER_FILES) -EOControl_AUTOGSDOC_SOURCE = $(EOControl_OBJC_FILES) -EOControl_HEADER_FILES_DIR = $(HEADER_DIR) -EOControl_AGSDOC_FILES = EOControl.gsdoc $(EOControl_AUTOGSDOC_HEADERS) -#$(EOControl_AUTOGSDOC_SOURCE) + +EOControl_AGSDOC_FILES = EOControl.gsdoc \ + $(EOControl_HEADER_FILES) \ + $(EOControl_OBJC_FILES) + EOControl_AGSDOC_FLAGS = \ -Declared EOControl \ - -Standards YES \ - -SystemProjects System \ -Project EOControl \ - -WordMap '{\ - FOUNDATION_EXPORT=extern;FOUNDATION_STATIC_INLINE="";\ - GS_GEOM_SCOPE=extern;GS_GEOM_ATTR="";\ - GS_EXPORT=extern;GS_DECLARE="";\ - GS_RANGE_SCOPE=extern;GS_RANGE_ATTR="";\ - GS_ZONE_SCOPE=extern;GS_ZONE_ATTR="";\ - }' -Up EOControl + -Up EOControl \ + $(GDL2_AGSDOC_FLAGS) -include Makefile.preamble -include ../common.make +include ../variable-processing.make -include GNUmakefile.local include $(GNUSTEP_MAKEFILES)/native-library.make diff --git a/EOInterface/GNUmakefile b/EOInterface/GNUmakefile index 36d2c78..ab35aea 100644 --- a/EOInterface/GNUmakefile +++ b/EOInterface/GNUmakefile @@ -27,6 +27,7 @@ include $(GNUSTEP_MAKEFILES)/common.make include ../Version +include ../common.make # The library to be compiled NATIVE_LIBRARY_NAME=EOInterface @@ -87,19 +88,13 @@ EOInterface_AGSDOC_FILES = EOInterface.gsdoc $(EOInterface_AUTOGSDOC_HEADERS) #$(EOInterface_AUTOGSDOC_SOURCE) EOInterface_AGSDOC_FLAGS = \ -Declared EOInterface \ - -Standards YES \ -Project EOInterface \ - -WordMap '{\ - FOUNDATION_EXPORT=extern;FOUNDATION_STATIC_INLINE="";\ - GS_GEOM_SCOPE=extern;GS_GEOM_ATTR="";\ - GS_EXPORT=extern;GS_DECLARE="";\ - GS_RANGE_SCOPE=extern;GS_RANGE_ATTR="";\ - GS_ZONE_SCOPE=extern;GS_ZONE_ATTR="";\ - }' -Up EOInterface + -Up EOInterface \ + $(GDL2_AGSDOC_FLAGS) -include Makefile.preamble -include ../common.make +include ../variable-processing.make -include GNUmakefile.local include $(GNUSTEP_MAKEFILES)/native-library.make diff --git a/EOModeler/GNUmakefile b/EOModeler/GNUmakefile index e37cb0c..b0759e0 100644 --- a/EOModeler/GNUmakefile +++ b/EOModeler/GNUmakefile @@ -27,6 +27,7 @@ include $(GNUSTEP_MAKEFILES)/common.make include ../Version +include ../common.make # The library to be compiled NATIVE_LIBRARY_NAME=EOModeler @@ -59,7 +60,7 @@ EOModelerEditor.h \ EODefines.h -include Makefile.preamble -include ../common.make +include ../variable-processing.make -include GNUmakefile.local diff --git a/GDL2Palette/GNUmakefile b/GDL2Palette/GNUmakefile index 0377c41..a95b6e5 100644 --- a/GDL2Palette/GNUmakefile +++ b/GDL2Palette/GNUmakefile @@ -25,7 +25,7 @@ include $(GNUSTEP_MAKEFILES)/common.make -include ../gdl2.make +include ../common.make PALETTE_NAME=GDL2 GDL2_PRINCIPAL_CLASS = GDL2Palette @@ -50,7 +50,7 @@ GDL2_OBJC_FILES= \ KeyWrapper.m \ DisplayGroupInspector.m -include ../common.make +include ../variable-processing.make PALETTE_LIBS=$(ADDITIONAL_OBJC_LIBS) include $(GNUSTEP_MAKEFILES)/palette.make diff --git a/Tools/GNUmakefile b/Tools/GNUmakefile index 6c71e41..cfbb669 100644 --- a/Tools/GNUmakefile +++ b/Tools/GNUmakefile @@ -27,6 +27,7 @@ include $(GNUSTEP_MAKEFILES)/common.make include ../Version +include ../common.make # The library to be compiled TOOL_NAME=gdlgsdoc eoutil @@ -65,15 +66,9 @@ gdl2gsdoc_AGSDOC_FILES = gdl2gsdoc.gsdoc $(gdl2gsdoc_AUTOGSDOC_HEADERS) #$(gdl2gsdoc_AUTOGSDOC_SOURCE) gdl2gsdoc_AGSDOC_FLAGS = \ -Declared gdlgsdoc \ - -Standards YES \ -Project gdl2gsdoc \ - -WordMap '{\ - FOUNDATION_EXPORT=extern;FOUNDATION_STATIC_INLINE="";\ - GS_GEOM_SCOPE=extern;GS_GEOM_ATTR="";\ - GS_EXPORT=extern;GS_DECLARE="";\ - GS_RANGE_SCOPE=extern;GS_RANGE_ATTR="";\ - GS_ZONE_SCOPE=extern;GS_ZONE_ATTR="";\ - }' -Up gdl2gsdoc + -Up gdl2gsdoc \ + $(GDL2_AGSDOC_FLAGS) eoutil_OBJC_FILES = eoutil.m @@ -82,7 +77,7 @@ eoutil_HEADER_FILES = -include Makefile.preamble -include ../common.make +include ../variable-processing.make -include GNUmakefile.local diff --git a/Version b/Version index c7d5bc0..f8af2f1 100644 --- a/Version +++ b/Version @@ -8,10 +8,10 @@ GNUSTEP_GCC=2.95.2 MAJOR_VERSION=0 MINOR_VERSION=10 SUBMINOR_VERSION=1 -GDL_VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${SUBMINOR_VERSION} -VERSION=${GDL_VERSION} +GDL2_VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${SUBMINOR_VERSION} +VERSION=${GDL2_VERSION} -GDL_FTP_MACHINE=ftp.gnustep.org -GDL_FTP_DIRECTORY=pub/gnustep/gdl2 -GDL_SNAP_FTP_MACHINE=ftp.gnustep.org -GDL_SNAP_FTP_DIRECTORY=pub/daily-snapshots +GDL2_FTP_MACHINE=ftp.gnustep.org +GDL2_FTP_DIRECTORY=pub/gnustep/gdl2 +GDL2_SNAP_FTP_MACHINE=ftp.gnustep.org +GDL2_SNAP_FTP_DIRECTORY=pub/daily-snapshots diff --git a/common.make b/common.make index 214d44c..7867a1b 100644 --- a/common.make +++ b/common.make @@ -1,6 +1,8 @@ -ifeq ($(FOUNDATION_LIB), apple) - ADDITIONAL_LIB_DIRS += $(foreach libdir,$(ADDITIONAL_NATIVE_LIB_DIRS),-F$(libdir)) -else - ADDITIONAL_LIB_DIRS += $(foreach libdir,$(ADDITIONAL_NATIVE_LIB_DIRS),-L$(libdir)/$(GNUSTEP_OBJ_DIR)) -endif +GDL2_AGSDOC_FLAGS = \ + -WordMap '{ \ + RCS_ID = "//"; \ + GDL2CONTROL_EXPORT = extern; \ + }' + +# -SystemProjects System \ diff --git a/config.h.in b/config.h.in index ca661d6..34f6c6d 100644 --- a/config.h.in +++ b/config.h.in @@ -38,7 +38,7 @@ #define RCS_ID(name) \ - static const char rcsId[] = name; \ - static const char *__rcsId_hack() {__rcsId_hack(); return rcsId;} + static const char RCSID[] = name; \ + static const char *getRCSID() { if (0) getRCSID(); return RCSID;} #endif /* __config_h__ */ diff --git a/variable-processing.make b/variable-processing.make new file mode 100644 index 0000000..97ef987 --- /dev/null +++ b/variable-processing.make @@ -0,0 +1,5 @@ +ifeq ($(FOUNDATION_LIB), apple) + ADDITIONAL_LIB_DIRS += $(foreach libdir,$(ADDITIONAL_NATIVE_LIB_DIRS),-F$(libdir)) +else + ADDITIONAL_LIB_DIRS += $(foreach libdir,$(ADDITIONAL_NATIVE_LIB_DIRS),-L$(libdir)/$(GNUSTEP_OBJ_DIR)) +endif