diff --git a/include/File.h b/include/File.h index f3835634f5a746e4cbc65a5ec44a9293582563ef..a99c83edb3fd0bdb2f687dba4e1c2106ffda19c8 100644 --- a/include/File.h +++ b/include/File.h @@ -78,11 +78,11 @@ public: /// Sets the position into file. /// \pre The file must be opened. - virtual dword setpos(dword offset) throw(PacketExceptionIO*); + virtual long setpos(long offset) throw(PacketExceptionIO*); /// Gets the current file position. /// \pre The file must be opened. - virtual dword getpos(); + virtual long getpos(); /// Stores the current position /// \pre The file must be opened. @@ -96,7 +96,7 @@ public: virtual bool isEOF(); /// \pre The file must be opened. - int setFirstPos() throw(PacketExceptionIO*); + long setFirstPos() throw(PacketExceptionIO*); /// Changes directory. The path is in the filename of file opened. /// \pre The file name must be set. @@ -128,9 +128,9 @@ protected: FILE* fp; - dword bookmarkPos; + long bookmarkPos; - dword startPosition; + long startPosition; char* filename; diff --git a/include/InputFile.h b/include/InputFile.h index fe9abb26b442ba86523395f197e3b7b63b492f16..8b048475964913708ec015f866b0e738e383da33 100644 --- a/include/InputFile.h +++ b/include/InputFile.h @@ -46,7 +46,7 @@ public: return 0; }; - virtual dword setpos(dword offset) throw(PacketExceptionIO*); + virtual dword setpos(long offset) throw(PacketExceptionIO*); protected: diff --git a/src/File.cpp b/src/File.cpp index 7861101611ec17f08197ee27fb82dc5aef6b5b77..96045dcabe0edc523802d8b77d76d1c3a44db7e9 100644 --- a/src/File.cpp +++ b/src/File.cpp @@ -233,9 +233,9 @@ char* File::getLastLineRead() } -dword File::setpos(dword offset) throw(PacketExceptionIO*) +long File::setpos(long offset) throw(PacketExceptionIO*) { - dword f; + long f; //clearerr(fp); f = fseek(fp, offset, 0); if(feof(fp)) @@ -247,7 +247,7 @@ dword File::setpos(dword offset) throw(PacketExceptionIO*) -dword File::getpos() +long File::getpos() { return ftell(fp); } @@ -283,7 +283,7 @@ bool File::isEOF() -int File::setFirstPos() throw(PacketExceptionIO*) +long File::setFirstPos() throw(PacketExceptionIO*) { return setpos(startPosition); } diff --git a/src/InputFile.cpp b/src/InputFile.cpp index 2e15db016434b91b0de0eb208d7db931089257ec..ab498938e1eca24ddd25d5ffd2fce511af54ffb2 100644 --- a/src/InputFile.cpp +++ b/src/InputFile.cpp @@ -75,6 +75,6 @@ char* InputFile::readString() throw(PacketExceptionIO*) return c; } -dword InputFile::setpos(dword offset) throw(PacketExceptionIO*) { +dword InputFile::setpos(long offset) throw(PacketExceptionIO*) { return file->setpos(offset); } diff --git a/version b/version index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..ad1be3c6645cd46078cd1e8d8c23a07b9716ec30 100644 --- a/version +++ b/version @@ -0,0 +1 @@ +3.0.0