Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!tcs!nujoizey!gwu From: gwu@nujoizey.tcs.com (George Wu) Newsgroups: comp.lang.c++ Subject: Re: Maintaining header files **and** inline management Keywords: imake and generating header files Message-ID: <1744@tcs.tcs.com> Date: 13 Feb 91 06:28:31 GMT References: <15917@reed.UUCP> <3699@lupine.NCD.COM> Sender: root@tcs.com Reply-To: gwu@nujoizey.tcs.com (George Wu) Organization: Teknekron Communications Systems Lines: 41 In article <3699@lupine.NCD.COM>, rfg@NCD.COM (Ron Guilmette) writes: |> In article <15917@reed.UUCP> minar@reed.bitnet (Nelson Minar,L08,x640,7776519) writes: |> > |> >In C, I barely managed to keep all my header files straight and organized. |> >C++ just compounds my problems. |> |> Yes. It's a tricky business. |> |> Awhile back I invented a simple set of procedures for handling both |> header files and for dealing reasonably with inline functions. |> |> [ a description of a system of generating header files from .C files |> deleted here for the sake of brevity ] I like Ron's method of generating header files from the .C file. We too have tried to do something similar, but rather generated the .C file from the header file. Obviously, this created problems since it's easier to generate function prototypes from implementation code than to automatically retrofit implementation code to new function prototypes. We eventually gave up this idea. |> |> This whole scheme is really trivial to implement using the special "generic |> rules" features of GNU make. Doing this stuff with some plain vanilla make |> program would be quite cumbersome. For reasons into which I which I won't go, we didn't like GNU make. I think I'll give this method a try with imake. Can anyone imagine any problems I might encounter with imake? George PS: For those unfamiliar with imake, it's an X utility program. Imake generates a makefile from a generic description and is used to generate machine specific makefiles in the X source distribution. ---- George J Wu, Software Engineer | gwu@tcs.com or uunet!tcs!gwu Teknekron Communications Systems, Inc.| (415) 649-3752 2121 Allston Way, Berkeley, CA, 94704 | Quit reading news. Get back to work.