blob: 087063418d9aa14dbf881a5ece8ed3044454feed (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
--- frontbase.c.orig 2006-04-15 07:57:23.000000000 +1000
+++ frontbase.c 2008-05-29 12:55:37.000000000 +1000
@@ -9,57 +9,10 @@
#include "ruby.h"
-#if defined(__APPLE__)
-#include "/Library/FrontBase/include/FBCAccess/FBCAccess.h"
-#else
-#warning I don't know where FBCAccess.h is installed on non-OSX platforms
-#include "/Library/FrontBase/include/FBCAccess/FBCAccess.h"
-#endif
+#include "/usr/local/include/FBCAccess/FBCAccess.h"
#pragma mark --- structure definitions ---
-typedef struct FBCLob
-{
- unsigned char kind; // 0 => direct, 1 => indirect
- char handleAsString[28]; // @'<24 hex digits>'\0
-} FBCLob;
-
-typedef union FBCColumn FBCColumn;
-
-union FBCColumn
-{
- char tinyInteger;
- short shortInteger;
- int integer;
- int primaryKey;
- long long longInteger;
- unsigned char boolean;
- char character[0x7fffffff];
- double numeric;
- double real;
- double decimal;
- FBCBitValue bit;
- char date[11]; // YYYY-MM-DD
- int unformattedDate;
- char time[9]; // HH:MM:SS
- char timeTZ[34]; // YYYY-MM-DD HH:MM:SS.sssss+HH:MM
- char timestampTZ[34];
- char timestamp[28];
- char yearMonth[64];
- char dayTime[32]; // days:hh:ss.ffffff
- FBCLob blob;
- FBCLob clob;
- double rawDate;
- FBCUnformattedTime rawTime;
- FBCUnformattedTime rawTimeTZ;
- FBCUnformattedTime rawTimestamp;
- FBCUnformattedTime rawTimestampTZ;
- int rawYearMonth;
- double rawDayTime;
-};
-
-typedef FBCColumn* FBCRow;
-
struct fbsqlconnect
{
int port;
|