| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 673 人关注过本帖
标题:关于#define borland_dll
只看楼主 加入收藏
evilloop
Rank: 2
等 级:论坛游民
帖 子:36
专家分:22
注 册:2011-8-27
结帖率:71.43%
收藏
已结贴  问题点数:20 回复次数:3 
关于#define borland_dll
阅读一个源码的的时候,看到里边很多函数定义的时候会用int borland_dll funcname();的形式来定义
然后追溯到一个头文件看到 #define borland_dll

大部分时候#define后边会是两个参数,但上边的define只有一个参数,而后边的函数定义里又大幅使用,不太明白,有朋友知道什么意思么,求教了

#define borland_dll
typedef unsigned short int usint;
typedef unsigned char uchar;
//#include <windows.h>

#include "error_rtx.h"
#include "error_devio.h"
#include "flags_rtx.h"
#include "exclinuxdef.h"

/* prototypes for driver functions */

#ifdef __cplusplus
extern "C" {
#endif

/* Libdbg.c */
borland_dll char * Print_Error_RTx(int errorcode);
int borland_dll Get_Error_String_RTx(int errcode, char *errstring);

/* Libgen.c */
int     borland_dll  Read_Revision (void);
int     borland_dll  Read_Board_Intr_Status (void);
int     borland_dll  Read_Board_Status (void);
int     borland_dll  Read_Chan_Config_Stat (usint  channel);
int     borland_dll  Reset_Ttag (void);
搜索更多相关主题的帖子: include 朋友 
2013-09-01 11:17
pauljames
Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19
等 级:千里冰封
威 望:9
帖 子:1555
专家分:10000
注 册:2011-5-8
收藏
得分:7 
就是定义一个标志而已,说明后面这些函数都是borland_dll所有。为了防止他的函数跟别人开发的同名吧。

经常不在线不能及时回复短消息,如有c/单片机/运动控制/数据采集等方面的项目难题可加qq1921826084。
2013-09-01 14:47
jg658237
Rank: 7Rank: 7Rank: 7
来 自:青藏高原
等 级:黑侠
帖 子:224
专家分:529
注 册:2013-8-8
收藏
得分:7 
应该是没必要加吧,因为你试一下,有和没有的效果都一样,所以就省了。

武功再高也怕菜刀.
2013-09-02 13:09
rjsp
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
等 级:版主
威 望:528
帖 子:9008
专家分:53957
注 册:2011-1-18
收藏
得分:7 
用作导入 #define borland_dll
用作导出 #define borland_dll __declspec(dllexport)
多方面呀!
2013-09-02 13:38
快速回复:关于#define borland_dll
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017943 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved