File: linked.cc

package info (click to toggle)
icmake 13.05.01-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,132 kB
  • sloc: cpp: 11,595; fortran: 883; makefile: 853; sh: 546; pascal: 342
file content (24 lines) | stat: -rw-r--r-- 754 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#define XERR
#include "modules.ih"

    // called by requiredExternal

    // 'extModgcm'  is, e.g., 'extern/Mod1.gcm'
    // scan's modvect[unknownIdx] is, e.g., 'ModName.gcm'

bool Modules::linked(Path const &extModgcm, size_t unknownIdx)
{
                                    // extModgcm is the searched Module ?
    if (extModgcm.filename().string() 
            != gcmName(d_modVect[unknownIdx].modName())
    )
        return false;               // no: done here

                                    // yes: add it (+ required modules)

    d_modVect[unknownIdx].setExtern();   // not UNKNOWN anymore: now EXTERN
    d_unknowns.erase(unknownIdx);

    connect(extModgcm);             // extModgcm may depend on its own modules
    return true;
}