Update to 0.12.1

This commit is contained in:
Tomas Bzatek 2011-06-17 18:09:41 +02:00
parent b5b28e8abf
commit 110fa51693
4 changed files with 8 additions and 34 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/vala-0.11.7.tar.bz2
/vala-0.12.0.tar.bz2
/vala-0.12.1.tar.xz

View File

@ -1 +1 @@
b11fafaa705085342156312e356b6ff2 vala-0.12.0.tar.bz2
27e6e852b8f6b5695654029b7914b89d vala-0.12.1.tar.xz

View File

@ -1,27 +0,0 @@
From 5d74330d6c660ec7bc6caa6b3c23921b93358204 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=BCrg=20Billeter?= <j@bitron.ch>
Date: Tue, 5 Apr 2011 19:28:31 +0200
Subject: [PATCH] Allow access to length of constant array in constant initializer lists
Fixes bug 643010.
---
vala/valamemberaccess.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/vala/valamemberaccess.vala b/vala/valamemberaccess.vala
index dfb0eb6..7f4b6df 100644
--- a/vala/valamemberaccess.vala
+++ b/vala/valamemberaccess.vala
@@ -169,6 +169,9 @@ public class Vala.MemberAccess : Expression {
var method = symbol_reference as Method;
if (symbol_reference is Constant) {
return true;
+ } else if (symbol_reference is ArrayLengthField && inner != null && inner.symbol_reference is Constant) {
+ // length of constant array
+ return true;
} else if (method != null &&
(method.binding == MemberBinding.STATIC || prototype_access)) {
return true;
--
1.7.4.2

View File

@ -1,8 +1,8 @@
%global api_ver 0.12
Name: vala
Version: 0.12.0
Release: 2%{?dist}
Version: 0.12.1
Release: 1%{?dist}
Summary: A modern programming language for GNOME
Group: Development/Languages
@ -13,12 +13,10 @@ URL: http://live.gnome.org/Vala
# note: do not use a macro for directory name
# as it breaks Colin Walters' automatic build script
# see https://bugzilla.redhat.com/show_bug.cgi?id=609292
Source0: http://download.gnome.org/sources/vala/0.12/vala-%{version}.tar.bz2
Source0: http://download.gnome.org/sources/vala/0.12/vala-%{version}.tar.xz
Source1: vala-mode.el
Source2: vala-init.el
Source3: emacs-vala-COPYING
# https://bugzilla.gnome.org/show_bug.cgi?id=643010
Patch0: vala-0.12.0-allow_constant_arrays.patch
BuildRequires: flex
BuildRequires: bison
@ -139,7 +137,6 @@ the emacs-%{name} package to use Vala with GNU Emacs.
%prep
%setup -q
%patch0 -p1 -b .allow_constant_arrays
%build
@ -235,6 +232,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Fri Jun 17 2011 Tomas Bzatek <tbzatek@redhat.com> - 0.12.1-1
- Update to 0.12.1
* Tue Apr 5 2011 Michel Salim <salimma@fedoraproject.org> - 0.12.0-2
- Allow access to length of constant array in constant initializer lists