X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Flanguage%2Fexpressions%2Foptimize.c;h=c5ba6224dfd0f07c00db74c0bf8e00415fa9d15f;hb=762876f19fa870401ae882515de1b58703b73ac4;hp=9f9626bc06329c95a3b75312eb60b7aa149d8e8b;hpb=a19b858e0ac3c69e4a28c0ca6d8674427268a863;p=pspp-builds.git diff --git a/src/language/expressions/optimize.c b/src/language/expressions/optimize.c index 9f9626bc..c5ba6224 100644 --- a/src/language/expressions/optimize.c +++ b/src/language/expressions/optimize.c @@ -141,9 +141,9 @@ static double get_number_arg (struct composite_node *, size_t arg_idx); static double *get_number_args (struct composite_node *, size_t arg_idx, size_t arg_cnt, struct expression *); -static struct fixed_string get_string_arg (struct composite_node *, +static struct substring get_string_arg (struct composite_node *, size_t arg_idx); -static struct fixed_string *get_string_args (struct composite_node *, +static struct substring *get_string_args (struct composite_node *, size_t arg_idx, size_t arg_cnt, struct expression *); static const struct fmt_spec *get_format_arg (struct composite_node *, @@ -187,7 +187,7 @@ get_number_args (struct composite_node *c, size_t arg_idx, size_t arg_cnt, return d; } -static struct fixed_string +static struct substring get_string_arg (struct composite_node *c, size_t arg_idx) { assert (arg_idx < c->arg_cnt); @@ -195,11 +195,11 @@ get_string_arg (struct composite_node *c, size_t arg_idx) return c->args[arg_idx]->string.s; } -static struct fixed_string * +static struct substring * get_string_args (struct composite_node *c, size_t arg_idx, size_t arg_cnt, struct expression *e) { - struct fixed_string *s; + struct substring *s; size_t i; s = pool_alloc (e->expr_pool, sizeof *s * arg_cnt); @@ -236,7 +236,7 @@ emit_number (struct expression *e, double n) } static void -emit_string (struct expression *e, struct fixed_string s) +emit_string (struct expression *e, struct substring s) { allocate_aux (e, OP_string)->string = s; }