Skip to content

vala: better detect standard array length type

Val Och requested to merge v19930312/vala:array-length-global-int into main

Reasoning: my WIP generator of OpenGL bindings has a type gl.int. This results in all array lengths resolving as global::int and being explicitly written out, making already somewhat hard-to-read file even worse.

This moves check for length type being standard or not into a separate function and adds support for to_qualified_string returning global::int in addition to int.

Merge request reports