mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-06-02 02:01:31 +00:00
123 lines
3.8 KiB
Mathematica
123 lines
3.8 KiB
Mathematica
|
/**
|
||
|
Postgres95Private.m <title>Postgres95Private: various definitions</title>
|
||
|
|
||
|
Copyright (C) 2005 Free Software Foundation, Inc.
|
||
|
|
||
|
Date: Jan 2005
|
||
|
|
||
|
$Revision$
|
||
|
$Date$
|
||
|
|
||
|
<abstract></abstract>
|
||
|
|
||
|
This file is part of the GNUstep Database Library.
|
||
|
|
||
|
<license>
|
||
|
This library is free software; you can redistribute it and/or
|
||
|
modify it under the terms of the GNU Library General Public
|
||
|
License as published by the Free Software Foundation; either
|
||
|
version 2 of the License, or (at your option) any later version.
|
||
|
|
||
|
This library is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
Library General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU Library General Public
|
||
|
License along with this library; see the file COPYING.LIB.
|
||
|
If not, write to the Free Software Foundation,
|
||
|
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||
|
</license>
|
||
|
**/
|
||
|
|
||
|
#include "config.h"
|
||
|
|
||
|
RCS_ID("$Id$")
|
||
|
|
||
|
#include <Foundation/Foundation.h>
|
||
|
|
||
|
#ifndef GNUSTEP
|
||
|
#include <GNUstepBase/GNUstep.h>
|
||
|
#include <GNUstepBase/GSCategories.h>
|
||
|
#endif
|
||
|
|
||
|
#include <EOControl/EONull.h>
|
||
|
#include <EOAccess/EOAttribute.h>
|
||
|
|
||
|
#include "Postgres95Values.h"
|
||
|
|
||
|
// ==== Classes ====
|
||
|
Class PSQLA_NSStringClass=Nil;
|
||
|
Class PSQLA_NSNumberClass=Nil;
|
||
|
Class PSQLA_NSDecimalNumberClass=Nil;
|
||
|
Class PSQLA_NSCalendarDateClass=Nil;
|
||
|
Class PSQLA_NSDateClass=Nil;
|
||
|
Class PSQLA_NSMutableArrayClass;
|
||
|
Class PSQLA_EOAttributeClass=Nil;
|
||
|
Class PSQLA_Postgres95ValuesClass=Nil;
|
||
|
|
||
|
// ==== IMPs ====
|
||
|
IMP PSQLA_NSNumber_allocWithZoneIMP=NULL;
|
||
|
IMP PSQLA_NSDecimalNumber_allocWithZoneIMP=NULL;
|
||
|
IMP PSQLA_NSString_allocWithZoneIMP=NULL;
|
||
|
IMP PSQLA_NSCalendarDate_allocWithZoneIMP=NULL;
|
||
|
IMP PSQLA_NSMutableArray_allocWithZoneIMP=NULL;
|
||
|
IMP PSQLA_EOAttribute_allocWithZoneIMP=NULL;
|
||
|
IMP PSQLA_Postgres95Values_newValueForBytesLengthAttributeIMP=NULL;
|
||
|
|
||
|
// ==== Constants ====
|
||
|
NSNumber *PSQLA_NSNumberBool_Yes=nil;
|
||
|
NSNumber *PSQLA_NSNumberBool_No=nil;
|
||
|
|
||
|
EONull *PSQLA_EONull=nil;
|
||
|
NSArray *PSQLA_NSArray=nil;
|
||
|
NSString *PSQLA_postgresCalendarFormat=@"%Y-%m-%d %H:%M:%S%z";
|
||
|
|
||
|
// ==== Init Method ====
|
||
|
void
|
||
|
PSQLA_PrivInit(void)
|
||
|
{
|
||
|
static BOOL initialized=NO;
|
||
|
if (!initialized)
|
||
|
{
|
||
|
// ==== Classes ====
|
||
|
PSQLA_NSMutableArrayClass=[NSMutableArray class];
|
||
|
PSQLA_NSStringClass=[NSString class];
|
||
|
PSQLA_NSNumberClass=[NSNumber class];
|
||
|
PSQLA_NSDecimalNumberClass=[NSDecimalNumber class];
|
||
|
PSQLA_NSCalendarDateClass=[NSCalendarDate class];
|
||
|
PSQLA_EOAttributeClass = [EOAttribute class];
|
||
|
PSQLA_Postgres95ValuesClass = [Postgres95Values class];
|
||
|
|
||
|
// ==== IMPs ====
|
||
|
PSQLA_NSNumber_allocWithZoneIMP=
|
||
|
[PSQLA_NSNumberClass methodForSelector:@selector(allocWithZone:)];
|
||
|
|
||
|
PSQLA_NSDecimalNumber_allocWithZoneIMP=
|
||
|
[PSQLA_NSDecimalNumberClass methodForSelector:@selector(allocWithZone:)];
|
||
|
|
||
|
PSQLA_NSString_allocWithZoneIMP=
|
||
|
[PSQLA_NSStringClass methodForSelector:@selector(allocWithZone:)];
|
||
|
|
||
|
PSQLA_NSCalendarDate_allocWithZoneIMP=
|
||
|
[PSQLA_NSCalendarDateClass methodForSelector:@selector(allocWithZone:)];
|
||
|
|
||
|
PSQLA_NSMutableArray_allocWithZoneIMP=
|
||
|
[PSQLA_NSMutableArrayClass methodForSelector:@selector(allocWithZone:)];
|
||
|
|
||
|
PSQLA_EOAttribute_allocWithZoneIMP=
|
||
|
[PSQLA_EOAttributeClass methodForSelector:@selector(allocWithZone:)];
|
||
|
|
||
|
PSQLA_Postgres95Values_newValueForBytesLengthAttributeIMP=
|
||
|
[PSQLA_Postgres95ValuesClass methodForSelector:@selector(newValueForBytes:length:attribute:)];
|
||
|
|
||
|
// ==== Constants ====
|
||
|
ASSIGN(PSQLA_NSNumberBool_Yes,[PSQLA_NSNumberClass numberWithBool:YES]);
|
||
|
ASSIGN(PSQLA_NSNumberBool_No,[PSQLA_NSNumberClass numberWithBool:NO]);
|
||
|
|
||
|
ASSIGN(PSQLA_EONull,[EONull null]);
|
||
|
ASSIGN(PSQLA_NSArray,[NSArray array]);
|
||
|
|
||
|
};
|
||
|
}
|