Lines Matching defs:value
65 // Scalar value. If s != NULL, it's a string, otherwise it's an int.
66 struct value {
71 // Get the value as a string.
72 char *get_str(struct value *v)
78 // Get the value as an integer and return 1, or return 0 on error.
79 int get_int(struct value *v, long long *ret)
92 // Preserve the invariant that v.s is NULL when the value is an integer.
93 void assign_int(struct value *v, long long i)
100 static int is_false(struct value *v)
106 static void re(char *target, char *pattern, struct value *ret)
154 void eval_op(struct op_def *o, struct value *ret, struct value *rhs)
213 static void eval_expr(struct value *ret, int min_prec)
229 struct value rhs;
248 struct value ret = {0};