Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!ut-sally!utah-cs!utah-gr!uplherc!nrc-ut!nrcvax!kosman!kevin From: kevin@kosman.UUCP (Kevin O'Gorman) Newsgroups: comp.sources.d Subject: Nethack patch problem: did anyone else see this Message-ID: <278@kosman.UUCP> Date: Sun, 30-Aug-87 00:39:42 EDT Article-I.D.: kosman.278 Posted: Sun Aug 30 00:39:42 1987 Date-Received: Fri, 4-Sep-87 07:22:24 EDT Organization: K.O.'s Manor - Vital Computer Systems, Oxnard, CA 93035 Lines: 21 After applying the patch, I saw this: > cc -O -c hack.c > "hack.c", line 89: function has illegal storage class and sure enough, line 89 has > register struct monst *mtmp, *m_at(); which probably could be > register struct monst *mtmp; > extern struct monst *m_at(); since it IS hard to fit a function into a register, even if the function returns a pointer. Anyway, hack.c includes hack.h which includes monst.h which has m_at() declared, so I wonder why this thing was put in at all. Is noone else's compiler complaining about this? Is there something that I am misunderstanding? (No C guru here, folks, just a user).