home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 8.ddi / IOSTRSR1.ZIP / SRBDTR.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  1013 b   |  36 lines

  1. /*[]------------------------------------------------------------[]*/
  2. /*|                                                              |*/
  3. /*|     srbdtr.cpp                                               |*/
  4. /*|                                                              |*/
  5. /*|     Class strstreambuf                                       |*/
  6. /*|          strstreambuf::~strstreambuf()                       |*/
  7. /*|                                                              |*/
  8. /*[]------------------------------------------------------------[]*/
  9.  
  10. /*
  11.  *      C/C++ Run Time Library - Version 5.0
  12.  *
  13.  *      Copyright (c) 1990, 1992 by Borland International
  14.  *      All Rights Reserved.
  15.  *
  16.  */
  17.  
  18. #include <ioconfig.h>
  19. #include <strstrea.h>
  20.  
  21.  
  22. #define expandable ((ssbflags&(dynamic|frozen))==dynamic)
  23.  
  24. strstreambuf::~strstreambuf()
  25. {
  26.     if( expandable )
  27.         {
  28.         if( freef )
  29.             (*freef)((void*)base());
  30.         else
  31.             delete base();
  32.         }
  33. }
  34.  
  35.  
  36.