extern "C" fixes for sunCC

Tom Tromey tromey@redhat.com
Thu Jan 3 15:44:00 GMT 2013

>>>>> "Marc" == Marc Glisse <marc.glisse@inria.fr> writes:

Marc> libcpp/
Marc> 	* line-map.c (get_combined_adhoc_loc): Cast to extern "C" type.


Marc>  	  line_map_realloc reallocator
Marc> -	      = set->reallocator ? set->reallocator : xrealloc;
Marc> +	      = set->reallocator ? set->reallocator
Marc> +				 : (line_map_realloc) xrealloc;

The indentation is wrong here, and it needs extra parens, per the GNU
coding standards.

I think it should have a comment as well.


More information about the Gcc-patches mailing list