After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 788775 - codegen: Prioritize "array_length=true" over "array_null_terminated=true"
codegen: Prioritize "array_length=true" over "array_null_terminated=true"
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Code Generator
0.39.x
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2017-10-10 12:57 UTC by Rico Tzschichholz
Modified: 2017-10-12 20:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
codegen: Prioritize "array_length=true" over "array_null_terminated=true" (7.11 KB, patch)
2017-10-10 13:00 UTC, Rico Tzschichholz
committed Details | Review

Description Rico Tzschichholz 2017-10-10 12:57:37 UTC
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.
Comment 1 Rico Tzschichholz 2017-10-10 13:00:09 UTC
Created attachment 361246 [details] [review]
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.
Comment 2 Rico Tzschichholz 2017-10-12 20:16:49 UTC
Attachment 361246 [details] pushed as 8a01051 - codegen: Prioritize "array_length=true" over "array_null_terminated=true"