Skip to content

fix(gir): consider implied null-terminated for array types#148

Draft
ianprime0509 wants to merge 1 commit into
mainfrom
push-owqrwmxqntox
Draft

fix(gir): consider implied null-terminated for array types#148
ianprime0509 wants to merge 1 commit into
mainfrom
push-owqrwmxqntox

Conversation

@ianprime0509

@ianprime0509 ianprime0509 commented Nov 27, 2025

Copy link
Copy Markdown
Owner

Closes #70

TODO: see if the other remaining GIR fixes from #107 are still needed.
TODO: the heuristic for scalar array element types is ugly and probably should be improved
TODO: the test case for an array of gpointers which itself has C type gpointer is very tricky and needs additional handling

There are cases to consider related to using gpointer as the C type for arrays:

  • xmlstarlet sel -t -m "//_:array[@c:type='gpointer']" -c ../../.. /usr/share/gir-1.0/*.gir
  • xmlstarlet sel -t -m "//_:array[@c:type='gconstpointer']" -c ../../.. /usr/share/gir-1.0/*.gir

@ianprime0509
ianprime0509 force-pushed the push-owqrwmxqntox branch 3 times, most recently from 720c41a to c2ee453 Compare November 28, 2025 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add null sentinel to null-terminated array of pointers

1 participant