Ignore:
Timestamp:
Dec 18, 2011, 10:28:22 PM (14 years ago)
Author:
dmik
Message:

Merge branch gcc-kmk to trunk.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1 bin
        2 Makefile.inc
         1env.cmd
         2LocalConfig.kmk
    • Property svn:mergeinfo set to
      /branches/gcc-kmkmergedeligible
  • trunk/tools/common/kFile.cpp

    r8003 r21916  
    1919*   Header Files                                                               *
    2020*******************************************************************************/
     21#if defined (__EMX__) && !defined (USE_OS2_TOOLKIT_HEADERS)
     22#define __OS2DEF__
     23#endif
    2124#include <os2.h>
    2225
     
    4548 * @remark
    4649 */
    47 KBOOL   kFile::refreshFileStatus()
     50KBOOL   kFile::refreshFileStatus() throw (kError)
    4851{
    4952    if (fStdDev)
     
    6871 * @returns     Success indicator.
    6972 */
    70 KBOOL   kFile::position()
     73KBOOL   kFile::position() throw (kError)
    7174{
    7275    /*
     
    254257 * @author      knut st. osmundsen (knut.stange.osmundsen@mynd.no)
    255258 */
    256 kFile::kFile(const char *pszFilename, KBOOL fReadOnly/*=TRUE*/)
     259kFile::kFile(const char *pszFilename, KBOOL fReadOnly/*=TRUE*/) throw (kError)
    257260:   fReadOnly(fReadOnly),
    258261    fStatusClean(FALSE),
     
    332335 * @param       cbBuffer    Amount of bytes to read.
    333336 */
    334 int             kFile::read(void *pvBuffer, long cbBuffer)
     337int             kFile::read(void *pvBuffer, long cbBuffer) throw (kError)
    335338{
    336339    ULONG   cbRead;
     
    427430 * @param       off         Absolute file offset.
    428431 */
    429 int             kFile::readAt(void *pvBuffer, long cbBuffer, long off)
     432int             kFile::readAt(void *pvBuffer, long cbBuffer, long off) throw (kError)
    430433{
    431434    if (set(off))
     
    477480 * @author  knut st. osmundsen (knut.stange.osmundsen@mynd.no)
    478481 */
    479 int             kFile::readln(char *pszBuffer, long cchBuffer) throw(kError)
     482int             kFile::readln(char *pszBuffer, long cchBuffer)
    480483{
    481484    long    cbRead;
     
    558561 * @param       cbBuffer    Amount of bytes to write.
    559562 */
    560 int             kFile::write(const void *pv, long cb)
     563int             kFile::write(const void *pv, long cb) throw (kError)
    561564{
    562565    if (fReadOnly)
     
    678681 * @param       off         Absolute file offset.
    679682 */
    680 int             kFile::writeAt(const void *pvBuffer, long cbBuffer, long off)
     683int             kFile::writeAt(const void *pvBuffer, long cbBuffer, long off) throw (kError)
    681684{
    682685    if (set(off))
     
    788791 * @param       off     Relative reposition.
    789792 */
    790 int             kFile::move(long off)
     793int             kFile::move(long off) throw (kError)
    791794{
    792795    if ((off + offVirtual) & 0x80000000UL) /* above 2GB or negative */
     
    814817 * @param       off     New file position.
    815818 */
    816 int             kFile::set(long off)
     819int             kFile::set(long off) throw (kError)
    817820{
    818821    if (off < 0)
     
    839842 * @remark      Will only throw error if refreshFileStatus failes.
    840843 */
    841 int             kFile::end()
     844int             kFile::end() throw (kError)
    842845{
    843846    if (!refreshFileStatus())
     
    872875 * @remark      Will only throw error if refreshFileStatus failes.
    873876 */
    874 long            kFile::getSize()
     877long            kFile::getSize() throw (kError)
    875878{
    876879    if (!refreshFileStatus())
     
    886889 * @remark      Will only throw error if refreshFileStatus failes.
    887890 */
    888 long            kFile::getPos() const
     891long            kFile::getPos() const throw (kError)
    889892{
    890893    return offVirtual;
     
    898901 * @remark      Will only throw error if refreshFileStatus failes.
    899902 */
    900 KBOOL           kFile::isEOF()
     903KBOOL           kFile::isEOF() throw (kError)
    901904{
    902905    #if 0
     
    954957 * @remark  May throw errors.
    955958 */
    956 void *kFile::mapFile(const char *pszFilename)
     959void *kFile::mapFile(const char *pszFilename) throw (kError)
    957960{
    958961    kFile file(pszFilename);
     
    968971 * @author  knut st. osmundsen (knut.stange.osmundsen@mynd.no)
    969972 */
    970 void kFile::mapFree(void *pvFileMapping)
     973void kFile::mapFree(void *pvFileMapping) throw (kError)
    971974{
    972975    if (pvFileMapping)
Note: See TracChangeset for help on using the changeset viewer.