Skip to content

Add extra pointer types to keep things tidy #105

Closed
@flowCRANE

Description

@flowCRANE

The source code for these headers uses various data types, with aliases included. I don't know exactly how many of them there are, but some of them don't have declared pointer equivalents, so you have to declare them yourself, apart from the code of the headers library.

One such example is TSDL_JoystickPowerState. This is a dedicated integer type, but there is no pointer equivalent — there is no PSDL_JoystickPowerLevel declared anywhere. A good practice would be to add missing pointer types to the library for each existing non-pointer data type.


BTW: Why the TSDL_JoystickPowerState is declared as Integer?

type
  TSDL_JoystickPowerLevel = type Integer;

The same with TSDL_JoystickType:

type
  TSDL_JoystickType = type Integer;

If cint* and cuint* types are used everywhere else, it's fine to actually use them everywhere to keep things tidy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionDiscuss an idea/feature/PR/issue...good first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions