Changeset 533


Ignore:
Timestamp:
Aug 5, 2003, 1:58:41 PM (22 years ago)
Author:
bird
Message:

Initalize library structures to zero. Forget about ext. dict. for now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/emxomf/weakld.c

    • Property cvs2svn:cvs-rev changed from 1.11 to 1.12
    r532 r533  
    595595static int          libLoadDict(PWLDLIB pLib)
    596596{
     597#if 0
    597598    FILE *phFile;
    598 
    599599    /* been here, done that? */
    600600    if (pLib->pDict)
     
    624624    pLib->pDict = NULL;
    625625    return -1;
     626#else
     627    /* till we support processing the dictionary, we pretend there is none. */
     628    pLib->pDict = NULL;
     629    return -1;
     630#endif
    626631}
    627632
     
    13441349 *
    13451350 * We'll simply return existing symbol when:
    1346  *      1. adding a UNDEF where a PUBLIC or COMM or !WEAK UNDEF exists.
     1351 *      1. adding a UNDEF where a PUBLIC, COMM, !WEAK UNDEF or IMPORT exists.
    13471352 *      2. adding a WKEXT where a PUBLIC or COMM exists.
    13481353 *      3. adding a WKEXT where a UNDEF which isn't UNCERTAIN exists.
    13491354 *      4. adding a COMM where a !WEAK COMM exists.
    13501355 *      5. adding a WEAK PUBLIC or WEAK COMM where a PUBLIC or COMM exists.
     1356 *      6. adding a WEAK UNDEF where WEAK UNDEF exists.
    13511357 *
    13521358 * We'll warn and return existing symbol when:
     
    14521458         *      4. adding a COMM where a !WEAK COMM exists.
    14531459         *      5. adding a WEAK PUBLIC or WEAK COMM where a PUBLIC or COMM exists.
     1460         *      6. adding a WEAK UNDEF where WEAK UNDEF exists.
    14541461         */
    14551462        if ( (     /* 1 */
     
    14691476                ((fFlags & (WLDSF_TYPEMASK | WLDSF_WEAK)) == (WLDSF_PUBLIC | WLDSF_WEAK) || (fFlags & (WLDSF_TYPEMASK | WLDSF_WEAK)) == (WLDSF_COMM | WLDSF_WEAK))
    14701477             && ((pSym->fFlags & WLDSF_TYPEMASK) == WLDSF_PUBLIC || (pSym->fFlags & WLDSF_TYPEMASK) == WLDSF_COMM)
     1478            ) || ( /* 6 */
     1479                ((fFlags & (WLDSF_TYPEMASK | WLDSF_WEAK)) == (WLDSF_UNDEF | WLDSF_WEAK))
     1480             && ((pSym->fFlags & (WLDSF_TYPEMASK | WLDSF_WEAK)) == (WLDSF_UNDEF | WLDSF_WEAK))
    14711481            ))
    14721482        {
     
    26282638    /* add it to the link, do nothing till we're asked to do the searching. */
    26292639    pLib = xmalloc(sizeof(*pLib));
     2640    memset(pLib, 0, sizeof(*pLib));
    26302641    pLib->phFile = phFile;
    26312642    pLib->pszLibName = strpool_add(pWld->pStrMisc, pszName);
Note: See TracChangeset for help on using the changeset viewer.