[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


ANSI Keywords Only

(K&R, §A2.4) The C compiler can recognize several additional reserved keywords. The ANSI Keywords Only option in the C/C++ Language Panel controls whether the compiler recognizes these keywords.

If this option is on, the compiler generates an error if it encounters any of the CodeWarrior C additional keywords. If you're writing code that must follow the ANSI/ISO standard strictly, turn on the ANSI Keywords Only option in the settings panel.

When this option is off, these additional keywords are available to you:

This keyword lets you use the compiler's built-in inline assembler. (K&R, §A10.1) For more information on the inline assemblers, consult the relevant Targeting manual for the platform you want to write assembly language for.

  • far
  • The CodeWarrior C/C++ compiler for Motorola 68K processors treats far as a keyword. Other versions of CodeWarrior C/C++ do not recognize far as a keyword.

  • inline
  • Lets you declare a C function to be inline. For more information, see "Inlining."

  • __declspec(arg)
  • Declares a function or variable that uses a special calling convention or special method to be stored that is specified by arg. Refer to your Targeting manual for specific uses of __declspec().

  • pascal
  • This keyword is used in Mac OS programming.

  • __stdcall
  • This keyword is used in Microsoft Win32 programming.

  • vector, pixel
  • These keywords are used when generating PowerPC Altivec object code. See "altivec_codegen," "altivec_model," and "altivec_codegen."

    The ANSI Keywords Only option corresponds to the pragma only_std_keywords.To check whether this option is on, use __option (only_std_keywords). By default, this option is off.

    See also "only_std_keywords" and "Checking Options."


    [ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

    Visit the Metrowerks website at: http://www.metrowerks.com
    For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
    Copyright © 2000, Metrowerks Corp. All rights reserved.

    Last updated: August 17, 2000