This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] gdb: remove local extern declaration of cli_styling


>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:

Simon> 	* ui-file.c: Include cli/cli-style.h.
Simon> 	(term_cli_styling): Remove cli_styling declaration.

Thanks for doing this.

I think as a rule it's best to always have declarations in a header and
never in the .c code.  That way they can be checked against the
definition.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]