Re: Problems compiling Hypermail on three different platoforms

---------

From: Peter C. McCluskey (pcm@rahul.net)
Date: Sat Apr 14 2001 - 12:41:51 CDT


 pbecker@meganesia.int.gu.edu.au (Peter Becker) writes:
>#line 183 "getdate.y"
>typedef union {
>int Number;
>enum _MERIDIAN Meridian;
>} YYSTYPE;
>#include <stdio.h>

>be found via http://meganesia.int.gu.edu.au/~pbecker/bison.simple --

 Your bison.simple differs from the one on my system. This line seems
to cause the problem:

285c285
< YYSTYPE yyval; /* the variable used to return */

---
>   YYSTYPE yyval=0;            /*  the variable used to return         */
 That "=0" is inconsistent with the union. The getdate.py code that generates
the union looks like it has probably been used in many programs, so I'm
guessing that your bison.simple should be considered wrong.
 Has anyone else seen a bison.simple like this?
 Removing the =0 from your bison.simple or the equivalent line of getdate.c
should fix the problem.
------------------------------------------------------------------------------
Peter McCluskey          | Fed up with democracy's problems? Examine Futarchy:
http://www.rahul.net/pcm | http://hanson.gmu.edu/futarchy.pdf or .ps

---------

This archive was generated by hypermail 2.1.5.