/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 2003-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
#include <dsslib.h>
typedef struct State_s
{
} State_t;
extern Dsslib_t dss_lib_test;
static const char even_usage[] =
"[+PLUGIN?\findex\f]"
"[+DESCRIPTION?The \beven\b test query selects even ordinal records.]"
"\n"
"\n[ file ... ]\n"
"\n"
;
static int
{
char* s;
int errors;
{
return -1;
}
for (;;)
{
{
case '?':
else
return -1;
continue;
case ':':
else
return -1;
continue;
}
break;
}
return -1;
return 0;
}
static int
{
{
return 1;
}
return 0;
}
static int
{
return 0;
}
static int
{
sfprintf(sfstdout, "even_end %I*u %I*u %I*u%s\n", sizeof(expr->queried), expr->queried, sizeof(expr->selected), expr->selected, sizeof(state->selected), state->selected, expr->selected == state->selected ? "" : " FAILED");
return 0;
}
static const char odd_usage[] =
"[+PLUGIN?\findex\f]"
"[+DESCRIPTION?The \bodd\b test query selects odd ordinal records.]"
"\n"
"\n[ file ... ]\n"
"\n"
;
static int
{
char* s;
int errors;
{
return -1;
}
for (;;)
{
{
case '?':
else
return -1;
continue;
case ':':
else
return -1;
continue;
}
break;
}
return -1;
return 0;
}
static int
{
{
return 1;
}
return 0;
}
static int
{
return 0;
}
static int
{
sfprintf(sfstdout, "odd_end %I*u %I*u %I*u%s\n", sizeof(expr->queried), expr->queried, sizeof(expr->selected), expr->selected, sizeof(state->selected), state->selected, expr->selected == state->selected ? "" : " FAILED");
return 0;
}
{
{
"even",
"select even ordinal records",
CXH,
},
{
"odd",
"select odd ordinal records",
CXH,
},
{0}
};
{
"test",
"test queries"
"[-1lms5P?\n@(#)$Id: dss test queries (AT&T Research) 2003-09-22 $\n]"
CXH,
0,
0,
0,
0,
0,
0,
&queries[0]
};