This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: fopen/fclose
On Mon, Mar 25, 2002 at 05:09:51PM +0100, Jurica Baricevic wrote:
> Andrew Lunn wrote (Monday, March 25, 2002 13:57):
> > > However, I don't understand why FILE operations wouldn't use delete when
> > > CYGFUN_INFRA_EMPTY_DELETE_FUNCTIONS is disabled (... #ifdef
> > > CYGFUN_INFRA_EMPTY_DELETE_FUNCTIONS ... #else...#endif ...)?
> > > Specifically, I need to overload default new/delete operators
> > and this might
> > > not be possible if 'fopen()' uses new, while 'fclose()' does not call
> > > delete.
> >
> > How about...
> >
> > Because know one has yet needed to overload new/delete for FILE
> > operations.
> >
>
> Maybe I did not express myself correctly :-)
> What I need is to modify C++ built-in (global) 'new' & 'delete' operators.
Oh. Yes, you did express is correctly, i just read it wrongly :-(
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss