Gentoo Archives: gentoo-commits

From: "Petteri Räty" <betelgeuse@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/libbash:master commit in: bashast/
Date: Sun, 29 May 2011 11:20:26
Message-Id: 86299ea48f38459fa038a5c9aca1bc6d3b24f7a6.betelgeuse@gentoo
1 commit: 86299ea48f38459fa038a5c9aca1bc6d3b24f7a6
2 Author: Mu Qiao <qiaomuf <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 27 14:06:19 2011 +0000
4 Commit: Petteri Räty <betelgeuse <AT> gentoo <DOT> org>
5 CommitDate: Sun May 29 11:44:52 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/libbash.git;a=commit;h=86299ea4
7
8 Walker: rename command_index to condition_index
9
10 ---
11 bashast/libbashWalker.g | 6 +++---
12 1 files changed, 3 insertions(+), 3 deletions(-)
13
14 diff --git a/bashast/libbashWalker.g b/bashast/libbashWalker.g
15 index 39b84c5..f2fba4a 100644
16 --- a/bashast/libbashWalker.g
17 +++ b/bashast/libbashWalker.g
18 @@ -690,21 +690,21 @@ for_modification
19
20 while_expr
21 @declarations {
22 - ANTLR3_MARKER command_index;
23 + ANTLR3_MARKER condition_index;
24 bool negate;
25 }
26 :^((WHILE { negate = false; } | UNTIL { negate = true; }) {
27 // omit the first DOWN token
28 SEEK(INDEX() + 1);
29
30 - command_index = INDEX();
31 + condition_index = INDEX();
32 while(true)
33 {
34 command_list(ctx);
35 if(walker->get_status() == (negate? 0 : 1))
36 break;
37 command_list(ctx);
38 - SEEK(command_index);
39 + SEEK(condition_index);
40 }
41 // Skip the body and get out
42 seek_to_next_tree(ctx);