diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2003-05-13 12:48:37 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2003-05-13 12:48:37 +0000 |
commit | 972c528c027687ecc81bc20b360f59cbbf953da4 (patch) | |
tree | 3ff122c957cebd7013291757b67bef345b65a132 | |
parent | c00f567b4288a2d835e85a28d20378423df2f9c3 (diff) | |
download | ATCD-972c528c027687ecc81bc20b360f59cbbf953da4.tar.gz |
ChangeLogTag: Tue May 13 07:47:09 2003 Chad Elliott <elliott_c@ociweb.com>
-rw-r--r-- | ChangeLog | 29 | ||||
-rw-r--r-- | bin/MakeProjectCreator/modules/TemplateParser.pm | 18 |
2 files changed, 36 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog index 9524c1f3edc..7afed6a3ea6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,16 +1,23 @@ +Tue May 13 07:47:09 2003 Chad Elliott <elliott_c@ociweb.com> + + * bin/MakeProjectCreator/modules/TemplateParser.pm: + + If a value is an empty string or an array of empty strings, then + we will assume the value is undefined for <%if()%> statements. + Mon May 12 19:27:54 2003 Nanbor Wang <nanbor@cs.wustl.edu> - * ace/Thread_Manager.cpp (wait): Fixed an occasional assertion - failure during shutdown of our servers which seems be caused by - a double deletion of an item in the ACE_Thread_Manager - terminated_thr_list_ in ACE_Thread_Manager::wait (). - - The statement "item = this->terminated_thr_list_.delete_head ()" - is not protected by the mutex and can be access by - more than one thread modifying the terminated_thr_list_. - Extending the mutex protection scope fixed this problem. - Thanks to Bruce McIntosh <bruce.mcintosh@boeing.com> for - suggesting the fix. [Bug 1505] + * ace/Thread_Manager.cpp (wait): Fixed an occasional assertion + failure during shutdown of our servers which seems be caused by + a double deletion of an item in the ACE_Thread_Manager + terminated_thr_list_ in ACE_Thread_Manager::wait (). + + The statement "item = this->terminated_thr_list_.delete_head ()" + is not protected by the mutex and can be access by + more than one thread modifying the terminated_thr_list_. + Extending the mutex protection scope fixed this problem. + Thanks to Bruce McIntosh <bruce.mcintosh@boeing.com> for + suggesting the fix. [Bug 1505] Mon May 12 13:32:56 2003 Chad Elliott <elliott_c@ociweb.com> diff --git a/bin/MakeProjectCreator/modules/TemplateParser.pm b/bin/MakeProjectCreator/modules/TemplateParser.pm index 6fe8f1986f1..ae00768229f 100644 --- a/bin/MakeProjectCreator/modules/TemplateParser.pm +++ b/bin/MakeProjectCreator/modules/TemplateParser.pm @@ -584,6 +584,24 @@ sub handle_if { $val = $self->get_value($val) } + if (defined $val) { + if (UNIVERSAL::isa($val, 'ARRAY')) { + my($empty) = 1; + foreach my $v (@$val) { + if ($v ne '') { + $empty = 0; + last; + } + } + if ($empty) { + $val = undef; + } + } + elsif ($val eq '') { + $val = undef; + } + } + if (!defined $val) { $self->{'if_skip'} = $true; } |