Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ideas 1 #5

Open
kbridge opened this issue Apr 5, 2018 · 0 comments
Open

ideas 1 #5

kbridge opened this issue Apr 5, 2018 · 0 comments

Comments

@kbridge
Copy link
Contributor

kbridge commented Apr 5, 2018

如果把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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant