Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!psuvax1!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!hemuli.tik.vtt.fi!tik.vtt.fi!tml From: tml@tik.vtt.fi (Tor Lillqvist) Newsgroups: comp.sys.hp Subject: #pragma _HP_SECONDARY_DEF Message-ID: Date: 15 May 91 13:44:29 GMT Sender: news@hemuli.tik.vtt.fi Organization: Technical Research Centre of Finland, Laboratory for Information Processing (VTT/TIK) Lines: 13 How do you use the undocumented _HP_SECONDARY_DEF pragma? (I found it with `strings /lib/ccom`.) I suppose this is what causes the "sdef" entries as output by nm. I ask because I want to use it in a replacement malloc library (for debugging), so that calls to for example strcpy also from library functions go to the debugging versions. Yes, I know I could simply provide a one-line glue function named _strcpy that calls the actual (debugging) strcpy function, but it would seem more elegant to use the same mechanism that HP uses for secondary entry points. -- Tor Lillqvist, working, but not speaking, for the Technical Research Centre of Finland