update expr to Pd Vanilla 0.48 (adds the assignment operator, some other ops)
- pd/doc/5.reference/all_about_expr_and_value.pd 15 additions, 5 deletionspd/doc/5.reference/all_about_expr_and_value.pd
- pd/src/x_vexp.c 71 additions, 119 deletionspd/src/x_vexp.c
- pd/src/x_vexp.h 13 additions, 14 deletionspd/src/x_vexp.h
- pd/src/x_vexp_fun.c 89 additions, 51 deletionspd/src/x_vexp_fun.c
- pd/src/x_vexp_if.c 11 additions, 5 deletionspd/src/x_vexp_if.c
-
Well, it seems that the proper symbols are defined later on anyway, it's just in this early phase when
make depend
or whatever is run that this problem occurs. As we'll never compile anything for Max anyway, I'd say that the simple fix suggested above should be all that's needed.Of course, any source change in this header file might be gone again next time we backport it from upstream, so your suggested course of action should be more robust. But I really have no idea why the symbols aren't set at this point in the compilation, or why the
make depend
is done at this stage in the first place; it doesn't really seem to be needed, at least when building from scratch.Edited by Albert Gräf -
You mean this?
--- a/pd/src/x_vexp.h +++ b/pd/src/x_vexp.h @@ -5,9 +5,9 @@ /* "expr" was written by Shahrokh Yadegari c. 1989. -msp */ /* "expr~" and "fexpr~" conversion by Shahrokh Yadegari c. 1999,2000 */ -#define MSP -#ifdef PD -#undef MSP +#define PD +#ifdef MSP +#undef PD #endif #ifdef PD
Come on, you don't need a PR for that, do you? ;-)
-
All right, there you go: !137 (merged). Haven't tested it yet...
-
Well, it gives me a warning
x_vexp.h:8:0: warning: "PD" redefined
now, but other than that it's looking good, so you may want to give it a whirl. Sorry, I'm too lazy to check which value PD should be#define
'd as to make the warning go away, 1 maybe? Anyway, it's getting late and I have to teach courses tomorrow, so this will have to do for now.