----- Original Message ----- > > Well, I sort of know what I'm looking for, so this is cheating-ish, but: > > $ grep ' SP ' *.h | grep define > XSUB.h:#define dITEMS I32 items = SP - MARK > pp.h:#define SP sp >
Aaah ... that's now starting to make sense. . . > > > But SP in the perl sense is the stack pointer, and expects to be declared > by the macro dSP: > > pp.h:#define dSP register SV **sp = PL_stack_sp > > So your problem seems to be that curses has something else called SP, and > this clashes with the perl headers and their insistence on defining a macro > to redefine SP to sp. I think you need to stop that Perl macro being in force > at the time you're using the curses macro. > Ok ... I thought '#undef SP' in the Inline::C script would do that .... but perhaps that's a little bit too general :-) I'll see what I can come up with. Thanks again, Nicholas. Cheers, Rob