misc patch diagnostic.h

Graham Stott grahams@redhat.com
Sun Jan 6 00:28:00 GMT 2002


All

This small patch tidies up diagnostic.h.

Bootstrapped i686-pc-linux-gnu, all languages, no regressions.

Graham

ChangeLog

	* diagniostic.h: Update copyright date.
	(output_buffer_state): Add perenthesis.
	(output_buffer_format_args): Likewise.

-------------------------------------------------------------------
Index: diagnostic.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/diagnostic.h,v
retrieving revision 1.37
diff -c -p -r1.37 diagnostic.h
*** diagnostic.h        2001/10/28 12:42:01     1.37
--- diagnostic.h        2002/01/06 08:15:52
*************** 
*** 1,5 ****
  /* Various declarations for language-independent diagnostics subroutines.
!    Copyright (C) 2000, 2001 Free Software Foundation, Inc.
     Contributed by Gabriel Dos Reis <gdr@codesourcery.com>
    
  This file is part of GCC.
--- 1,5 ---- 
  /* Various declarations for language-independent diagnostics subroutines.
!    Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
     Contributed by Gabriel Dos Reis <gdr@codesourcery.com>

  This file is part of GCC.
*************** struct output_buffer
*** 132,138 ****

  /* Current state of the diagnostic_context' output_buffer.  This macro
     accepts both `diagnostic_context *' and `output_buffer *'.  */
! #define output_buffer_state(BUFFER) ((output_buffer *)BUFFER)->state

  /* The stream attached to the output_buffer, where the formatted
     diagnostics will ultimately go.  Works only on `output_buffer *'.  */
--- 132,138 ----
    
  /* Current state of the diagnostic_context' output_buffer.  This macro
     accepts both `diagnostic_context *' and `output_buffer *'.  */
! #define output_buffer_state(BUFFER) ((output_buffer *)(BUFFER))->state

  /* The stream attached to the output_buffer, where the formatted
     diagnostics will ultimately go.  Works only on `output_buffer *'.  */
*************** struct output_buffer
*** 145,151 ****
  /* The rest of the `variable argument list' not yet processed.
     This macro works on both `output_state *' and `output_buffer *'.  */
  #define output_buffer_format_args(BUFFER) \
!    *(((output_state *)BUFFER)->format_args)
  
  /* In line-wrapping mode, whether we should start a new line.  */
  #define output_needs_newline(BUFFER) (BUFFER)->state.need_newline_p
--- 145,151 ----
  /* The rest of the `variable argument list' not yet processed.
     This macro works on both `output_state *' and `output_buffer *'.  */
  #define output_buffer_format_args(BUFFER) \
!    *(((output_state *)(BUFFER))->format_args)

  /* In line-wrapping mode, whether we should start a new line.  */
  #define output_needs_newline(BUFFER) (BUFFER)->state.need_newline_p
---------------------------------------------------------------------------



More information about the Gcc-patches mailing list