The ChipList, by Adrian Offerman; The Processor Portal

new
Processor Selector

Platform:
Segment:
View: show / edit

bookmark bookmark site
bookmark permalink
Wed 11 Mar 2009, 17:58

Old Style C Function Argument Declarations are Supported


On Wed 11 Mar 2009, at 17:58, Intel Software Network Graphics Feed wrote:

Old Style C Function Argument Declarations are Supported

The Intel® C++ Compiler 11.0 does support old-style C function declarations like the one in the following code snippet.

void foo(a,b,c)
   int a;
   float b;
   float c[10];
{
   int i = 0;
   for(i=0;i<10;i++)
      c[i]=b*a;
}

Please note that the C99 standard disallows this style of declaring functions, so legacy code using this syntax will need to be updated to be compliant with that standard.  The Intel® C++ Compiler 11.0 will still accept this syntax when using the /Qstd:c99 (on Windows*) or -std=c99 (on Linux* or Mac OS X*) options.
Filed under: Intel® C++ Compiler for Windows*Intel® C++ Compiler for Linux*Intel® C++ Compiler for Mac OS X*Intel® Parallel Composer
Source: Intel Software Network Graphics Feed
Also published by:

ChipList news channel Last Months News

Mon 9 Feb 2009, 18:08
Win your GDC 2009 Experience
Mon 9 Feb 2009, 17:46
Web Analysis In Real Time
Mon 9 Feb 2009, 11:21
Over 1000 Yammering On

ChipList developers news channel Last Months Developers News


Page viewed 1831 times since Wed 11 Mar 2009, 18:41.