Mike Davis wrote:
> How does one determine which header file goes with which function.  
[...]
> What I am looking for is documentation that shows functions, 
> parameters and what headers are required?

Is it that you want to know what headers are required so that you can
include just those headers specifically?

For example, you have some code involving TableType, and just want to
include Table.h, like this:

        #include <Table.h>

        Int16 mytableinfo (const TableType *t) {
          /* We store important info in the first row: */
          return TblGetItemInt (t, 0, 0) + TblGetItemInt (t, 0, 1);
          }

Unfortunately, this won't work: you'll get compile errors in Table.h
because the SDK headers aren't designed to be self-contained like this.
Palm's answer has always been "they're always all required -- just use
Pilot.h", and that's why there's no such documentation -- because the
information doesn't do you any good.

I have a theory that just including what I need might make compilation of
my table-using-only modules go faster, and that I should be in charge of
making this tradeoff (maintenance v. compile speed).  Does anyone else
wish they could use SDK headers like this?

    John

Reply via email to