Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
饶先宏
Lcom
提交
3cdbaeb3
L
Lcom
项目概览
饶先宏
/
Lcom
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
Lcom
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
3cdbaeb3
编写于
7月 08, 2021
作者:
饶先宏
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
202107081052 修改object.h支持用c++实现LCOM对象
上级
d5ae254c
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
11 addition
and
4 deletion
+11
-4
include/object.h
include/object.h
+10
-3
src/dlist.c
src/dlist.c
+1
-1
未找到文件。
include/object.h
浏览文件 @
3cdbaeb3
...
...
@@ -30,7 +30,8 @@
/*
*
修改记录:
202105140816: 根据git的要求增加License
202105140816:rxh 根据git的要求增加License
202107081052:rxh 修改object.h支持用c++实现LCOM对象
*/
...
...
@@ -221,7 +222,7 @@ typedef struct _sObjectHeader {
&& isGUIDEqual(((sObjectHeader *)(objectThis(object)))->__object_clsid, classid) )
#define objectQueryInterface(object, iid, pInterface) \
(objectPtrValid(object)? \
(*(IObject **)(object))->QueryInterface((HOBJECT)(object), (iid),
pInterface
): \
(*(IObject **)(object))->QueryInterface((HOBJECT)(object), (iid),
(const void **)(pInterface)
): \
EIID_INVALIDOBJECT)
#define objectAddRef(object) (objectPtrValid(object)? \
(*(IObject **)(object))->AddRef((HOBJECT)(object)): \
...
...
@@ -353,6 +354,12 @@ int str2iid(const char* str, IIDTYPE iid);
#define INTERFACE_INIT(__interface, objptr, _obj, interfacename) \
objptr->INTERFACE_VAR(__interface) = &_obj##_##interfacename##_interface;
#ifdef __cplusplus
#define CFUNC extern "C"
#else
#define CFUNC
#endif
#define OBJECT_FUNCDECLARE(_obj, _clsid)\
static int _obj##QueryInterface(HOBJECT object, IIDTYPE iid, const void **pInterface); \
static int _obj##AddRef(HOBJECT object); \
...
...
@@ -372,7 +379,7 @@ int str2iid(const char* str, IIDTYPE iid);
static int _obj##Register() {\
return objectCreateRegister(_clsid, _obj##Create, _obj##ModuleInfo); \
}\
OFUNCPTR A_u_t_o_registor_##_obj = (OFUNCPTR)
_obj##Register;
CFUNC int (*A_u_t_o_registor_##_obj)() =
_obj##Register;
#define INTERFACE_HEADER(_obj, __interface, _localstruct) \
(int)&(((const _localstruct*)0)->__##__interface##_ptr), \
...
...
src/dlist.c
浏览文件 @
3cdbaeb3
...
...
@@ -262,7 +262,7 @@ QUERYINTERFACE_END
static
const
char
*
dlistheaderModuleInfo
()
{
return
"
1.0.1
-20210608.0612 Dual List Header"
;
return
"
0.3.0
-20210608.0612 Dual List Header"
;
}
static
int
dlistheaderCreate
(
const
PARAMITEM
*
pParams
,
int
paramcount
,
HOBJECT
*
pObject
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录