--- parser3/src/classes/hash.C 2003/04/03 10:48:24 1.54.2.13.2.14 +++ parser3/src/classes/hash.C 2003/11/06 11:12:44 1.58 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_HASH_C="$Date: 2003/04/03 10:48:24 $"; +static const char* IDENT_HASH_C="$Date: 2003/11/06 11:12:44 $"; #include "classes.h" #include "pa_vmethod_frame.h" @@ -82,7 +82,7 @@ public: try { String& cell=*new String; if(length) - cell.append_help_length(ptr, length, String::L_TAINTED); + cell.append_know_length(ptr, length, String::L_TAINTED); if(column_index==0) { VHash* row_vhash=new VHash; row_hash=&row_vhash->hash(); @@ -277,7 +277,7 @@ static void _delete(Request& r, MethodPa } #ifndef DOXYGEN -struct Foreach_info { +struct Hash_foreach_info { Request *r; const String* key_var_name; const String* value_var_name; @@ -291,7 +291,7 @@ struct Foreach_info { static void one_foreach_cycle( HashStringValue::key_type akey, HashStringValue::value_type avalue, - Foreach_info *info) { + Hash_foreach_info *info) { info->vkey->set_string(*new String(akey, String::L_TAINTED)); Value& ncontext=*info->r->get_method_frame()->caller(); ncontext.put_element(*info->key_var_name, info->vkey, false); @@ -307,7 +307,7 @@ static void one_foreach_cycle( info->r->write_pass_lang(sv_processed); } static void _foreach(Request& r, MethodParams& params) { - Foreach_info info; + Hash_foreach_info info={0}; info.r=&r; info.key_var_name=¶ms.as_string(0, "key-var name must be string"); info.value_var_name=¶ms.as_string(1, "value-var name must be string");