More on "static"
Neil Rhodes, of "Palm Programming" fame, sent a note with some clarifications about the use of the static keyword. To quote from his mail:
Imagine you're using C and you've declared Foo in foo.h as:
int Foo(int)
If you forget to #include "foo.h" when you're calling foo, the require function prototypes will warn you
Foo(3) // gives warning, no prototype seen
However, what if you forget to #include "foo.h" when defining Foo.
That is, in Foo.c:
int Foo(int, int) // notice extra parameter
The Metrowerks compiler will warn that no function declaration has been seen because your parameters might be different in your declaration than in your definition of the function. Unlike C++ (where the linker can find your mistake due to name mangling), in C, nothing will find this error.
So, the warning helps make sure that your definition and your declaration of the function match.
Thanks, Neil!
By the way, CodeWarrior for Palm OS, Version 8, is almost ready for release. We're busy preparing the final documentation and CD layouts -- everything else is frozen and reports from our beta testers are really good.
PalmSource Rescheduled for February 2002
Palm has announced that PalmSource has now been rescheduled for February 5-8, 2002. You can read the press releases at http://www.prnewswire.com/cgi-bin/micro_stories.pl?ACCT=153400&TICK=PALM&STORY=/www/story/10-03-2001/0001584775&EDATE=Oct+3,+2001. There's no word yet if this will cause PalmSource Europe, planned for February 12-13, 2002 to be pushed out.

Send feedback to combee@techwood.org
Copyright © 2004 Benjamin L. Combee
Palm OS is a registered trademark of PalmSource, Inc.
Metrowerks and CodeWarrior are registered trademarks of Metrowerks Inc.
The views expressed on this website/weblog are those of mine alone and do not necessarily reflect the views of PalmSource or Metrowerks.

qwertYAK / frobnovich
|