home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / GCC / GERLIB_DEV08B.LHA / gerlib / libg++ / iostream / Changes.ger < prev    next >
Encoding:
Text File  |  1993-12-12  |  1.5 KB  |  84 lines

  1. renamed all .C-files to .cc-Files (had trouble with compiling)
  2.  
  3. iostream.C:
  4. Anfang: includes für Flush(), Output()
  5. 747+#ifdef AMIGA
  6. 748+Flush(Output());
  7. 749+#else
  8. 752+#endif
  9.  
  10. streambuf.h:
  11. changed struct __file_fields.fileno to be a long (we store our BPTR there !)
  12. #ifdef amiga
  13.     long _fileno;
  14. #else
  15.     short _fileno;
  16. #endif
  17. #ifdef amiga
  18.     int _flags2;    /* Sun Sep 26 21:47:37 1993 GM: place for special flags */
  19. #endif
  20.  
  21.  
  22. streambuf.h:
  23. #ifdef amiga
  24.     int is_open() const { return _fb._fileno !=EOF; }
  25. #else
  26.     int is_open() const { return _fb._fileno >= 0; }
  27. #endif
  28. #ifdef amiga
  29. #define _DO_NOT_CALL_SYSCLOSE 0x0001    // GM: don't call sys_close on ~filebuf
  30. #endif
  31. void filebuf::init()...
  32. #ifdef amiga
  33.     _flags2 = 0;
  34. #endif
  35.  
  36. filebuf.cc
  37. filebuf* filebuf::close()...
  38. #ifdef amiga
  39.     int status;    //everything is ok
  40.  
  41.     if(_flags2 & _DO_NOT_CALL_SYSCLOSE)
  42.     {
  43.         status = 0;        // close was successful.
  44.     }
  45.     else
  46.     {
  47.         status = sys_close();
  48.     }
  49. #else
  50.     int status = sys_close();
  51. #endif
  52.  
  53. #ifdef amiga
  54.     _flags2 = 0;
  55. #endif
  56.  
  57.  
  58. filebuf* filebuf::open(const char *filename, ios::openmode mode, int prot)...
  59. #ifdef amiga
  60.     if (fd == EOF)
  61. #else
  62.     if (fd < 0)
  63. #endif
  64.  
  65. filebuf* filebuf::open(const char *filename, const char *mode)...
  66. #ifdef amiga
  67.     if (fdesc == EOF)
  68. #else
  69.     if (fdesc < 0)
  70. #endif
  71.  
  72.  
  73.  
  74.  
  75. dtoa.cc:
  76. #define IEEE_MC68k /* was not defined elsewhere ... Sun Oct  3 00:59:12 1993 GM*/
  77. #ifdef amiga
  78. extern "C" void AddMemToTC_MEMENTRY(void *);
  79. #endif
  80. static Bigint * Balloc (int k)...
  81. #ifdef amiga
  82.                 AddMemToTC_MEMENTRY(rv);
  83. #endif
  84.