This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: fix of small typo



  In message <199812032058.RAA21785@pincoya.inf.utfsm.cl>you write:
  > mrs@wrs.com (Mike Stump) said:
  > 
  > [...]
  > 
  > >   #define ASM_FILE_START(FILE) \
  > > !   do {	output_file_directive (FILE, main_input_filename);	\
  > >     } while (0)
  > 
  > Can't the do{ .. }while(0) be removed here?
I don't recommend removing them.

The do { ... } while (0) constructs make maintenance significantly easier.

Such constructs are much more tolerant of being used in if/else arms
safely for example.

jeff


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