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

Add registry for numerical type size and endianness #17

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Commits on Feb 13, 2020

  1. Configuration menu
    Copy the full SHA
    c3268d1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e121043 View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2020

  1. Register all NumericTypeInfo structs and reuse GLib byte order macros

    Use G_DEFINE_BOXED_TYPE_WITH_CODE to register numeric typeinfo
    counterpart lazily in the *_get_type routine.
    
    Reuse GLib byte order macros since our definitions are at best
    redundant.
    arteymix committed Feb 15, 2020
    Configuration menu
    Copy the full SHA
    af66464 View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2020

  1. Remove dynamic initialization of GLib numerical types and simplify API

    Let numeric_type_register_static take the NumericTypeInfo struct as
    argument.
    
    Move registration of numeric counterparts of GLib fundamental types into
    numeric_get_type_info().
    
    Mark the TYPE_TABLE symbol as static.
    
    Remove _get_name, _get_type and _get_byte_order in favour of using the
    now public NumericTypeInfo struct members directly.
    arteymix committed Feb 16, 2020
    Configuration menu
    Copy the full SHA
    2b4c70d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    66dda91 View commit details
    Browse the repository at this point in the history
  3. Add init/clear for NumericTypeInfo

    It will be useful later on when we integrate dynamic types.
    arteymix committed Feb 16, 2020
    Configuration menu
    Copy the full SHA
    8614cd6 View commit details
    Browse the repository at this point in the history