Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • G GLib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 853
    • Issues 853
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 54
    • Merge requests 54
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • GLib
  • Merge requests
  • !2948

ghash: document g_hash_table_steal_extended() behavior for sets

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Thomas Haller requested to merge th/ghash-steal-extended-doc into main Oct 13, 2022
  • Overview 6
  • Commits 2
  • Pipelines 2
  • Changes 1

GHashTable is optimized for using g_hash_table_add(), where the key and the value are identical.

When using g_hash_table_steal_extended() on such a dictionary, and requesting both a key and a value, then the stolen value will be NULL.

That would be easy to fix, but it also would be an API break. Instead, document this behavior.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: th/ghash-steal-extended-doc