vxworks中FUNCPTR、LOCAL、STATUS的原型

 比较常见的在/target/h/vxworks.h文件中:

        LOCAL<=>static
        STATUS<=>int
        IMPORT<=>extern
        FAST<=>register

 

    FUNCPTR在文件target/h/types/vxTypesOld.h中:

    #ifdef __cplusplus
        typedef int         (*FUNCPTR) (...);     /* ptr to function returning int */
        typedef void         (*VOIDFUNCPTR) (...); /* ptr to function returning void */
        typedef double         (*DBLFUNCPTR) (...);  /* ptr to function returning double*/
        typedef float         (*FLTFUNCPTR) (...);  /* ptr to function returning float */
    #else
        typedef int         (*FUNCPTR) ();       /* ptr to function returning int */
        typedef void         (*VOIDFUNCPTR) (); /* ptr to function returning void */
        typedef double         (*DBLFUNCPTR) ();  /* ptr to function returning double*/
        typedef float         (*FLTFUNCPTR) ();  /* ptr to function returning float */
    #endif            /* _cplusplus */

相关内容推荐