| 1 |
typedef int SLONG __attribute__((mode (__SI__))); |
| 2 |
|
| 3 |
typedef char SCHAR; |
| 4 |
typedef short SSHORT; |
| 5 |
typedef char TEXT; |
| 6 |
typedef long ISC_STATUS; |
| 7 |
const SLONG gds_arg_string = 2; |
| 8 |
const SLONG gds_sys_request = 335544373L; |
| 9 |
enum jrd_blk_t |
| 10 |
{ |
| 11 |
type_str, type_dcc, type_sbm, type_smb, type_blb, type_irb, type_jrn |
| 12 |
}; |
| 13 |
struct blk |
| 14 |
{ |
| 15 |
}; |
| 16 |
template < class RPT, SSHORT BLOCK_TYPE = 0 > class pool_alloc_rpt:public blk |
| 17 |
{ |
| 18 |
}; |
| 19 |
class jrn:public pool_alloc_rpt < SCHAR, type_jrn > |
| 20 |
{ |
| 21 |
public:ISC_STATUS * jrn_status_vector; |
| 22 |
TEXT jrn_server[1]; |
| 23 |
}; |
| 24 |
typedef jrn *JRN; |
| 25 |
extern void IBERR_build_status (ISC_STATUS *, ISC_STATUS, ...); |
| 26 |
static void |
| 27 |
error (ISC_STATUS * status_vector, JRN journal, int status, TEXT * string) |
| 28 |
{ |
| 29 |
IBERR_build_status (status_vector, gds_sys_request, gds_arg_string, string, |
| 30 |
gds_arg_string, (journal) ? journal->jrn_server : "", |
| 31 |
0); |
| 32 |
} |