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

Nested Bitfields #402

Closed
3 tasks
water111 opened this issue May 1, 2021 · 1 comment · Fixed by #723
Closed
3 tasks

Nested Bitfields #402

water111 opened this issue May 1, 2021 · 1 comment · Fixed by #723

Comments

@water111
Copy link
Collaborator

water111 commented May 1, 2021

It looks like they do exist. Example: field prim in gif-tag64.

They are allowed by the type system and work for dynamic stuff in the compiler. We still need:

  • Static stuff in the compiler
  • Static stuff in the decompiler (static gif-tag64 in font-h)
  • Dynamic stuff in the decompiler (I think this might work already? Need a test case)
@water111
Copy link
Collaborator Author

Will be fixed in #723.
For example, enum in a bitfield in a bitfield.

        (new 'static 'gif-tag64
             :nloop #x1
             :eop #x1
             :pre #x1
             :prim (new 'static 'gs-prim :prim (gs-prim-type tri-fan) :tme #x1 :fge #x1 :abe #x1)
             :nreg #xc
             )

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

Successfully merging a pull request may close this issue.

1 participant