[Monetdb-developers] [Monetdb-pf-checkins] pathfinder/modules/pftijah/tjc tjc_abssyn.c, , 1.2, 1.3 tjc_abssyn.h, , 1.3, 1.4 tjc_scan.l, , 1.1, 1.2

Stefan Manegold Stefan.Manegold at cwi.nl
Thu Nov 27 13:26:07 CET 2008


Jan F. (and others),

On Thu, Nov 27, 2008 at 10:53:19AM +0000, Jan Flokstra wrote:
> Update of /cvsroot/monetdb/pathfinder/modules/pftijah/tjc
> In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv1147
> 
> Modified Files:
> 	tjc_abssyn.c tjc_abssyn.h tjc_scan.l 
> Log Message:
> fix Windows&icc compiler problems
> - old-style parameter list (anachronism)

this problem is not fixed, yet;
Intel's icc did (and still does) complain about the old-style *parameter
list*, not about the return-type declaration:
========
/ufs/manegold/_/scratch0/Monet/Testing/Current/source/pathfinder/modules/pftijah/tjc/tjc_abssyn.h(126): error #310: old-style parameter list (anachronism)
  tjcq_initnode ();
  ^

/ufs/manegold/_/scratch0/Monet/Testing/Current/source/pathfinder/modules/pftijah/tjc/tjc_abssyn.h(135): error #310: old-style parameter list (anachronism)
  tjcp_inittree ();
  ^

compilation aborted for /ufs/manegold/_/scratch0/Monet/Testing/Current/source/pathfinder/modules/pftijah/tjc/tjc_milprint.c (code 2)
========

For your info,
 
	fcn_name();
	        ^^
is "old-style"; "new-style" is

	fnc_name(void);
	        ^^^^^^

Stefan


> U tjc_abssyn.h
> Index: tjc_abssyn.h
> ===================================================================
> RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/tjc/tjc_abssyn.h,v
> retrieving revision 1.3
> retrieving revision 1.4
> diff -u -d -r1.3 -r1.4
> --- tjc_abssyn.h	26 Nov 2008 10:00:24 -0000	1.3
> +++ tjc_abssyn.h	27 Nov 2008 10:53:17 -0000	1.4
> @@ -110,28 +110,28 @@
>  
>  /* interfaces to parse construction routines 
>   */
> -extern TJpnode_t *
> +extern struct TJpnode_t *
>  tjcp_leaf  (TJptree_t *t, TJptype_t type);
>  
> -extern TJpnode_t *
> +extern struct TJpnode_t *
>  tjcp_wire1 (TJptree_t *t, TJptype_t type, TJpnode_t *n1);
>  
> -extern TJpnode_t *
> +extern struct TJpnode_t *
>  tjcp_wire2 (TJptree_t *t, TJptype_t type, TJpnode_t *n1, TJpnode_t *n2);
>  
> -extern TJpfixme_t *
> +extern struct TJpfixme_t *
>  tjcp_fixme (TJpnode_t *n1, TJpnode_t **n2);
>  
> -extern TJqnode_t *
> +extern struct TJqnode_t *
>  tjcq_initnode ();
>  
> -extern TJqnode_t *
> +extern struct TJqnode_t *
>  tjcq_firstterm (char *term, char *entity, double weight);
>  
> -extern TJqnode_t *
> +extern struct TJqnode_t *
>  tjcq_addterm (TJqnode_t *n, char *term, char *entity, double weight);
>  
> -extern TJptree_t *
> +extern struct TJptree_t *
>  tjcp_inittree ();
>  
>  extern char *
> 

-- 
| Dr. Stefan Manegold | mailto:Stefan.Manegold at cwi.nl |
| CWI,  P.O.Box 94079 | http://www.cwi.nl/~manegold/  |
| 1090 GB Amsterdam   | Tel.: +31 (20) 592-4212       |
| The Netherlands     | Fax : +31 (20) 592-4312       |




More information about the developers-list mailing list