Path: utzoo!attcan!uunet!mcvax!ukc!cs.tcd.ie!phrrngtn From: phrrngtn@cs.tcd.ie (Paul Harrington) Newsgroups: comp.dcom.lans Subject: Using CHOICE types in courier Keywords: courier,choice types Message-ID: <139@csaran.cs.tcd.ie> Date: 7 Oct 88 16:19:02 GMT Reply-To: phrrngtn@csaran.UUCP (Paul Harrington) Organization: Computer Science Department, Trinity College, Dublin Lines: 19 ? I am having great difficulty in getting any cooperation from them at all. I don't know wheter it is my fault or the fault of the compiler that I am using. The problem lies in the fact that courier produces very funny C code. It gives an anonymous declaration of the enumerated type corrosponding to the various choices in every place where a pointer to a choice structure is passed as a parameter to a function. The C compiler is off by 1 when it references these symbols. e.g. enum { A=1, B=2, C=3} gives A=2,B=3,C=4 when these values are printf'ed out Any ideas ? please e-mail me if this is in the wrong group