dss-count.h revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
/***********************************************************************
* *
* 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
/*
* count query
*/
static const char count_usage[] =
"[-1ls5P?\n@(#)$Id: dss count query (AT&T Research) 2002-12-09 $\n]"
"[+PLUGIN?\findex\f]"
"[+DESCRIPTION?The \bdss\b \bcount\b query prints the parent expression"
" \alabel:\a if the \alabel\a operand is specified.]"
"\n"
"\n [ label ]\n"
"\n";
static int
{
for (;;)
{
{
case '?':
continue;
case ':':
continue;
}
break;
}
return -1;
{
return -1;
}
return 0;
}
static int
{
sfprintf(expr->op, "%I*u/%I*u\n", sizeof(expr->parent->selected), expr == expr->parent->fail ? (expr->parent->queried - expr->parent->selected) : expr->parent->selected, sizeof(expr->parent->queried), expr->parent->queried);
return 0;
}
#define QUERY_count \
{ \
"count", \
"print parent expression record counts", \
CXH, \
count_beg, \
0, \
0, \
}