Thanks a lot, John. You are a real wizard :=) I am not a perl Guru, but J just followed your advice and and did a rather boring procedure of replacing lines under ...TrapEnum by #define ... (SysLibTrapCustom+n), where n is the line offset. Compiles as good as never!
I wish Sony developers read your comments ... Regards, Michael -----Original Message----- From: John Marshall [mailto:[EMAIL PROTECTED]] Sent: Thursday, 15 November 2001 9:34 To: Palm Developer Forum Subject: Re: SYSTRAP(..) vs __attribute__ ((systrap (..))) or wrning messages from Sony headers in PRC tools 2.0.92 and sdk-4 On Wed, Nov 14, 2001 at 05:31:05PM +1100, Michael Glickman wrote: > When trying to compile my project with #include <SonyCLIE.h> [...] > ...warning: possibly bad __callseq__ `trap #15; dc.w RmcLibTrapRegister' > > The analysis however shows that the problem is probably related to > incompatibility Sony headers with the latest PRC tools and sdk-4. Yes. See http://www.escribe.com/computing/pcpqa/m47622.html In that posting I suggested that Sony had followed an older Palm sample. I thought the SampleLib in the 4.0 SDK examples had been updated to avoid using enums inside its SAMPLE_LIB_TRAP macro, but it seems I was mistaken. I hope Palm will make this change for the next SDK. > I got rid of all warning messages by forsing the "old style" definition, > e.g. > > #define HR_TRAP(trapNum) __attribute__ ((systrap (trapNum))) The documentation has noted that the "systrap" attribute is deprecated for about two years now, and it *will* disappear within the next three or so prc-tools versions. Its days are numbered. John -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
