Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
vala
vala
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 702
    • Issues 702
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 38
    • Merge Requests 38
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • GNOME
  • valavala
  • Issues
  • #624

Closed
Open
Opened Mar 09, 2018 by bugzilla-migration@bugzilla-migrationReporter

Move GLib basic types in to glib-2.0-basic-types.vapi

Submitted by Al Thomas @astavale

Link to original bug (#794213)

Description

Created attachment 369518 glib-2.0: move basic types into glib-2.0-basic-types.vapi

This patch moves the definitions for int, etc. that are in the Vala global namespace from glib-2.0.vapi to their own VAPI. The patch is more for discussion than inclusion. It aims to be a model for including basic types from other platforms. For example if we wanted to exclude the GLib types and target POSIX:

valac my_source.vala --nostdpkg --pkg posix --pkg posix-basic-types

It is an example of targeting platforms at a low level without the need to introduce "profiles" in to the Vala codegen. In my view it is a more flexible approach. For example it would be fairly easy to add a Windows basic types binding. From https://msdn.microsoft.com/en-us/library/windows/desktop/aa373562(v=vs.85).aspx it looks like that is in Rpcndr.h.

Strangely this patch causes make check to fail. For the valadoc/test/drivers test I get:

G_DEBUG=fatal_warnings ./driver ** ERROR:drivers/generic-api-test.c:15456:test_driver: code should not be reached Makefile:1131: recipe for target 'check-TESTS' failed make[6]: *** [check-TESTS] Aborted (core dumped)

Patch 369518, "glib-2.0: move basic types into glib-2.0-basic-types.vapi":
0001-glib-2.0-move-basic-types-into-glib-2.0-basic-types..patch

To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
1.0
Milestone
1.0
Assign milestone
Time tracking
None
Due date
None
Reference: GNOME/vala#624