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 */

猜你喜欢

转载自blog.csdn.net/heart18335101121/article/details/53869715
今日推荐