forked from mxe/mxe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libgda-1-fixes.patch
70 lines (55 loc) · 1.84 KB
/
libgda-1-fixes.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
This file is part of MXE. See LICENSE.md for licensing information.
Contains ad hoc patches for cross building.
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Vivien Malerba <malerba@gnome-db.org>
Date: Sun, 22 Feb 2015 21:41:46 +0100
Subject: [PATCH 1/1] Misc. demos/ corrections
Fix of libgda-ui/demos/ddl_queries.c was excluded, because
we need this only to fix Perl failure.
diff --git a/libgda-ui/demos/geninclude.pl.in b/libgda-ui/demos/geninclude.pl.in
index 1111111..2222222 100755
--- a/libgda-ui/demos/geninclude.pl.in
+++ b/libgda-ui/demos/geninclude.pl.in
@@ -40,7 +40,7 @@ foreach $href (@demos) {
my $do_next = 0;
# parent detected
- if (defined @parents) {
+ if (@parents) {
foreach $foo (@parents) {
if ($foo eq $parent_name) {
$do_next = 1;
@@ -54,7 +54,7 @@ foreach $href (@demos) {
push @parents, $parent_name;
- $tmp = (defined @child_arrays)?($#child_arrays + 1):0;
+ $tmp = (@child_arrays)?($#child_arrays + 1):0;
push @child_arrays, "child$tmp";
push @demos, {"title" => $parent_name, "file" => "NULL",
@@ -62,7 +62,7 @@ foreach $href (@demos) {
}
}
-if (defined @parents) {
+if (@parents) {
$i = 0;
for ($i = 0; $i <= $#parents; $i++) {
$first = 1;
@@ -73,7 +73,7 @@ if (defined @parents) {
for ($j = 0; $j <= $#demos; $j++) {
$href = $demos[$j];
- if (!defined $demos[$j]) {
+ if (!$demos[$j]) {
next;
}
@@ -105,7 +105,7 @@ if (defined @parents) {
} @demos_old;
# sort the child arrays
-if (defined @child_arrays) {
+if (@child_arrays) {
for ($i = 0; $i <= $#child_arrays; $i++) {
@foo_old = @{$child_arrays[$i]};
@@ -133,7 +133,7 @@ foreach $href (@demos) {
print ", \n";
}
- if (defined @parents) {
+ if (@parents) {
for ($i = 0; $i <= $#parents; $i++) {
if ($parents[$i] eq $href->{title}) {