/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 2002-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* scan head query
*/
static const char scan_usage[] =
"[-1ls5P?\n@(#)$Id: dss scan query (AT&T Research) 2011-06-15 $\n]"
"[+PLUGIN?\findex\f]"
"[+DESCRIPTION?The \bdss\b \bscan\b query reads records from each input"
" \afile\a and passes the records to the remainder of the query."
" If \afile\a is omitted then the standard input is read.]"
"\n"
"\n [ file ... ] \n"
"\n";
static int
{
char* file;
int errors;
for (;;)
{
{
case '?':
continue;
case ':':
continue;
}
break;
}
return -1;
argv++;
else if (files)
{
files = 0;
argv++;
}
sp = 0;
for (;;)
{
if (sp)
{
{
sp = 0;
goto next;
}
}
{
{
goto next;
}
continue;
}
{
{
return -1;
}
{
return -1;
}
}
next:
{
if (!files)
break;
files = 0;
break;
}
}
return 0;
}
#define QUERY_scan \
{ \
"scan", \
"scan all input files", \
CXH, \
scan_beg, \
0, \
0, \
0, \
0, \
0, \
1 \
}