Ignore:
Timestamp:
Aug 26, 2002, 1:24:57 AM (23 years ago)
Author:
bird
Message:

Bugfixing on initerm issues.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/common/kFileDef.cpp

    r9132 r9133  
    1 /* $Id: kFileDef.cpp,v 1.10 2002-08-25 22:35:46 bird Exp $
     1/* $Id: kFileDef.cpp,v 1.11 2002-08-25 23:24:57 bird Exp $
    22 *
    33 * kFileDef - Definition files.
     
    203203                throw (kError(kError::DEF_BAD_LIBRARY_STATEMENT));
    204204            fInitInstance = stristr(pszType, "INITINSTANCE") != NULL;
    205             fInitGlobal   = stristr(pszType, "INITGLOBAL")   != NULL || !fInitInstance;
     205            fInitGlobal   = stristr(pszType, "INITGLOBAL")   != NULL;
    206206            fTermInstance = stristr(pszType, "TERMINSTANCE") != NULL;
    207207            fTermGlobal   = stristr(pszType, "TERMGLOBAL")   != NULL || !fTermInstance;
     
    681681                            : (fVirtualDevice                    ? "VIRTDEVICE"
    682682                                                                 : "PHYSDEVICE" )),
    683                           fLibrary ? (fInitGlobal ? "INITGLOBAL" : "INITINSTANCE") : "",
    684                           fLibrary ? (fTermGlobal ? "TERMGLOBAL" : "TERMINSTANCE") : "");
     683                          fLibrary ? (fInitGlobal || (!fInitInstance && !fTermInstance)
     684                                                                 ? "INITGLOBAL"
     685                                                                 : "INITINSTANCE")
     686                                                                 : "",
     687                          fLibrary ? (fTermGlobal || (!fTermInstance && !fInitInstance)
     688                                                                 ? "TERMGLOBAL"
     689                                                                 : "TERMINSTANCE")
     690                                                                 : "");
    685691            break;
    686692
     
    693699                            : (fVirtualDevice                    ? "VIRTDEVICE"
    694700                                                                 : "PHYSDEVICE" )),
    695                           fLibrary ? (fInitGlobal ? "INITGLOBAL" : "INITINSTANCE") : "",
    696                           fLibrary ? (fTermGlobal ? "TERMGLOBAL" : "TERMINSTANCE") : "");
     701                          fLibrary ? (fInitGlobal || fTermGlobal ? "INITGLOBAL" /* Not sure how correct these things are! */
     702                                                                 : "")
     703                                                                 : "",
     704                          /*fLibrary ? (fTermGlobal || fInitGlobal ? "TERMGLOBAL"
     705                                                                 : "")
     706                                                                 :*/ "");
    697707            break;
    698708
Note: See TracChangeset for help on using the changeset viewer.