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]
Other format: [Raw text]

Re: [PATCH] Empty BINCL/EINCL


Hi Devang,

+ static void emit_bincl_stab             PARAMS ((const char *));

For new code, ISO C should be used, so no PARAMS, and no old-style
function definitions.

+ /* If zero then there is no pending BINCL */

This comment needs to be a full sentence, like:

/* If zero then there is no pending BINCL.  */

and there are a few more like this:

+   enum binclstatus bincl_status;      /* Keep track of lazy bincl */
+   const char *pending_bincl_name;     /* Name of bincl */
+   struct dbx_file *prev;              /* Chain to traverse all pending bincls */
+   /* Find first pending bincl */
+   /* Now emit all bincls */
+ 	  /* Update file number and status */

This comment:

+   /* Do not assign file number now. Delay it until we actually emit BINCL.  */

hould have two spaces after the '.'.

With these minor formatting changes, the patch is OK.

-- 
- Geoffrey Keating <geoffk@geoffk.org>


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