.ad 8
.bm 8
.fm 4
.bt $Copyright (c) 1990-2004 SAP AG-2002$$Page %$
.tm 12
.hm 6
.hs 3
.tt 1 $SQL$Project Distributed Database System$VNI00C$
.tt 2 $$$
.tt 3 $$SQL_filter_Definitions$1993-05-13$
***********************************************************
.nf

.nf


    ========== licence begin  GPL
    Copyright (c) 1990-2004 SAP AG

    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
    as published by the Free Software Foundation; either version 2
    of the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    ========== licence end

.fo


.fo
.nf
.sp
Module  :       SQL_filter_Definitions
=========
.sp
Purpose :
.CM *-END-* purpose -------------------------------------
.sp
.cp 3
Define  :

.CM *-END-* define --------------------------------------
.sp;.cp 3
Use     :

.CM *-END-* use -----------------------------------------
.sp;.cp 3
Synonym :

.CM *-END-* synonym -------------------------------------
.sp;.cp 3
Author  : FrankS
.sp
.cp 3
Created : 1990-06-12
.sp
.cp 3
Version : 1993-05-13
.sp
.cp 3
Release : 2.4.07     Date : 1990-06-12
.sp
Release : 3.1.3      Date : 1994-02-17
.sp
***********************************************************
.sp
.cp 10
.fo
.oc _/1
Specification:

.CM *-END-* specification -------------------------------
.sp 2
***********************************************************
.sp
.cp 10
.fo
.oc _/1
Description:

.CM *-END-* description ---------------------------------
.sp 2
***********************************************************
.sp
.cp 10
.nf
.oc _/1
Structure:

.CM *-END-* structure -----------------------------------
.sp 2
**********************************************************
.sp
.cp 10
.nf
.oc _/1
.CM -lll-
Code    :
/*      PRETTY          */
/*      vni00c          */

#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <signal.h>

#ifdef  DEBUG
#    define  DBG(x)  {sqldbgwrite x ;}
     extern  void            sqldbgwrite ();
#else
#    define  DBG(x)  {}
#endif

&if $OSSPEC = SUNOS
#define	_toupper(c)	((c) - 'a' + 'A')
&endif

#define NOHEADER       0x0001  /* Flag fuer -h */
#define NOAUTOCOMMIT   0x0002  /* Flag fuer -c */
#define ROLLBACK       0x0004  /* Flag fuer -r */
#define PROTOKOLL      0x0008  /* Flag fuer -P */
#define TRACEON        0x0010  /* Flag fuer -t */
#define COLUMNFORM     0x0020  /* Flag fuer -C */
#define BATCHMODE      0x0040  /* Flag fuer -b */
#define PROTMODE       0x0080  /* Flag fuer -f */

#define SELDIRECT      1 /* select direct, next ...         */
#define SELECTNORMAL   2 /* normales select                 */
#define COMMITWORK     3 /* commit work                     */
#define ROLLBACKWORK   4 /* rollback work                   */
#define FETCH          5 /* fetch                           */
#define ANYSQL         0 /* jedes sonstige SQL Kommando     */
#define SHELLCOM      10 /* Shellkommando                   */
#define EXIT          20 /* Shellkommando                   */

#define         FALSE                   0
#define         TRUE                    1


.CM *-END-* code ----------------------------------------
.SP 2
***********************************************************
*-PRETTY-*  statements    :
*-PRETTY-*  lines of code :                   PRETTY  1.03
*-PRETTY-*  lines in file :                    1988-11-09
.PA
