[PD] pd-0.37-1 failing to compile at vexp_if.c
Frank Barknecht
fbar at footils.org
Tue Jul 20 18:39:48 CEST 2004
Hallo,
Martin Peach hat gesagt: // Martin Peach wrote:
> or you can edit vexp.c &
> vexp_if.c and change every instance of "exp-" to "exp2-", "exp)" to
> "exp2)" and "exp," to "exp2,". The latter is what I do, because one day
> you may need that -Werror flag.
>
> ... I am just wondering why nobody has done this to the source yet.
I posted the patch which does this several times (I think, two times)
here or on pd-dev. I attached it again. It uses "expression" as
variable, as I still think "exp2" is misleading.
Ciao
--
Frank Barknecht _ ______footils.org__
-------------- next part --------------
--- vexp_if.c 2004-03-04 19:12:51.000000000 +0100
+++ vexp_if.c-old 2004-03-04 19:10:48.000000000 +0100
@@ -888,7 +888,7 @@
* the result pointer
*/
int
-max_ex_tab(struct expr *expression,fts_symbol_t s,struct ex_ex *arg,struct ex_ex *optr)
+max_ex_tab(struct expr *exp,fts_symbol_t s,struct ex_ex *arg,struct ex_ex *optr)
{
#ifdef PD
t_garray *garray;
@@ -900,7 +900,7 @@
{
optr->ex_type = ET_FLT;
optr->ex_flt = 0;
- pd_error(expression, "no such table '%s'", s->s_name);
+ pd_error(exp, "no such table '%s'", s->s_name);
return (1);
}
optr->ex_type = ET_FLT;
@@ -915,7 +915,7 @@
break;
default: /* do something with strings */
- pd_error(expression, "expr: bad argument for table '%s'\n", fts_symbol_name(s));
+ pd_error(exp, "expr: bad argument for table '%s'\n", fts_symbol_name(s));
indx = 0;
}
if (indx < 0) indx = 0;
@@ -933,13 +933,13 @@
}
int
-max_ex_var(struct expr *expression, fts_symbol_t var, struct ex_ex *optr)
+max_ex_var(struct expr *exp, fts_symbol_t var, struct ex_ex *optr)
{
optr->ex_type = ET_FLT;
if (value_getfloat(var, &(optr->ex_flt))) {
optr->ex_type = ET_FLT;
optr->ex_flt = 0;
- pd_error(expression, "no such var '%s'", var->s_name);
+ pd_error(exp, "no such var '%s'", var->s_name);
return (1);
}
return (0);
More information about the Pd-list
mailing list