|
|
| version 1.40, 2001/03/18 13:22:07 | version 1.41, 2001/03/18 13:38:48 |
|---|---|
| Line 15 | Line 15 |
| // String | // String |
| String::String(Pool& apool) : | String::String(Pool& apool, const char *src, bool tainted) : |
| Pooled(apool) { | Pooled(apool) { |
| last_chunk=&head; | last_chunk=&head; |
| head.count=CR_PREALLOCATED_COUNT; | head.count=CR_PREALLOCATED_COUNT; |
| Line 23 String::String(Pool& apool) : | Line 23 String::String(Pool& apool) : |
| head.preallocated_link=0; | head.preallocated_link=0; |
| link_row=&head.rows[head.count]; | link_row=&head.rows[head.count]; |
| fused_rows=fsize=0; | fused_rows=fsize=0; |
| if(src) | |
| if(tainted) | |
| APPEND_TAINTED(src, 0, 0, 0); | |
| else | |
| APPEND(src, 0, 0, 0); | |
| } | } |
| void String::expand() { | void String::expand() { |