Andre Poenitz <[EMAIL PROTECTED]> writes: | On Thu, Mar 11, 2004 at 12:16:49PM +0100, Lars Gullik Bjønnes wrote: >> | + // Now the real work >> | string mname = os::slashify_path(name_); >> | // Remove the extension. >> | mname = ChangeExtension(name_, string()); >> | @@ -73,7 +85,15 @@ >> | // Replace '.' in the file name with '_' >> | mname = subst(mname, ".", "_"); >> | // Add the extension back on >> | - return ChangeExtension(mname, GetExtension(name_)); >> | + mname = ChangeExtension(mname, GetExtension(name_)); >> | + // Prepend a counter to the filename. This is necessary to make >> | + // the mangled name unique. >> | + static int counter = 0; >> >> You shouldn't intialize this, that is done by the compilator. > | But it's not exactly wrong, either...
Nah... but we don't initlaize statics in other places, so no reason to do it here etiher. -- Lgb