]> git.ipfire.org Git - thirdparty/vala.git/commit
codegen: Prioritize "array_length=true" over "array_null_terminated=true"
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 10 Oct 2017 12:09:10 +0000 (14:09 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 10 Oct 2017 13:38:54 +0000 (15:38 +0200)
commit8a010511b02e165c1c84cd62a13500eaa37e161f
tree589f5d89e85cd89bf69472bee0b468dfff49ae1d
parent4a2e3212d2fe502b44d4d299fff33c6060d840f5
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