www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/29/15:15:37

From: Paul Shirley <Paul AT chocolat DOT obvious DOT fake DOT foobar DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Redefinition of functions ?
Date: Mon, 29 Jun 1998 12:25:50 +0100
Organization: wot? me?
Message-ID: <ZYmwFDA+m3l1Ew3D@foobar.co.uk>
References: <359389BC DOT 2E02 AT phrozen DOT com>
<19980628 DOT 202113 DOT 7751 DOT 2 DOT zixyer AT juno DOT com>
NNTP-Posting-Host: chocolat.foobar.co.uk
Mime-Version: 1.0
Lines: 13
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <19980628 DOT 202113 DOT 7751 DOT 2 DOT zixyer AT juno DOT com>, Zixyer S Qwerty
<zixyer AT juno DOT com> writes
>To redefine a function, just
>#define textmode myfunc
>and make myfunc do whatever.

That *nearly* works, but will not catch calls to the original function
in compiled library code. Very important if you try replacing malloc for
instance. Its probably sufficient for most times you want to do it
though.

---
Paul Shirley: my email address is 'obvious'ly anti-spammed

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019