codegen: Prioritize "array_length=true" over "array_null_terminated=true"
commitba57f46afc741d2d9f58fb3cbd2084ef7ef7876c
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 10 Oct 2017 12:09:10 +0000 (10 14:09 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 26 Oct 2017 07:15:08 +0000 (26 09:15 +0200)
treea271fcbcd16a80a5d76e74ab03b90934cba27f81
parent6a45760aa8f13122b0dc2791aaeb0978889496fd
codegen: Prioritize "array_length=true" over "array_null_terminated=true"

If arrays claim to have an array-length and also are null-terminated then
use and rely on the given length.

Adapt the girparser for this and add "array_length = true" accordingly.

https://bugzilla.gnome.org/show_bug.cgi?id=788775
codegen/valaccodeattribute.vala
tests/Makefile.am
tests/basic-types/bug788775.vala [new file with mode: 0644]
tests/gir/bug788775.test [new file with mode: 0644]
vala/valagirparser.vala
vapi/glib-2.0.vapi