This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: [RFA] New register definition interface


BTW,

In reading the coding standard I would interpret ``try to avoid'' as
``don't do this in new code''. For instance where the standard
indicates:

	Try to avoid assignments inside if-conditions. For example, don't write
this: 

	if ((foo = (char *) malloc (sizeof *foo)) == 0)
	  fatal ("virtual memory exhausted");

I'd interpret it as don't do this in new code.  Even though there are
many examples in existing code.

	Andrew

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