mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 07:23:03 +01:00
103 lines
2.4 KiB
C
103 lines
2.4 KiB
C
/*
|
|
* PROGRAM: Language Preprocessor
|
|
* MODULE: pat.h
|
|
* DESCRIPTION: Code generator pattern generator
|
|
*
|
|
* The contents of this file are subject to the Interbase Public
|
|
* License Version 1.0 (the "License"); you may not use this file
|
|
* except in compliance with the License. You may obtain a copy
|
|
* of the License at http://www.Inprise.com/IPL.html
|
|
*
|
|
* Software distributed under the License is distributed on an
|
|
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
|
|
* or implied. See the License for the specific language governing
|
|
* rights and limitations under the License.
|
|
*
|
|
* The Original Code was created by Inprise Corporation
|
|
* and its predecessors. Portions created by Inprise Corporation are
|
|
* Copyright (C) Inprise Corporation.
|
|
*
|
|
* All Rights Reserved.
|
|
* Contributor(s): ______________________________________.
|
|
*/
|
|
|
|
#ifndef GPRE_PAT_H
|
|
#define GPRE_PAT_H
|
|
|
|
/*
|
|
Substitution codes:
|
|
|
|
RH Request handle
|
|
RL Request level
|
|
|
|
DH Database handle
|
|
DF Database filename
|
|
|
|
TH Transaction handle
|
|
|
|
BH Blob handle
|
|
BI Blob ident
|
|
|
|
FH Form handle
|
|
|
|
V1 Start vector (1)
|
|
V2 Start vector (2)
|
|
I1 Identifier 1
|
|
I2 Identifier 2
|
|
RF Pass by ref modifier
|
|
S1 Arbitrary string
|
|
S2 Arbitrary string
|
|
S3 Arbitrary string
|
|
S4 Arbitrary string
|
|
S5 Arbitrary string
|
|
S6 Arbitrary string
|
|
S7 Arbitrary string
|
|
N1 Arbitrary number (signed SSHORT)
|
|
N2 Arbitrary number (signed SSHORT)
|
|
N3 Arbitrary number (signed SSHORT)
|
|
N4 Arbitrary number (signed SSHORT)
|
|
L1 Arbitrary number (signed SLONG)
|
|
L2 Arbitrary number (signed SLONG)
|
|
PN Port message number
|
|
PL Port length
|
|
PI Port ident
|
|
QN Second port message number
|
|
QL Second port length
|
|
QI Second port ident
|
|
|
|
*/
|
|
|
|
struct pat
|
|
{
|
|
const gpre_dbb* pat_database;
|
|
const gpre_req* pat_request;
|
|
//gpre_tra* pat_transaction; CVC: unused
|
|
const blb* pat_blob;
|
|
const gpre_port* pat_port;
|
|
const gpre_port* pat_port2;
|
|
const TEXT* pat_string1;
|
|
const TEXT* pat_string2;
|
|
const TEXT* pat_string3;
|
|
const TEXT* pat_string4;
|
|
const TEXT* pat_string5;
|
|
const TEXT* pat_string6;
|
|
const TEXT* pat_string7;
|
|
USHORT pat_ident1;
|
|
USHORT pat_ident2;
|
|
const TEXT* pat_vector1;
|
|
const TEXT* pat_vector2;
|
|
int pat_value1;
|
|
int pat_value2;
|
|
int pat_value3;
|
|
int pat_value4;
|
|
SLONG pat_long1;
|
|
SLONG pat_long2;
|
|
bool pat_condition;
|
|
const ref* pat_reference;
|
|
};
|
|
|
|
typedef pat PAT;
|
|
|
|
#endif // GPRE_PAT_H
|
|
|