Skip to content

Type flags WPO, HID and IDX#440

Merged
joente merged 17 commits intomainfrom
type_flags
Feb 19, 2026
Merged

Type flags WPO, HID and IDX#440
joente merged 17 commits intomainfrom
type_flags

Conversation

@joente
Copy link
Member

@joente joente commented Feb 19, 2026

Description

With the new type caching, we would required yet another boolean for the new_type() and set_type() functions.
This pull requests replaces the boolean arguments with a singe flags argument and introduces flags:

Flag Description
WPO (2) When set, the new type will be created with wrap-only mode enabled.
HID (4) When set, the new type will be created with hide-id enabled. See "hid" action on mod_type for more information.
IDX (8) When set, auto-index will be enabled for the new type. See "idx" action on mod_type for more information.

This is not a breaking change as we kept the old syntax working.

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

  • Test type

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • New and existing unit tests pass locally with my changes

@joente joente self-assigned this Feb 19, 2026
@joente joente merged commit 4db939e into main Feb 19, 2026
@joente
Copy link
Member Author

joente commented Feb 19, 2026

  • Additional fix for garbage collection. Set next thing ID after loading things from full storage gc.
  • Added WPO, HID and IDX flags for new_type() and set_type() with compatibility for old syntax.
  • Small improvements to type cache.

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 this pull request may close these issues.

1 participant

Comments