home *** CD-ROM | disk | FTP | other *** search
- renamed all .C-files to .cc-Files (had trouble with compiling)
-
- iostream.C:
- Anfang: includes für Flush(), Output()
- 747+#ifdef AMIGA
- 748+Flush(Output());
- 749+#else
- 752+#endif
-
- streambuf.h:
- changed struct __file_fields.fileno to be a long (we store our BPTR there !)
- #ifdef amiga
- long _fileno;
- #else
- short _fileno;
- #endif
- #ifdef amiga
- int _flags2; /* Sun Sep 26 21:47:37 1993 GM: place for special flags */
- #endif
-
-
- streambuf.h:
- #ifdef amiga
- int is_open() const { return _fb._fileno !=EOF; }
- #else
- int is_open() const { return _fb._fileno >= 0; }
- #endif
- #ifdef amiga
- #define _DO_NOT_CALL_SYSCLOSE 0x0001 // GM: don't call sys_close on ~filebuf
- #endif
- void filebuf::init()...
- #ifdef amiga
- _flags2 = 0;
- #endif
-
- filebuf.cc
- filebuf* filebuf::close()...
- #ifdef amiga
- int status; //everything is ok
-
- if(_flags2 & _DO_NOT_CALL_SYSCLOSE)
- {
- status = 0; // close was successful.
- }
- else
- {
- status = sys_close();
- }
- #else
- int status = sys_close();
- #endif
-
- #ifdef amiga
- _flags2 = 0;
- #endif
-
-
- filebuf* filebuf::open(const char *filename, ios::openmode mode, int prot)...
- #ifdef amiga
- if (fd == EOF)
- #else
- if (fd < 0)
- #endif
-
- filebuf* filebuf::open(const char *filename, const char *mode)...
- #ifdef amiga
- if (fdesc == EOF)
- #else
- if (fdesc < 0)
- #endif
-
-
-
-
- dtoa.cc:
- #define IEEE_MC68k /* was not defined elsewhere ... Sun Oct 3 00:59:12 1993 GM*/
- #ifdef amiga
- extern "C" void AddMemToTC_MEMENTRY(void *);
- #endif
- static Bigint * Balloc (int k)...
- #ifdef amiga
- AddMemToTC_MEMENTRY(rv);
- #endif
-