Navigation Menu

Skip to content

Commit

Permalink
Fix accidental duplicaton in environment
Browse files Browse the repository at this point in the history
	This was evident by typing env several times
	Could cause some programs to misbehave
  • Loading branch information
frkoehle committed Mar 6, 2010
1 parent b4c48cd commit 5d0cea3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test.xs
Expand Up @@ -63,11 +63,15 @@ fn expect-success { ||
fn expect-failure {
! expect-success
}
fn match-abs { |result|
log2 Absolute matching...
~ `` '' output $^result
}
fn match { |result|
log2 Matching...
~ `` '' output *^$^result^*
}
fn match_re { |result|
fn match-re { |result|
log2 Match_re....
eval '~ `` '''' output *'^$^result^'*'
}
Expand Down
1 change: 1 addition & 0 deletions var.cxx
Expand Up @@ -220,6 +220,7 @@ static void mkenv0(Dict::value_type pair) {

extern Vector* mkenv(void) {
if (isdirty || rebound) {
env.clear();
std::for_each(vars.begin(), vars.end(), mkenv0);

isdirty = false;
Expand Down

0 comments on commit 5d0cea3

Please sign in to comment.