GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Extend codegen to allow simple typedefs · Issue #801 · DFHack/df-structures

Extend codegen to allow simple typedefs #801

New issue
Copy link
New issue
Copy link
Open
Open
Extend codegen to allow simple typedefs#801
Copy link

Description

@quietust
quietust
opened on Sep 1, 2024
Issue body actions

Dwarf Fortress's code makes use of a wide variety of simple integer typedefs: for example, there's typedef int16_t LocalPos; for local map coordinates, typedef uint16_t Temperature; for (Urist-scaled) temperature values, and typedef int32_t MatGloss; for materials that need to reference creatures, plants, or histfigs.

Historically, some of these have changed - notably, MatGloss changed from int16_t to int32_t between 0.28.181.40d and 0.31.01, and AppearanceModifierValue (used in body/bp appearance modifiers as well as hair length styles) changed from int16_t to int32_t between 0.31.25 and 0.34.11. Being able to reference these types by name could potentially make it easier to consume future structure updates, and it could potentially also make it easier to see what kind of data is stored in a field (if its name happens to be unclear).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.