🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #1355

BC++ Far new()

#1355
From: Maurizio Sartori Masar
Date: Tue, 08 Sep 1992 13:00
38 lines
1890 bytes
From Borland C++ 3.00 Run Time Library :

/* filename - new.cpp */
void *operator new( size_t size );              //    use  malloc(size)

/* filename - newf.cpp */
void far * operator new( unsigned long size )   //  use  farmalloc(size)

/* filename - CS.LIB */
NEW             size = 83
        operator new(unsigned int)        set_new_handler(void(near*)())
        __new_handler
NEWF            size = 77
        operator new(unsigned long)



Question : how can I call the far version of 'new()' from a small memory
           program ?


					Maurizio

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  ))    ))    ))     )))))      ))    )))))))      Maurizio Sartori Masar
  )))  )))   ))))   ))         ))))   ))    ))
  ))))))))  ))  ))   ))))))   ))  ))  ))    ))   gin503@cdc835.cdc.polimi.it
  )) )) ))  ))))))        ))  ))))))  )))))))
  ))    )) ))    )) ))    )) ))    )) ))  ))       Politecnico di Milano
  ))    )) ))    ))  ))))))  ))    )) ))    ))            ITALY
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
--
  ))    ))    ))      ))))))    ))    )))))))      Maurizio Sartori Masar
  ))))))))  ))  ))   ))))))   ))  ))  ))    ))   gin503@cdc835.cdc.polimi.it
  )) )) )) ))))))))       )) )))))))) ))))))       Politecnico di Milano
  ))    )) ))    ))  ))))))  ))    )) ))    ))            ITALY
Technical Details
Message-ID: <gin503.715957220@cdc835>
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!usc!rpi!ghost.dsi.unimi.it!cdc835.cdc.polimi.it!gin503

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!usc!rpi!ghost.dsi.unimi.it!cdc835.cdc.polimi.it!gin503
From: gin503@cdc835.cdc.polimi.it (Maurizio Sartori Masar)
Subject: BC++ Far new()
Date: Tue, 8 Sep 1992 13:00:20 GMT
Nntp-Posting-Host: cdc835.cdc.polimi.it
Organization: C.d.C., Politecnico di Milano
Keywords: new()
Sender: netnews@cdc835.cdc.polimi.it (News Admin)
Message-ID: <gin503.715957220@cdc835>
Lines: 38