ignore_oldstyle

Controls the recognition of function declarations that follow the syntax conventions used before ISO/IEC standard C (in other words, "K&R" style).

Syntax
#pragma ignore_oldstyle on | off | reset
  
Remarks

If you enable this pragma, the compiler ignores old-style function declarations and lets you prototype a function any way you want. In old-style declarations, you specify the types of arguments on separate lines instead of the function's argument list. For example, the code in Mixing Old-style and Prototype Function Declarations defines a prototype for a function with an old-style definition.

Listing 1. Mixing Old-style and Prototype Function Declarations
int f(char x, short y, float z);

#pragma ignore_oldstyle on

f(x, y, z)
char x;
short y;
float z;
{
  return (int)x+y+z;
}

#pragma ignore_oldstyle reset

This pragma does not correspond to any panel setting. By default, this setting is disabled.

Related information
ANSI_strict
c99
c9x
only_std_keywords
require_prototypes