--- parser3/src/main/pa_string.C 2001/01/26 18:34:02 1.5 +++ parser3/src/main/pa_string.C 2001/01/27 10:02:59 1.7 @@ -1,5 +1,5 @@ /* - $Id: pa_string.C,v 1.5 2001/01/26 18:34:02 paf Exp $ + $Id: pa_string.C,v 1.7 2001/01/27 10:02:59 paf Exp $ */ #include @@ -50,6 +50,10 @@ break2: } +String& String::operator = (String& src) { + return *this; +} + String& String::operator += (char *src) { if(chunk_is_full()) @@ -118,8 +122,8 @@ int String::used_rows() { return result; } -unsigned int String::hash_code() { - unsigned int result=0; +uint String::hash_code() { + uint result=0; Chunk *chunk=&head; do { @@ -128,7 +132,7 @@ unsigned int String::hash_code() { if(row==append_here) goto break2; - result=Hash::generic_code(result, row->item.ptr, row->item.size); + result=Hash::generic_code(result, row->item.ptr, row->item.size); row++; } chunk=row->link;