// efficient hash for dictionaries is done in the concrete
// dictionaries implementation; dictionaries are allocated
// from EOPrimaryKeyDictionary concrete subclasses
- return ((unsigned)(rec->entity) >> 4) +
+ return ((unsigned long)(rec->entity) >> 4L) +
((EOPrimaryKeyDictionary*)(rec->pkey))->fastHash;
}
$(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
endif
+ifeq ($(findstring _64, $(GNUSTEP_TARGET_CPU)), _64)
+SYSTEM_LIB_DIR += -L/usr/local/lib64 -L/usr/lib64
+else
SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
+endif
# platform specific settings
ifneq ($(FHS_INSTALL_ROOT),)
FHS_INCLUDE_DIR=$(FHS_INSTALL_ROOT)/include/
-FHS_LIB_DIR=$(FHS_INSTALL_ROOT)/lib/
FHS_BIN_DIR=$(FHS_INSTALL_ROOT)/bin/
+ifeq ($(findstring _64, $(GNUSTEP_TARGET_CPU)), _64)
+SYSTEM_LIB_DIR += -L/usr/local/lib64
+else
+SYSTEM_LIB_DIR += -L/usr/local/lib
+endif
+
NONFHS_LIBDIR="$(GNUSTEP_LIBRARIES)/$(GNUSTEP_TARGET_LDIR)/"
NONFHS_LIBNAME="$(LIBRARY_NAME)$(LIBRARY_NAME_SUFFIX)$(SHARED_LIBEXT)"
NONFHS_BINDIR="$(GNUSTEP_TOOLS)/$(GNUSTEP_TARGET_LDIR)"
$(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
endif
+
+ifeq ($(findstring _64, $(GNUSTEP_TARGET_CPU)), _64)
+SYSTEM_LIB_DIR += -L/usr/local/lib64 -L/usr/lib64
+else
SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
+endif
+
if (isDebuggingEnabled) {
NSLog(@"MySQL4 channel 0x%p opened (connection=0x%p,%s)",
- (unsigned)self, self->_connection, cDBName);
+ self, self->_connection, cDBName);
}
return YES;
}
ms = [NSMutableString stringWithCapacity:64];
[ms appendFormat:@"<%@[0x%p] connection=0x%p",
- NSStringFromClass([self class]),
- self,
- (unsigned)self->_connection];
+ NSStringFromClass([self class]), self, self->_connection];
[ms appendString:@">"];
return ms;
}
- (NSString *)_mySQL4StripEndSpaces {
NSCharacterSet *spaceSet;
NSMutableString *str;
- IMP charAtIndex;
+ unichar (*charAtIndex)(id, SEL, int);
NSRange range;
if ([self length] == 0)
spaceSet = [NSCharacterSet whitespaceCharacterSet];
str = [NSMutableString stringWithCapacity:[self length]];
- charAtIndex = [self methodForSelector:@selector(characterAtIndex:)];
+ charAtIndex = (unichar (*)(id, SEL, int))
+ [self methodForSelector:@selector(characterAtIndex:)];
range.length = 0;
for (range.location = ([self length] - 1);
range.location++, range.length++) {
unichar c;
- c = (unichar)(int)charAtIndex(self, @selector(characterAtIndex:),
- range.location);
+ c = charAtIndex(self, @selector(characterAtIndex:), range.location);
if (![spaceSet characterIsMember:c])
break;
}
ifneq ($(FHS_INSTALL_ROOT),)
-FHS_LIB_DIR=$(FHS_INSTALL_ROOT)/lib/
+ifeq ($(findstring _64, $(GNUSTEP_TARGET_CPU)), _64)
+SYSTEM_LIB_DIR += -L/usr/local/lib64
+else
+SYSTEM_LIB_DIR += -L/usr/local/lib
+endif
+
+
FHS_DB_DIR=$(FHS_LIB_DIR)sope-$(SOPE_MAJOR_VERSION).$(SOPE_MINOR_VERSION)/dbadaptors/
fhs-db-dirs ::
$(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
endif
-SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
+ifeq ($(findstring _64, $(GNUSTEP_TARGET_CPU)), _64)
+SYSTEM_LIB_DIR += -L/usr/local/lib64 -L/usr/lib64
+else
+SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
+endif
# TODO: not necessary? covered by pg_config?
#ifeq ($(FOUNDATION_LIB),apple)
ifneq ($(FHS_INSTALL_ROOT),)
-FHS_LIB_DIR=$(FHS_INSTALL_ROOT)/lib/
+ifeq ($(findstring _64, $(GNUSTEP_TARGET_CPU)), _64)
+SYSTEM_LIB_DIR += -L/usr/local/lib64
+else
+SYSTEM_LIB_DIR += -L/usr/local/lib
+endif
+
FHS_DB_DIR=$(FHS_LIB_DIR)sope-$(SOPE_MAJOR_VERSION).$(SOPE_MINOR_VERSION)/dbadaptors/
fhs-db-dirs ::
$(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
endif
+ifeq ($(findstring _64, $(GNUSTEP_TARGET_CPU)), _64)
+SYSTEM_LIB_DIR += -L/usr/local/lib64 -L/usr/lib64
+else
SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
+endif
}
- (NSString *)_sqlite3StripEndSpaces {
- if ([self length] > 0) {
- NSCharacterSet *spaceSet = [NSCharacterSet whitespaceCharacterSet];
- NSMutableString *str = [NSMutableString stringWithCapacity:[self length]];
- IMP charAtIndex;
+ if ([self isNotEmpty]) {
+ NSCharacterSet *spaceSet;
+ NSMutableString *str;
+ unichar (*charAtIndex)(id, SEL, int);
NSRange range;
- charAtIndex = [self methodForSelector:@selector(characterAtIndex:)];
+ spaceSet = [NSCharacterSet whitespaceCharacterSet];
+ str = [NSMutableString stringWithCapacity:[self length]];
+ charAtIndex = (unichar (*)(id, SEL, int))
+ [self methodForSelector:@selector(characterAtIndex:)];
range.length = 0;
for (range.location = ([self length] - 1);
if (isDebuggingEnabled) {
NSLog(@"SQLite channel 0x%p opened (connection=0x%p,%s)",
- (unsigned)self, self->_connection, cDBName);
+ self, self->_connection, cDBName);
}
return YES;
}
ms = [NSMutableString stringWithCapacity:64];
[ms appendFormat:@"<%@[0x%p] connection=0x%p",
NSStringFromClass([self class]),
- self,
- (unsigned)self->_connection];
+ self, self->_connection];
[ms appendString:@">"];
return ms;
}
ifneq ($(FHS_INSTALL_ROOT),)
-FHS_LIB_DIR=$(FHS_INSTALL_ROOT)/lib/
+ifeq ($(findstring _64, $(GNUSTEP_TARGET_CPU)), _64)
+SYSTEM_LIB_DIR += -L/usr/local/lib64
+else
+SYSTEM_LIB_DIR += -L/usr/local/lib
+endif
+
FHS_DB_DIR=$(FHS_LIB_DIR)sope-$(SOPE_MAJOR_VERSION).$(SOPE_MINOR_VERSION)/dbadaptors/
fhs-db-dirs ::