Searched defs:pc (Results 1 - 25 of 25) sorted by relevance

/ast/src/lib/libast/path/
H A Dpathcheck.c52 pathcheck(const char* package, const char* tool, Pathcheck_t* pc) argument
89 if (pc) memzero(pc, sizeof(*pc));
/ast/src/cmd/dsslib/ip_t/
H A Dptstats.c36 int pc; local
68 pc = total_addresses ? ((int)((double)(sizeof(prt) - (sizeof(S) - 10)) * ((double)((intmax_t)addresses[i]) / (double)((intmax_t)total_addresses))) - tc) : 0;
69 sfprintf(sp, "/%-2d %6I*u %*I*u %s%s\n", i, sizeof(prefixes[i]), prefixes[i], sizeof(S) - 1, sizeof(addresses[i]), addresses[i], prt + sizeof(prt) - pc - 1, tot + sizeof(tot) - tc - 1);
H A Dptvstats.c36 int pc; local
101 pc = (int)((double)(sizeof(prt) - (sizeof(S) - 10)) / (double)a->r[3][a->size - 1]);
103 pc = 0;
106 pc = 0;
107 sfprintf(sp, "/%-3d %16s %16s %s%s\n", i, fmtfv(a->size, prefixes[i], 10, ',', 3), sizeof(S) - 1, fmtfv(a->size, addresses[i], 10, ',', 3), prt + sizeof(prt) - pc - 1, tot + sizeof(tot) - tc - 1);
H A Dip_t.c932 op_match_ip4_NP(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
943 r->value.number = (PTMIN(aa,ab) >= PTMIN(ba,bb) && PTMAX(aa,ab) <= PTMAX(ba,bb)) == (pc->op == CX_MATCH);
948 op_match_ip6_NP(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
958 r->value.number = (fvcmp(16, ptvmin(16, r0, ap, ap[IP6BITS]), ptvmin(16, r1, bp, bp[IP6BITS])) >= 0 && fvcmp(16, ptvmax(16, r0, ap, ap[IP6BITS]), ptvmax(16, r1, bp, bp[IP6BITS])) <= 0) == (pc->op == CX_MATCH);
/ast/src/lib/libexpr/
H A Dextoken.c668 int pc; local
762 pc = ')';
765 pc = '}';
768 pc = ']';
787 if (c == pc && --n <= 0)
/ast/src/lib/libdss/
H A Dcxeval.c123 * execute program at pc
127 execute(Cx_t* cx, Cxexpr_t* expr, register Cxinstruction_t* pc, void* data, Cxoperand_t* rv, Cxdisc_t* disc) argument
132 Cxinstruction_t* pe = pc;
141 r.type = pc->type;
145 cxcodetrace(cx, "eval", pc, pc - pe + 1, expr->stack, sp);
146 if ((i = (*pc->callout)(cx, pc, &r, sp-1, sp, data, disc)) < 0)
153 sp += pc->pp;
157 if (!so->refs && (f = cxcallout(cx, CX_DEL, so->type, cx->state->type_void, disc)) && (*f)(cx, pc,
[all...]
H A Dcxcomp.c274 * trace instruction at pc to the standard error
278 cxcodetrace(Cx_t* cx, const char* fun, Cxinstruction_t* pc, unsigned int offset, Cxoperand_t* bp, Cxoperand_t* sp) argument
285 o = cxcodename(pc->op);
287 sfsprintf(val, sizeof(val), " %s", pc->data.variable->name);
290 if (pc->data.pointer)
291 sfsprintf(val, sizeof(val), " %s", ((Cxedit_t*)pc->data.pointer)->name);
293 else if (pc->type == cx->state->type_string)
294 sfsprintf(val, sizeof(val), " \"%-.6s\"", pc->data.string);
295 else if (pc->type == cx->state->type_number)
296 sfsprintf(val, sizeof(val), " %8.4Lf", pc
577 cast(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
592 edit(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
1994 register Cxinstruction_t* pc; local
[all...]
H A Ddssopen.c494 dss_mem_get(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
498 switch (pc->data.variable->index)
H A Dcxopen.c396 op_call_V(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
398 return (*pc->data.variable->function)(cx, pc->data.variable, r, b + (pc->pp + 1), -pc->pp, data, disc);
402 op_nop_V(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
408 op_end_V(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
420 op_ref_V(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
426 op_sc_V(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
428 if ((pc
437 op_const_V(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
444 op_tst_V(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
452 op_add_N(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
459 op_sub_N(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
466 op_mpy_N(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
473 op_div_N(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
486 op_mod_N(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
500 op_and_N(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
507 op_or_N(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
514 op_xor_N(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
521 op_andand_N(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
528 op_oror_N(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
535 op_lsh_N(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
542 op_rsh_N(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
549 op_inv_N(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
556 op_log_N(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
563 op_not_N(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
570 op_uplus_N(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
577 op_uminus_N(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
584 op_lt_N(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
591 op_le_N(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
598 op_eq_N(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
605 op_ne_N(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
612 op_ge_N(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
619 op_gt_N(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
626 op_log_S(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
633 op_lt_S(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
642 op_le_S(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
651 op_eq_S(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
658 op_ne_S(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
665 op_ge_S(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
674 op_gt_S(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
683 op_not_S(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
690 op_lt_B(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
699 op_le_B(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
708 op_eq_B(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
715 op_ne_B(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
722 op_ge_B(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
731 op_gt_B(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
740 op_not_B(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
747 op_eq_T(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
754 op_ne_T(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
761 op_cast_SN(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
772 op_match(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
783 op_nomatch(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
[all...]
/ast/src/cmd/dsslib/netflow/
H A Dnetflow.c157 op_get(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
162 Cxvariable_t* vp = pc->data.variable;
/ast/src/lib/libast/astsa/
H A Dstrmatch.c176 register int pc; local
191 switch (pc = mbgetchar(p))
199 if (pc == '(' || *p == '(')
205 subp = p + (pc != '(');
212 if (pc == '*' || pc == '?' || pc == '+' && oldp == r)
222 if (pc == '*' || pc == '+')
229 pc
[all...]
/ast/src/cmd/dsslib/text/
H A Dtext.c432 op_get(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
434 r->value = ((Cxvalue_t*)DSSDATA(data))[((Cxvariable_t*)pc->data.variable)->index];
/ast/src/cmd/3d/
H A Dmap.c196 Pathcheck_t pc; local
198 if (pathcheck(PATHCHECK, error_info.id, &pc))
200 else if (!pc.feature)
203 sfsprintf(state.license, sizeof(state.license), "%c%s%c", LICENSE_SEP, pc.feature, LICENSE_SEP);
H A Dstrmatch.c270 register int pc; local
289 switch (pc = mbgetchar(p))
297 if (pc == '(' || *p == '(')
303 subp = p + (pc != '(');
310 if (pc == '*' || pc == '?' || pc == '+' && oldp == r)
320 if (pc == '*' || pc == '+')
327 pc
[all...]
/ast/src/cmd/dsslib/bgp/
H A Dbgp.c140 op_get(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
144 Cxvariable_t* vp = (Cxvariable_t*)pc->data.variable;
522 bgp_get(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
524 Cxvariable_t* vp = (Cxvariable_t*)pc->data.variable;
529 DSSRECORD(data)->data = &BGPDATA(data)->sub + (((Cxvariable_t*)pc->data.variable)->index == BGP_key);
530 i = op_get(cx, pc, r, a, b, data, disc);
/ast/src/cmd/tw/
H A Dtw.c358 int pc; local
363 if ((pc = *p++) == d)
371 if (pc == '%')
373 pc = (int)strntol(p, 2, NiL, 16);
381 if (pc < sc)
383 if (pc > sc)
/ast/src/lib/libpz/
H A Dpzlib.h68 size_t pc; /* partial row count */ member in struct:Pzws_s
/ast/src/cmd/dsslib/time_t/
H A Dtime_t.c416 tm_get(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
418 Tm_state_t* state = (Tm_state_t*)pc->data.variable->member->data;
440 switch (pc->data.variable->index)
479 tm_set(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
481 Tm_state_t* state = (Tm_state_t*)pc->data.variable->member->data;
507 switch (pc->data.variable->index)
/ast/src/cmd/re/
H A Dsed2.c79 selected(unsigned char *pc, Text *data) argument
82 word *ipc = (word*)pc; /* points to address words */
83 word *q = instr(pc); /* points to instruction word */
141 vv(Text *script, unsigned char *pc, Text *data) argument
144 pc = pc;
151 be(Text *script, unsigned char *pc, Text *data) argument
155 return script->s + instr(pc)[1];
159 de(Text *script, unsigned char *pc, Text *data) argument
162 pc
168 De(Text *script, unsigned char *pc, Text *data) argument
182 Ee(Text *script, unsigned char *pc, Text *data) argument
192 Ge(Text *script, unsigned char *pc, Text *data) argument
203 ge(Text *script, unsigned char *pc, Text *data) argument
216 He(Text *script, unsigned char *pc, Text *data) argument
226 he(Text *script, unsigned char *pc, Text *data) argument
235 Ie(Text *script, unsigned char *pc, Text *data) argument
243 ie(Text *script, unsigned char *pc, Text *data) argument
253 Le(Text *script, unsigned char *pc, Text *data) argument
261 Ne(Text *script, unsigned char *pc, Text *data) argument
272 ne(Text *script, unsigned char *pc, Text *data) argument
284 Pe(Text *script, unsigned char *pc, Text *data) argument
300 pe(Text *script, unsigned char *pc, Text *data) argument
308 qe(Text *script, unsigned char *pc, Text *data) argument
317 te(Text *script, unsigned char *pc, Text *data) argument
328 ww(Text *script, unsigned char *pc, Text *data, word offset) argument
344 we(Text *script, unsigned char *pc, Text *data) argument
350 xe(Text *script, unsigned char *pc, Text *data) argument
363 ye(Text *script, unsigned char *pc, Text *data) argument
403 se(Text *script, unsigned char *pc, Text *data) argument
433 le(Text *script, unsigned char *pc, Text *data) argument
482 ae(Text *script, unsigned char *pc, Text *data) argument
493 ce(Text *script, unsigned char *pc, Text *data) argument
548 unsigned char *pc; local
[all...]
H A Dsed1.c75 #define pc Tc macro
455 int pc, qc; local
462 while((o=p),(pc = mbchar(p))!=delim) {
463 if(pc=='\n')
465 if(pc=='\\') {
467 pc = mbchar(p);
469 if((p-o)>1 && pc>m)
470 m = pc;
476 while((o=p), (pc = mbchar(p))!=delim) {
477 if(pc
[all...]
/ast/src/cmd/dsslib/stats/
H A Dstats.c145 getop(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
148 Cxvariable_t* variable = pc->data.variable;
192 getvalue(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
195 Cxvariable_t* variable = pc->data.variable;
/ast/src/cmd/dsslib/xml/
H A Dxml.c972 op_get(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
975 Value_t* v = (Value_t*)pc->data.variable->data;
992 else if ((*v->internalf)(cx, pc->data.variable->type, NiL, &pc->data.variable->format, r, s, v->size, cx->rm, disc) < 0)
999 op_ref(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
/ast/src/cmd/html/
H A Dtroff2html.h204 int pc; /* title page number character */ member in struct:State_s
/ast/src/lib/libvcodex/
H A Dvcsfio.c331 extend(char** pc, char** pb, char** pe, int n) argument
333 extend(pc, pb, pe, n)
334 char** pc;
343 o = *pc - *pb;
351 *pc = * pb + o;
/ast/src/cmd/dsslib/flat/
H A Dflat.c1491 op_get(Cx_t* cx, Cxinstruction_t* pc, Cxoperand_t* r, Cxoperand_t* a, Cxoperand_t* b, void* data, Cxdisc_t* disc) argument
1496 x = (*(((Record_t*)DSSDATA(data))->getf))((Record_t*)DSSDATA(data), pc->data.variable->index);
1501 *r = *(*(((Record_t*)DSSDATA(data))->getf))((Record_t*)DSSDATA(data), pc->data.variable->index);

Completed in 85 milliseconds