This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


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

Re: [patch]: New operand parser for i386 intel syntax


On Tue, 24 Oct 2000, Richard Henderson wrote:

> On Tue, Oct 24, 2000 at 01:00:34PM -0400, Diego Novillo wrote:
> > + static void intel_get_token	PARAMS (());
> 
> Please note that this is a prototype for C++, but not C.
> Use PARAMS ((void)) instead.
> 
Thanks. I've checked in the following fix:


2000-10-25  Diego Novillo  <dnovillo@cygnus.com>

	* tc-i386.c: Fix prototype declarations for functions taking no
	arguments.

Index: tc-i386.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-i386.c,v
retrieving revision 1.62
diff -d -c -p -r1.62 tc-i386.c
*** tc-i386.c	2000/10/25 01:39:11	1.62
--- tc-i386.c	2000/10/25 11:37:40
*************** static struct intel_token cur_token, pre
*** 4335,4352 ****
  
  /* Prototypes for intel parser functions.  */
  static int intel_match_token	PARAMS ((int code));
! static void intel_get_token	PARAMS (());
! static void intel_putback_token	PARAMS (());
! static int intel_expr		PARAMS (());
! static int intel_e05		PARAMS (());
! static int intel_e05_1		PARAMS (());
! static int intel_e06		PARAMS (());
! static int intel_e06_1		PARAMS (());
! static int intel_e09		PARAMS (());
! static int intel_e09_1		PARAMS (());
! static int intel_e10		PARAMS (());
! static int intel_e10_1		PARAMS (());
! static int intel_e11		PARAMS (());
  
  
  static int
--- 4335,4352 ----
  
  /* Prototypes for intel parser functions.  */
  static int intel_match_token	PARAMS ((int code));
! static void intel_get_token	PARAMS ((void));
! static void intel_putback_token	PARAMS ((void));
! static int intel_expr		PARAMS ((void));
! static int intel_e05		PARAMS ((void));
! static int intel_e05_1		PARAMS ((void));
! static int intel_e06		PARAMS ((void));
! static int intel_e06_1		PARAMS ((void));
! static int intel_e09		PARAMS ((void));
! static int intel_e09_1		PARAMS ((void));
! static int intel_e10		PARAMS ((void));
! static int intel_e10_1		PARAMS ((void));
! static int intel_e11		PARAMS ((void));
  
  
  static int

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