Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!munnari.oz.au!hunter!felix@AI.SRI.COM From: felix@AI.SRI.COM (Francois Felix INGRAND) Newsgroups: comp.lang.lisp Subject: macro depencies generator Message-ID: <1047@hunter.aaii.oz.au> Date: 9 Feb 90 00:17:34 GMT Sender: felix@hunter.aaii.oz.au Reply-To: felix@AI.SRI.COM (Francois Felix INGRAND) Organization: SRI International, Menlo Park, CA Lines: 24 I am looking for a tool which given a set of lisp files would tell me which files x is using the macros defined in files y. It is more or less like a makedep (used by C programmers) except that with makedep, the #include declaration is used instead of the symbols. In the lisp case, you have first to extract the macros symbols, then look in which file it is used. It would be nice if it was detecting all the macros (even those generated by defstruct calls). One trick would be to redefined defmacro such that it remembers where the macro is defined (in file y), and at macro expansion time, it prints a statement saying that file x (the one you are currently compiling) is using file y. I am not sure how well this would deal with defstruct access function though. Thanks in advance for any pointer. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Francois Felix INGRAND SRI International, AIC felix@AI.SRI.COM 333, Ravenswood Avenue felix%AI.SRI.COM@UUNET.UU.NET MENLO PARK, CA 94025, USA "Pourquoi tant de haine..." (Edika) "Read my Lisp... No new syntax" (nil)