146 lines
5.7 KiB
C
Executable File
146 lines
5.7 KiB
C
Executable File
/******************************************************************************
|
|
*
|
|
* Query global defines
|
|
*
|
|
* Module %M% Version %I% Date %H%
|
|
*
|
|
* (c) Copyright 1998 Ardent Software Inc. - All Rights Reserved
|
|
* This is unpublished proprietary source code of Ardent Software Inc.
|
|
* The copyright notice above does not evidence any actual or intented
|
|
* publication of such source code.
|
|
*
|
|
*******************************************************************************
|
|
*
|
|
* Maintenence log - insert most recent change descriptions at top
|
|
*
|
|
* Date.... GTAR WHO Description...............................
|
|
* 10/14/98 23801 SAP Change copyrights.
|
|
* 01/06/95 15492 GMH Add AUX.PORT support
|
|
* 08/10/94 14619 EAP Added NOSPLITFLG macro
|
|
* 03/11/94 13245 RM Re-work rforsel/rforsrt/rforlst optimizations
|
|
* 02/15/94 12998 PVW NF2 design specification step 5 - SQL UNNEST clause
|
|
* 02/15/94 12998 PVW NF2 design specification step 5 - SQL UNNEST clause
|
|
* 02/04/94 12867 PVW NF2 design specification step 4 - SQL WHEN clause
|
|
* 01/14/94 12846 WLG Added NESTFLD definition
|
|
* 12/03/93 12412 PVW NF2 design specification step 2 - normalization
|
|
* 03/02/93 11070 RM Move flag vars into a BITMAP
|
|
* 07/28/92 9702 RM added NOOPTIM to fblock
|
|
* 07/14/92 9855 DPB Multi-file support
|
|
* 06/15/92 9662 JSM Moved QFDESC into qfilenode
|
|
* 05/13/92 9513 JSM Added MULTKEY
|
|
* 05/06/92 9481 RDM New module for re-entrant query engine
|
|
* DPB
|
|
*
|
|
******************************************************************************/
|
|
|
|
/* fblock */
|
|
#define WITHINNAME Qblock->fb->Withinname
|
|
#define WITHINLVL Qblock->fb->Withinlvl
|
|
#define LABCOL Qblock->fb->Labcol
|
|
#define LABOPT Qblock->fb->Labopt
|
|
#define LLINE Qblock->fb->Lline
|
|
#define QVERB Qblock->fb->Qverb
|
|
#define PRTFNS Qblock->fb->prtfns
|
|
#define MULTKEY Qblock->fb->multkey
|
|
#define QTMACHINE Qblock->fb->qtMACHINE
|
|
#define BPOINTS Qblock->fb->Bpoints
|
|
#define QTSELECT Qblock->fb->Qtselect
|
|
#define TENDOZEN Qblock->fb->ten_dozen
|
|
#define QTDESC Qblock->fb->Qtdesc
|
|
#define GBREAK Qblock->fb->Gbreak
|
|
#define HEADB Qblock->fb->headb
|
|
#define BRKLIST Qblock->fb->brklist
|
|
#define STMPSTR Qblock->fb->s_tmpstr
|
|
#define HEADEXT Qblock->fb->Headext
|
|
#define FOOTEXT Qblock->fb->Footext
|
|
#define OUTHEAD Qblock->fb->Outhead
|
|
#define CSPACES Qblock->fb->Cspaces
|
|
#define LPTRNUM Qblock->fb->Lptrnum
|
|
#define MARGINFLG Qblock->fb->Margin
|
|
#define PMARGIN Qblock->fb->Pmargin
|
|
#define FRMFEEDFLG Qblock->fb->Frmfeed
|
|
#define COUNTSUPFLG Qblock->fb->Countsup
|
|
#define LNOSUP Qblock->fb->Lnosup
|
|
#define COLSPCFLG Qblock->fb->Colspc
|
|
#define STATW Qblock->fb->Statw
|
|
#define PRTWID Qblock->fb->Prtwid
|
|
/* fblock booleans */
|
|
#define EXPLAINFLG Qblock->fb->fbit.explain
|
|
#define LABELS Qblock->fb->fbit.Labels
|
|
#define DIDOUTPUT Qblock->fb->fbit.didoutput
|
|
#define TAPEFLG Qblock->fb->fbit.tapeflg
|
|
#define WITHINFLG Qblock->fb->fbit.withinflg
|
|
#define LBLOPT Qblock->fb->fbit.lblopt
|
|
#define IDGOT Qblock->fb->fbit.Idgot
|
|
#define ONLYFLG Qblock->fb->fbit.Only
|
|
#define AUXPORTFLG Qblock->fb->fbit.auxport
|
|
#define QPRINTER Qblock->fb->fbit.Qprinter
|
|
#define SORTING Qblock->fb->fbit.sorting
|
|
#define PCTSEEN Qblock->fb->fbit.pctseen
|
|
#define NOOPTIM Qblock->fb->fbit.nooptim
|
|
#define QPAGEFLG Qblock->fb->fbit.Qpageflg
|
|
#define DBLSPCFLG Qblock->fb->fbit.Dblspc
|
|
#define DETSUPFLG Qblock->fb->fbit.Detsup
|
|
#define VERTICLE Qblock->fb->fbit.Verticle
|
|
#define COLSUPFLG Qblock->fb->fbit.Colsup
|
|
#define HDRSUPFLG Qblock->fb->fbit.Hdrsup
|
|
#define FORCEFLG Qblock->fb->fbit.force
|
|
#define NOPAGEFLG Qblock->fb->fbit.Nopage
|
|
#define HEADED Qblock->fb->fbit.Headed
|
|
#define FOOTED Qblock->fb->fbit.Footed
|
|
#define ROLL Qblock->fb->fbit.Roll
|
|
#define BKLUDGE Qblock->fb->fbit.bkludge
|
|
#define NOSPLITFLG Qblock->fb->fbit.nosplit
|
|
/* qblock */
|
|
#define NFILES Curblock->nfiles
|
|
#define QFILEPTR Curblock->qfileptr
|
|
#define LISTFLDS Curblock->listflds
|
|
#define GROUPFLDS Curblock->groupflds
|
|
#define ROOTSEL Curblock->Rootsel
|
|
#define WHENSEL Curblock->Whensel
|
|
#define BYXWHEN Curblock->Byxwhen
|
|
#define ASSOCW Curblock->assocw
|
|
#define ASSOCNT Curblock->assocnt
|
|
#define ASSOCNP Curblock->assocnp
|
|
#define SELSTAR Curblock->selstar
|
|
#define WHNCNT Curblock->whncnt
|
|
#define RECCNT Curblock->reccnt
|
|
#define SAMCNT Curblock->samcnt
|
|
#define SAMPLE Curblock->Sample
|
|
#define NICOUNTER Curblock->NI_counter
|
|
#define NSCOUNTER Curblock->NS_counter
|
|
#define NDCOUNTER Curblock->ND_counter
|
|
#define ASSOCMV Curblock->assocmv
|
|
#define ASSOCSK Curblock->assocsk
|
|
#define ASSOCSMV Curblock->assocsmv
|
|
#define ASSOCSSK Curblock->assocssk
|
|
#define CSTOTB Curblock->Cstotb
|
|
#define CHKSUMV Curblock->Chksum
|
|
#define CSBITC Curblock->Csbitc
|
|
#define FIRSTN Curblock->Firstn
|
|
#define ASSOCA Curblock->assoca
|
|
#define ASSOCL Curblock->assocl
|
|
#define SORTLIST Curblock->sortlist
|
|
#define AFILE Curblock->Afile
|
|
#define ERRSCNI Curblock->ERRscni
|
|
#define ERRKPTR Curblock->ERRkptr
|
|
#define GROUPING Curblock->grouping
|
|
/* qfilenode */
|
|
#define NOIDXFLG Curblock->qfileptr->noidx
|
|
#define REQIDXFLG Curblock->qfileptr->reqidx
|
|
#define QFSELECT Curblock->qfileptr->Qfselect
|
|
#define QFDESC Curblock->qfileptr->Qfdesc
|
|
#define EXPLICIT Curblock->qfileptr->explicit
|
|
#define REQUIRED Curblock->qfileptr->required
|
|
#define EVALFLDS Curblock->qfileptr->evalflds
|
|
#define ASKIDS Curblock->qfileptr->askids
|
|
#define QSKEYLST Curblock->qfileptr->Qskeylst
|
|
#define QDATA Curblock->qfileptr->fptr
|
|
#define NESTASSOC Curblock->qfileptr->nestassoc
|
|
#define NESTFLD Curblock->qfileptr->nestfld
|
|
#define NESTVMC Curblock->qfileptr->nestvmc
|
|
#define NESTSMC Curblock->qfileptr->nestsmc
|
|
#define UNNESTING Curblock->qfileptr->unnest
|
|
/* mfilenode */
|
|
#define UDICT Curblock->qfileptr->master->dptr
|