]> git.ipfire.org Git - thirdparty/vala.git/commit
codegen: Add valid support for const multi-dimensional arrays
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 12 Jan 2011 15:47:17 +0000 (16:47 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 17 Feb 2018 22:19:47 +0000 (23:19 +0100)
commitdff67ff218644f5d99ae7709046609dacf30f263
tree19c021e3e83d3e0497e0db3592c3a7e0a7b0c8d9
parent9093a1d714a87504fa264dd5f72aaf5f8a29d5a4
codegen: Add valid support for const multi-dimensional arrays

For example this
  const int[,,] tri_numbers = {{{1, 2, 3}, {5, 5, 6}}, {{6, 7}}};
correctly transfoms to
  const gint tri_numbers[2][2][3] = {{{1, 2, 3}, {5, 5, 6}}, {{6, 7}}};

https://bugzilla.gnome.org/show_bug.cgi?id=604371
codegen/valaccodebasemodule.vala
codegen/valaccodememberaccessmodule.vala
tests/Makefile.am
tests/basic-types/bug604371.vala [new file with mode: 0644]