HP 3000 Manuals

Typedefs [ HP C Programmer's Guide ] MPE/iX 5.0 Documentation


HP C Programmer's Guide

Typedefs 

The HP C compiler does not allow combining type specifiers with typedef
names.  For example:

          typedef long t;
          unsigned t var;

Compilers derived from pcc accept this code, but HP C does not.  Change
the typedef to include the type specifier:

          typedef unsigned long t;
          t var;

or use a define:

          #define t long
          unsigned t var;



MPE/iX 5.0 Documentation