Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#1102 closed task (fixed (in master))

Fix large bit flag fields

Reported by: MarbleDice Owned by: MarbleDice
Milestone: 3.2.0 Keywords: cleanup
Cc:

Description

Goals and characteristics

  • Use list-effects.h style tables for flags and associated data
  • Sequential enum for bit flag symbols, for easier iteration and management
  • Scalable bit fields that automatically expand (at compile time) to support the defined number of bit flags.
  • A set of accessor and mutator functions for bit fields which handle the array element offset and binary flag value based on a flag's id (no more flagset or TR2_* nonsense)
  • Continue to support bit masks in a somewhat ergonomic way
  • No warnings
  • Do not unduly compromise performance

Attachments (2)

z-bitflag.h (3.3 KB) - added by MarbleDice 10 years ago.
Preliminary bitflag header file.
z-bitflag.c (12.8 KB) - added by MarbleDice 10 years ago.
Preliminary bitflag code file.

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by MarbleDice

Preliminary bitflag header file.

Changed 10 years ago by MarbleDice

Preliminary bitflag code file.

comment:1 Changed 10 years ago by MarbleDice

  • Resolution set to fixed
  • Status changed from new to closed

[33262ef] (SVN r1948)

See also #1101, #1124

comment:2 Changed 10 years ago by anonymous

Warning fixes in [267939c] (SVN r1949)

comment:3 Changed 10 years ago by MarbleDice

See also #1125 (crash bug)

comment:4 Changed 10 years ago by MarbleDice

Fix another crash in [9ddeb6e] (SVN r1958)

Note: See TracTickets for help on using tickets.