vxworks入门疑问
请教各位,vxworks里面经常出现的:LOCAL STATUS FUNCPTR等等到底表示什么啊/谢谢了。
STATUS 其实是int, vxworks里面重新定义了一些类型, 是为了理解方便.
FUNCPTR 就是函数指针了, 应该就是 (void *)了
很多朋友都问过这种问题:
vxWorks.h
/* storage class specifier definitions */
#define FAST register
#define IMPORT extern
#define LOCAL static
vxTypesOld.h
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 */
共6条 1/1
1
跳转至
页