Skip to content

ideas 1 #5

@kbridge

Description

@kbridge

如果把cdef做成一个类似于包管理器的 类型管理器,要设计一种存储、传输(下载)类型的格式

1.把anonymous struct/union和function call都做成field-local的存储

例如之前是

<func id="1">
	<arg base=".VOID" wrap="p" />
	<arg base=".VOID" wrap="p" />
</func>

<field base=".VOID" wrap="f 1 p" name="CleanupGroupCancelCallback" offset="24" />

而现在可以改成

<field base=".VOID" wrap="f 1 p" name="CleanupGroupCancelCallback" offset="24">
	<func id="1">
		<arg base=".VOID" wrap="p" />
		<arg base=".VOID" wrap="p" />
	</func>
</field>

2.``package library''端的存储,根据Windows大内核版本来划分不同的结构,建立一个general目录存储结构的默认版本

general/
win2k/
win7/
win8/
win8.1/

? 区分64-bit和32-bit

3.prim types(如int)的表示由本地配置指定,这样就能被用户自定义,如:

char=u8
short=u16
int=u32

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions