/*
- Copyright (C) 2000-2003 SKYRIX Software AG
+ Copyright (C) 2000-2004 SKYRIX Software AG
- This file is part of OGo
+ This file is part of OpenGroupware.org.
OGo is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id$
#ifndef __NGHttp_common_H__
#define __NGHttp_common_H__
#import <Foundation/Foundation.h>
#import <Foundation/NSHost.h>
#import <Foundation/NSUtilities.h>
+
#include <NGExtensions/NGExtensions.h>
#include <NGStreams/NGStreams.h>
#include <NGStreams/NGNet.h>
#include <NGMime/NGMime.h>
-#if LIB_FOUNDATION_LIBRARY
-# include <Foundation/exceptions/GeneralExceptions.h>
-#endif
-
#endif /* __NGHttp_common_H__ */
#import <Foundation/Foundation.h>
-#if LIB_FOUNDATION_LIBRARY
-# import <Foundation/exceptions/GeneralExceptions.h>
-#elif NeXT_Foundation_LIBRARY || APPLE_FOUNDATION_LIBRARY
+#if NeXT_Foundation_LIBRARY || APPLE_FOUNDATION_LIBRARY
# include <NGExtensions/NGObjectMacros.h>
# include <NGExtensions/NSString+Ext.h>
#endif
/*
- Copyright (C) 2000-2003 SKYRIX Software AG
+ Copyright (C) 2000-2004 SKYRIX Software AG
- This file is part of OGo
+ This file is part of OpenGroupware.org.
OGo is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id: common.h 4 2004-08-20 17:04:31Z helge $
#import <Foundation/Foundation.h>
-#if LIB_FOUNDATION_LIBRARY
-# import <Foundation/exceptions/GeneralExceptions.h>
-#elif NeXT_Foundation_LIBRARY || APPLE_FOUNDATION_LIBRARY
+#if NeXT_Foundation_LIBRARY || APPLE_FOUNDATION_LIBRARY
# include <NGExtensions/NGObjectMacros.h>
# include <NGExtensions/NSString+Ext.h>
#endif
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id$
#ifndef __WOXML_common_H__
#define __WOXML_common_H__
+2004-09-06 Helge Hess <helge.hess@opengroupware.org>
+
+ * NGByteBuffer.m, NGLocalSocketAddress.m, NGCharBuffer.m: fixed
+ exception handling to be the same on all Foundation libraries
+ (v4.3.45)
+
2004-08-29 Helge Hess <helge.hess@opengroupware.org>
* added hack to install the project in FHS locations - the library,
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id$
#include "NGByteBuffer.h"
#include "common.h"
#include <sys/time.h>
-#if LIB_FOUNDATION_LIBRARY
-# include <extensions/exceptions/GeneralExceptions.h>
-#endif
-
typedef struct NGByteBufferLA {
unsigned char byte;
char isEOF:1;
unsigned size = 0;
if (_la < 1) {
-#if LIB_FOUNDATION_LIBRARY
- [[[RangeException alloc]
- initWithReason:@"lookahead depth is less than one"
- size:1 index:_la]
- raise];
-#else
[NSException raise:NSRangeException
format:@"lookahead depth is less than one (%d)", _la];
-#endif
}
// Find first power of 2 >= to requested size
*(&idx) = (_la + self->headIdx) & self->sizeLessOne;
if (_la > self->sizeLessOne) {
-#if LIB_FOUNDATION_LIBRARY
- [[[RangeException alloc]
- initWithReason:@"tried to look ahead too far"
- size:self->bufLen
- index:_la]
- raise];
-#else
[NSException raise:NSRangeException
format:@"tried to look ahead too far (la=%d, max=%d)",
_la, self->bufLen];
-#endif
}
if (self->wasEOF) {
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id$
+// $Id: NGCharBuffer.m 4 2004-08-20 17:04:31Z helge $
#include "NGCharBuffer.h"
#include "common.h"
-#if LIB_FOUNDATION_LIBRARY
-# include <extensions/exceptions/GeneralExceptions.h>
-#endif
-
typedef struct NGCharBufferLA {
unichar character;
char isEOF:1;
int size = 0;
if (_la < 1) {
-#if LIB_FOUNDATION_LIBRARY
- [[[RangeException alloc]
- initWithReason:@"LA is less than one"
- size:1 index:_la]
- raise];
-#else
[NSException raise:NSRangeException
format:@"lookahead depth is less than one (%d)", _la];
-#endif
}
// Find first power of 2 >= to requested size
return character;
}
-// LA
+/* LA */
- (int)la:(int)_la {
int result = -1;
idx = *(&idx);
if (_la > self->sizeLessOne) {
-#if LIB_FOUNDATION_LIBRARY
- [[[RangeException alloc]
- initWithReason:@"LA out of bounds"
- size:self->bufLen
- index:_la]
- raise];
-#else
[NSException raise:NSRangeException
format:@"tried to look ahead too far (la=%d, max=%d)",
_la, self->bufLen];
-#endif
}
if (self->wasEOF) {
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id$
+// $Id: NGLocalSocketAddress.m 4 2004-08-20 17:04:31Z helge $
#if !defined(WIN32) || defined(__CYGWIN32__)
#include "NGLocalSocketDomain.h"
#import <Foundation/NSString.h>
-#if LIB_FOUNDATION_LIBRARY
-# include <extensions/exceptions/GeneralExceptions.h>
-#endif
-
#include "config.h"
#if defined(__APPLE__) || defined(__FreeBSD__)
sizeof(((struct sockaddr_un *)self->address)->sun_path),
[_path cStringLength],
_path);
-#if LIB_FOUNDATION_LIBRARY
- [[[InvalidArgumentException alloc] initWithReason:
- @"path to long as local domain socket address !"] raise];
-#else
[NSException raise:NSInvalidArgumentException
format:@"path to long as local domain socket address !"];
-#endif
[self release];
return nil;
}
# $Id: Version 4 2004-08-20 17:04:31Z helge $
-SUBMINOR_VERSION:=44
+SUBMINOR_VERSION:=45
+2004-09-06 Helge Hess <helge.hess@opengroupware.org>
+
+ * EOAttribute+PostgreSQL72.m: use same exception handling on all
+ Foundations (v1.1.37)
+
2004-08-29 Helge Hess <helge.hess@opengroupware.org>
* added hack to install the project in FHS locations - the DB adaptor
else {
NSLog(@"%s: invalid argument %@", __PRETTY_FUNCTION__, _type);
-#if LIB_FOUNDATION_LIBRARY
- [InvalidArgumentException raise:@"InvalidArgumentException"
- format:
- @"invalid PostgreSQL72 type %@ passed to "
- @"-loadValueClassForExternalPostgreSQLType:",
- _type];
-#else
[NSException raise:@"InvalidArgumentException"
format:
@"invalid PostgreSQL72 type %@ passed to "
@"-loadValueClassForExternalPostgreSQLType:",
_type];
-#endif
}
}
# $Id: Version 1 2004-08-20 10:38:46Z znek $
-SUBMINOR_VERSION:=36
+SUBMINOR_VERSION:=37
/*
common.h
- Copyright (C) 1999 MDlink online service center GmbH and Helge Hess
Copyright (C) 2000-2004 SKYRIX Software AG and Helge Hess
+ Copyright (C) 1999 MDlink online service center GmbH and Helge Hess
Author: Helge Hess (helge.hess@opengroupware.org)
#import <Foundation/Foundation.h>
-#if LIB_FOUNDATION_LIBRARY
-# import <Foundation/exceptions/GeneralExceptions.h>
-#else
+#if !LIB_FOUNDATION_LIBRARY
# include <NGExtensions/NGObjectMacros.h>
# include <NGExtensions/NSString+Ext.h>
#endif
-#import <GDLAccess/GDLAccess.h>
+#include <GDLAccess/GDLAccess.h>
#endif /* ___PostgreSQL_common_H___ */