Searched refs:query (Results 1 - 23 of 23) sorted by relevance

/ast/src/lib/libdss/
H A Dcxeval.c47 if (expr->query->head)
61 else if (method && expr->query->method && !strmatch(expr->query->method, method))
64 (*cx->disc->errorf)(cx, cx->disc, 2, "%s: %s: method %s expected", expr->query->name, method, expr->query->method);
67 else if (expr->query->beg)
76 cx->state->header = (Cxheader_t*)expr->query;
78 r = (*expr->query->beg)(cx, expr, expr->argv, cx->disc);
83 if (expr->query->head)
108 else if (expr->query
[all...]
H A Ddssopen.c779 * return 1 if expr contains a query
787 if (!expr->query->prog)
828 if (xt->query->beg == null_beg)
835 if (!x->query->head)
841 if (!xh->query->head)
844 (*dss->disc->errorf)(dss, dss->disc, 2, "%s: not a head query", head);
852 (*dss->disc->errorf)(dss, dss->disc, 2, "%s: expression already has %s head", head, x->query->name);
871 x->query = (Cxquery_t*)(x + 1);
H A Dcx.h511 struct Cxquery_s /* query */
536 Cxquery_t* queries; /* query table */
555 Cxquery_t* query; /* query callouts */ member in struct:Cxexpr_s
558 void* data; /* query private data */
559 char** argv; /* query argv */
H A Dcxopen.c1463 * add a query
1467 cxaddquery(Cx_t* cx, Cxquery_t* query, Cxdisc_t* disc) argument
1495 *copy = *query;
1496 query = copy;
1500 if (dtsearch(dict, query))
1503 (*disc->errorf)(NiL, disc, 2, "%s: query already defined", query->name);
1506 dtinsert(dict, query);
1511 * return query given name
H A Dcxcomp.c1637 expr->query = (Cxquery_t*)(expr + 1);
1660 if (!(expr->query->prog = vmnewof(cc->vm, 0, Cxinstruction_t, n / sizeof(Cxinstruction_t), 0)))
1666 memcpy(expr->query->prog, sfstrbase(cc->xp) + pos, n);
1870 if (!(fp->query = cxquery(cx, s, cx->disc)) && !(cx->test & 0x00000400))
1873 (*cx->disc->errorf)(cx, cx->disc, 2, "%s: query not found", s);
1876 if (fp->query->ref && (*fp->query->ref)(cx, fp, fp->argv, cx->disc))
1974 if (!expr->query)
1975 expr->query = &null;
2008 else if (pc = expr->query
[all...]
/ast/src/cmd/jcl/
H A DJCL.mk68 query
72 query - jobs
76 query - blocked
/ast/src/cmd/re/
H A Dtestmatch.c476 matchcheck(int nmatch, ssize_t* match, char* ans, char* re, char* s, int flags, int query, int unspecified, int expand) argument
507 if (!query)
519 if (!query)
605 int query; local
789 expand = query = unspecified = kre = sre = 0;
807 if (!query && !(skip & level))
808 bad("locale query expected\n", NiL, NiL, 0);
809 query = 0;
939 query = 1;
1007 if (!query
[all...]
H A Dtestfnmatch.c477 int query; local
658 expand = query = unspecified = kre = sre = 0;
674 if (!query && !(skip & level))
675 bad("locale query expected\n", NiL, NiL, 0);
676 query = 0;
793 query = 1;
872 if (!query && verbose)
876 if (!query)
893 if (query)
907 if (query)
[all...]
H A Dgrep.c173 unsigned char query; /* return status but no output */ member in struct:State_s
329 if (state.query || state.list)
396 if (state.query || state.list)
417 if (state.query || state.list)
545 if (!state.query)
577 if (state.query)
580 if (!state.query)
770 state.query = 1;
822 if (state.count || state.list || state.query || (state.options & REG_INVERT))
848 if (state.query
[all...]
H A Dtestglob.c492 int query; local
778 query = unspecified = kre = sre = 0;
782 if (!query && !(skip & level))
783 bad("locale query expected\n", NiL);
784 query = 0;
870 query = 1;
945 if (!m && !query && verbose) {
969 if (!query)
995 if (query)
H A Ded.c121 Sfio_t* query; member in struct:__anon200::__anon201
1314 global(int sense, int query) argument
1325 if (query)
1340 if (!query && s[0] == 'd' && s[1] == '\n' && !s[2])
1347 if (query) {
1355 if (!*(ed.global = sfstrbase(ed.buffer.query)))
1360 ed.global = getrec(ed.buffer.query, '\n', REC_TERMINATE);
/ast/src/cmd/ksh93/tests/
H A Dcoprocess.sh280 [[ $got == $exp ]] || err_exit "main coprocess main query failed -- expected $exp, got '$got'"
291 [[ $got == $exp ]] || err_exit "main coprocess subshell query failed -- expected $exp, got '$got'"
307 [[ $got == $exp ]] || err_exit "subshell coprocess main query failed -- expected $exp, got '$got'"
321 [[ $got == $exp ]] || err_exit "subshell coprocess subshell query failed -- expected $exp, got '$got'"
355 [[ $got == $exp ]] || err_exit "main coprocess subshell query failed -- expected $exp, got '$got'"
H A Dpath.sh369 cp $(whence -p echo) user_to_group_relationship.hdr.query
372 [[ $(user_to_group_relationship.hdr.query foobar) == foobar ]] 2> /dev/null || err_exit 'Cannot execute command with . in name when PATH and FPATH end in :.'
/ast/src/cmd/kshlib/cmdtst/
H A Dgrep.c197 unsigned char query; /* return status but no output */ member in struct:State_s
434 if (state->query || state->list)
636 if (state->query)
639 if (!state->query)
823 state.query = 1;
884 if (state.count || state.list || state.query || (state.options & REG_INVERT))
921 if (state.query && state.any)
943 if ((state.count & 2) && !state.query && !state.list)
955 r = (state.notfound && !state.query) ? 2 : !state.any;
/ast/src/cmd/kshlib/dss/
H A Ddss.c102 struct query struct
104 struct query *next;
106 Cxquery_t *query; member in struct:query
124 struct query *qp;
129 * the following function is added as a builtin for each query
132 static int query(int argc, char *argv[], Shbltin_t *bp) function
136 struct query *pp = dp->qp;
137 Cxquery_t *qp = pp?pp->query:0;
151 pp = newof(NiL,struct query,1,0);
155 pp->query
[all...]
/ast/src/cmd/coshell/
H A Dcommand.c471 if (con[n].info.user.fds[0] == n) sfprintf(state.string, "%3d query %-3d %-3d %s\n", n, con[n].info.user.fds[1], con[n].info.user.fds[2], (sp = con[n].info.user.home) ? sp->name : "");
/ast/src/cmd/nmake/
H A Dparse.c40 #define PS1 "make> " /* primary query prompt */
41 #define PS2 ">>>>> " /* secondary query prompt */
2106 * special check for internal.query
2109 if (getrule(lhs) == internal.query)
3193 * interactive query loop
3210 frame.target = internal.query;
3225 parse(sfstdin, NiL, "query", NiL);
3384 opr = internal.query;
H A Drule.c1545 INIT(query, ".QUERY", P_immediate|P_multiple|P_virtual);
1585 putrule(".DEBUG", internal.query);
H A Dmake.h610 Rule_t* query; /* .QUERY rule pointer */ member in struct:Internal_s
H A Dmake.c344 if (r == internal.query)
H A DMakerules.mk246 LICENSECLASS = $(LICENSEINFO:P=W=$(LICENSE),query=${type}.${class})
/ast/lib/package/
H A Dpackage.mk173 T := $(.FIND. lib/package .lic $(F):P=W,query=type)
/ast/src/cmd/INIT/
H A Dpackage.mk173 T := $(.FIND. lib/package .lic $(F):P=W,query=type)

Completed in 524 milliseconds