[Haiku-commits] r31263 - in haiku/trunk/src: add-ons/kernel/debugger/demangle apps/debugger/demangler

Axel Dörfler axeld at pinc-software.de
Sat Jun 27 10:11:39 CEST 2009


phoudoin at mail.berlios.de wrote:
> + Cleanup coding style violations.
[...]
> @@ -17,11 +17,17 @@
>  	char buffer[1024];
>  	const char* demangled;
>  	
> -	demangled = demangle_symbol(mangledName.String(), buffer,
> +	if (mangledName.Compare("_Z", 2) == 0)
> +		demangled = demangle_name_gcc3(mangledName.String(), buffer,
> +			sizeof(buffer));
> +	else
> +		demangled = demangle_symbol_gcc2(mangledName.String(), buffer,
>  			sizeof(buffer), NULL);

Multiline statements should always be enclosed in {} :-)

Bye,
   Axel.




More information about the Haiku-commits mailing list