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]

Trival patch diagnostic.h


All

Bootstrapped x86-linux

Graham

ChangeLog

	* diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
	(diagnostic_prefixing_rule): Likewise.
	(diagnostic_line_cutoff): Likewise.
	(diagnostic_kind_count): Likewise.

--------------------------------------------------------------------------------
Index: diagnostic.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/diagnostic.h,v
retrieving revision 1.32
diff -c -p -r1.32 diagnostic.h
*** diagnostic.h        2001/06/28 12:26:33     1.32
--- diagnostic.h        2001/07/30 19:15:06
*************** struct diagnostic_context
*** 226,242 ****

  /* Client supplied function used to decode formats.  Can operate on both
   `output_buffer *' and `diagnostic_context *'.  */
! #define diagnostic_format_decoder(DC) ((output_buffer *)DC)->format_decoder
!    ((output_buffer *)DC)->state.prefixing_rule

  /* Maximum characters per line in automatic line wrapping mode.
     Zero means don't wrap lines. */
  #define diagnostic_line_cutoff(DC) \
!    ((output_buffer *)DC)->state.ideal_maximum_length

  /* This diagnostic context is used by front-ends that directly output
     diagnostic messages without going through `error', `warning',
--- 226,242 ----
  
  /* Client supplied function used to decode formats.  Can operate on both
   `output_buffer *' and `diagnostic_context *'.  */
! #define diagnostic_format_decoder(DC) ((output_buffer *)(DC))->format_decoder
  
  /* Prefixing rule used in formatting a diagnostic message.  Accepts both
     `output_buffer *' and `diagnostic_context *'.  */
  #define diagnostic_prefixing_rule(DC) \
!    ((output_buffer *)(DC))->state.prefixing_rule
  
  /* Maximum characters per line in automatic line wrapping mode.
     Zero means don't wrap lines. */
  #define diagnostic_line_cutoff(DC) \
!    ((output_buffer *)(DC))->state.ideal_maximum_length
  
  /* This diagnostic context is used by front-ends that directly output
     diagnostic messages without going through `error', `warning',
*************** extern output_buffer *diagnostic_buffer;
*** 248,254 ****

  /* The total count of a KIND of diagnostics meitted so far.  */
  #define diagnostic_kind_count(DC, DK) \
!    ((output_buffer *)DC)->state.diagnostic_count[(int) DK]

  /* The number of errors that have been issued so far.  Ideally, these
     would take an output_buffer as an argument.  */
--- 248,254 ----

  /* The total count of a KIND of diagnostics meitted so far.  */
  #define diagnostic_kind_count(DC, DK) \
!    ((output_buffer *)(DC))->state.diagnostic_count[(int) (DK)]

  /*  number of errors that have been issued so far.  Ideally, these
     would take an output_buffer as an argument.  */
--------------------------------------------------------------------------------


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