Searched refs:constant (Results 1 - 7 of 7) sorted by relevance
| /ast/src/lib/libexpr/ |
| H A D | exgram.h | 196 exerror("%s: cannot cast constant %s to %s", xref->data.variable.symbol->name, TYPENAME(x->type), TYPENAME(type)); 199 exerror("cannot cast constant %s to %s", TYPENAME(x->type), TYPENAME(type)); 202 x->data.constant.value.integer = x->data.constant.value.floating; 205 sfprintf(p->tmp, "%g", x->data.constant.value.floating); 206 x->data.constant.value.string = exstash(p->tmp, p->vm); 209 x->data.constant.value.floating = x->data.constant.value.integer; 212 sfprintf(p->tmp, "%I*d", sizeof(x->data.constant.value.integer), x->data.constant [all...] |
| H A D | exeval.c | 109 return expr->data.variable.symbol->value->data.constant.value; 369 *((void**)vp) = &node->data.variable.symbol->value->data.constant.value; 377 if (node->data.variable.symbol->value->data.constant.value.string == expr.nullstring) 378 node->data.variable.symbol->value->data.constant.value.string = 0; 380 *((void**)vp) = node->data.variable.symbol->value->data.constant.value.string = vmnewof(fmt->expr->vm, node->data.variable.symbol->value->data.constant.value.string, char, fmt->fmt.size, 0); 389 *((void**)vp) = &node->data.variable.symbol->value->data.constant.value; 569 return expr->data.constant.value; 602 if (e = assoc ? assoc->value.string : x->data.variable.symbol->value->data.constant.value.string) 608 x->data.variable.symbol->value->data.constant [all...] |
| H A D | exparse.y | 129 %type <expr> initialize switch_item constant 286 $5->data.constant.value.integer = 1; 322 $2->data.constant.value.integer = 1; 393 $$->data.select.constant = (Extype_t**)exalloc(expr.program, (n + 1) * sizeof(Extype_t*)); 394 memcpy($$->data.select.constant, sw->base, n * sizeof(Extype_t*)); 395 $$->data.select.constant[n] = 0; 398 $$->data.select.constant = 0; 414 case_item : CASE constant ':' 432 *expr.swstate->cur++ = &($2->data.constant.value); 579 $$->data.constant 885 constant : CONSTANT label [all...] |
| H A D | Oexparse.c | 659 "case_item : CASE constant ':'", 713 "expr : constant", 714 "constant : CONSTANT", 715 "constant : FLOATING", 716 "constant : INTEGER", 717 "constant : STRING", 718 "constant : UNSIGNED", 1121 exvsp[-4].expr->data.constant.value.integer = 1; 1167 exvsp[-1].expr->data.constant.value.integer = 1; 1241 exval.expr->data.select.constant [all...] |
| H A D | excc.c | 120 sfprintf(cc->ccdisc->text, "sfprintf(%s, \"%s", expr->data.print.descriptor->op == CONSTANT && expr->data.print.descriptor->data.constant.value.integer == 2 ? "sfstderr" : "sfstdout", fmtesq(x->format, quote)); 209 sfprintf(cc->ccdisc->text, "%g", expr->data.constant.value.floating); 212 sfprintf(cc->ccdisc->text, "\"%s\"", fmtesq(expr->data.constant.value.string, quote)); 215 sfprintf(cc->ccdisc->text, "%I*u", sizeof(expr->data.constant.value.integer), expr->data.constant.value.integer); 218 sfprintf(cc->ccdisc->text, "%I*d", sizeof(expr->data.constant.value.integer), expr->data.constant.value.integer); 301 if (!(p = x->data.select.constant))
|
| H A D | expr.h | 67 #define EX_CONSTANT (1<<1) /* compile to constant expr */ 156 Extype_t value; /* constant value */ 158 } constant; /* variable reference */ member in union:Exdata_u 171 Extype_t** constant; /* case label constant array */ member in struct:Exdata_u::__anon355
|
| /ast/src/cmd/tw/ |
| H A D | expr.c | 696 n = x->data.constant.value.floating; 698 n = x->data.constant.value.integer; 702 n = tmdate(x->data.constant.value.string, &s, NiL); 707 if ((n = strgid(x->data.constant.value.string)) < 0 && !arg) 708 error(1, "%s: %s not found", xref->name, x->data.constant.value.string); 712 n = strperm(x->data.constant.value.string, &s, 0); 715 if ((n = struid(x->data.constant.value.string)) < 0 && !arg) 716 error(1, "%s: %s not found", xref->name, x->data.constant.value.string); 719 x->data.constant.value.integer = n; 724 n = x->data.constant [all...] |
Completed in 18 milliseconds