Lines Matching refs:valp
94 parse_number (g, cp, valp) in parse_number() argument
97 int *valp;
105 *valp = strtol(cp, &cp, 0);
107 *valp = atoi (cp);
116 parse_value (g, cp, valp) in parse_value() argument
119 int *valp;
123 *valp = 0;
131 DO (cp = ParseIfExpression (g, cp + 1, valp));
139 DO (cp = parse_value (g, cp + 1, valp));
140 *valp = !(*valp);
144 DO (cp = parse_value (g, cp + 1, valp));
145 *valp = -(*valp);
159 *valp = 1; /* XXX */
178 *valp = (*(g->funcs.eval_defined)) (g, var, len);
185 DO (cp = parse_number (g, cp, valp));
190 *valp = (*(g->funcs.eval_variable)) (g, var, cp - var);
199 parse_product (g, cp, valp) in parse_product() argument
202 int *valp;
206 DO (cp = parse_value (g, cp, valp));
212 *valp = (*valp * rightval);
220 *valp = (*valp / rightval);
226 *valp = (*valp % rightval);
234 parse_sum (g, cp, valp) in parse_sum() argument
237 int *valp;
241 DO (cp = parse_product (g, cp, valp));
247 *valp = (*valp + rightval);
252 *valp = (*valp - rightval);
260 parse_shift (g, cp, valp) in parse_shift() argument
263 int *valp;
267 DO (cp = parse_sum (g, cp, valp));
274 *valp = (*valp << rightval);
281 *valp = (*valp >> rightval);
290 parse_inequality (g, cp, valp) in parse_inequality() argument
293 int *valp;
297 DO (cp = parse_shift (g, cp, valp));
304 *valp = (*valp <= rightval);
307 *valp = (*valp < rightval);
314 *valp = (*valp >= rightval);
317 *valp = (*valp > rightval);
326 parse_equality (g, cp, valp) in parse_equality() argument
329 int *valp;
333 DO (cp = parse_inequality (g, cp, valp));
341 *valp = (*valp == rightval);
348 *valp = (*valp != rightval);
356 parse_band (g, cp, valp) in parse_band() argument
359 int *valp;
363 DO (cp = parse_equality (g, cp, valp));
370 *valp = (*valp & rightval);
379 parse_bor (g, cp, valp) in parse_bor() argument
382 int *valp;
386 DO (cp = parse_band (g, cp, valp));
393 *valp = (*valp | rightval);
402 parse_land (g, cp, valp) in parse_land() argument
405 int *valp;
409 DO (cp = parse_bor (g, cp, valp));
417 *valp = (*valp && rightval);
425 parse_lor (g, cp, valp) in parse_lor() argument
428 int *valp;
432 DO (cp = parse_land (g, cp, valp));
440 *valp = (*valp || rightval);
452 ParseIfExpression (g, cp, valp) in ParseIfExpression() argument
455 int *valp;
457 return parse_lor (g, cp, valp);