Tolto supporto cisam
git-svn-id: svn://10.65.10.50/trunk@1178 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									b71a13da62
								
							
						
					
					
						commit
						d94d535681
					
				| @ -32,78 +32,14 @@ | |||||||
| #ifndef __CCUSTIO_H | #ifndef __CCUSTIO_H | ||||||
| #include        "ccustio.h" | #include        "ccustio.h" | ||||||
| #endif | #endif | ||||||
| #include "/usr/include/isam.h" | #ifndef __CISAM_H | ||||||
|  | #include        "cisam.h" | ||||||
|  | #endif | ||||||
| 
 | 
 | ||||||
| #define NOFLDS 10 | #define NOFLDS 10 | ||||||
| #define MOSTMEM  51200 | #define MOSTMEM  51200 | ||||||
| #define LEASTMEM 10240 | #define LEASTMEM 10240 | ||||||
| #define MaxFields               100 |  | ||||||
| #define MKFields                10 |  | ||||||
| #define MaxKeys                 8 |  | ||||||
| #define MAXKEYS  8 |  | ||||||
| 
 | 
 | ||||||
| typedef char    FieldName[12] ; |  | ||||||
| 
 |  | ||||||
| typedef struct |  | ||||||
| { |  | ||||||
|   char                                  SysName[42] __PACKED__ ; |  | ||||||
|   RecNoType                             EOD __PACKED__ ; |  | ||||||
|   RecNoType                             EOX __PACKED__ ; |  | ||||||
|   unsigned short                        LenR __PACKED__ ; |  | ||||||
|   RecNoType                             Flags __PACKED__ ; |  | ||||||
|   char                                  Des[42] __PACKED__ ; |  | ||||||
|   char                                  FCalc[32] __PACKED__ ; |  | ||||||
|   char                                  GenPrompt[32] __PACKED__ ; |  | ||||||
| } FileDes; |  | ||||||
| 
 |  | ||||||
| typedef struct |  | ||||||
| { |  | ||||||
|   FieldName                             Name __PACKED__ ; |  | ||||||
|   byte                                          TypeF __PACKED__; |  | ||||||
|   byte                                          Len __PACKED__ ; |  | ||||||
|   byte                                          Dec __PACKED__ ; |  | ||||||
| #ifdef __PACK_1__ |  | ||||||
|   byte                                          junk __PACKED__ ; |  | ||||||
| #endif |  | ||||||
|   unsigned short                                RecOff __PACKED__ ; |  | ||||||
| } RecFieldDes ; |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| typedef struct |  | ||||||
| { |  | ||||||
|   word DupKeys __ALIGNED__ ; |  | ||||||
|   byte NkFields __ALIGNED__ ; |  | ||||||
|   byte FieldSeq[MKFields] __PACKED__ ; |  | ||||||
|   byte FromCh[MKFields] __PACKED__ ; |  | ||||||
|   byte ToCh[MKFields] __PACKED__ ; |  | ||||||
| } KeyDes ; |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| typedef struct |  | ||||||
| { |  | ||||||
|   short                                         NFields __PACKED__ ; |  | ||||||
|   RecFieldDes                   Fd[MaxFields] __PACKED__ ; |  | ||||||
|   byte                                          SortFd[MaxFields] __PACKED__ ; |  | ||||||
|   short                                         NKeys __PACKED__ ; |  | ||||||
|   KeyDes                                        Ky[MaxKeys] __PACKED__ ; |  | ||||||
| }       RecDes ; |  | ||||||
| 
 |  | ||||||
| typedef struct |  | ||||||
| { |  | ||||||
|   int            i; |  | ||||||
|   FileDes        *d; |  | ||||||
|   RecDes         *r; |  | ||||||
|   RecNoType      RecNo; |  | ||||||
|   short          ln; |  | ||||||
|   short          ft; |  | ||||||
|   short          knum; |  | ||||||
|   short          newkey; |  | ||||||
|   int            mode; |  | ||||||
|   struct keydesc k[MAXKEYS + 1]; |  | ||||||
| } isdef ; |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| typedef isdef* isfdptr; |  | ||||||
| struct s_prm { | struct s_prm { | ||||||
|   int rc_len; |   int rc_len; | ||||||
|   struct { |   struct { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user