3.4.3. 块范围函数声明

支持以下两个块范围函数声明扩展:

示例


void f1(void)

{

    static void g(void); /* static function declared in local scope */

                         /* use of static keyword is illegal in strict ISO C */

}



void f2(void)

{

    g();                 /* uses previous local declaration */

}



static void g(int i)

{ } /* error - conflicts with previous declaration of g */

Copyright © 2007 ARM Limited. All rights reserved. ARM DUI 0348AC
Non-Confidential