static int InCandidateSet(Node * N, Node * T)
{
    int i;
    for (i = 0; i < Candidates; i++)
        if (CandidateSet[i].To == T)
            return 1;
    return IsCandidate(N, T);
}
예제 #2
0
파일: version.cpp 프로젝트: nitrologic/mod
// Calculate the V8 version string.
void Version::GetString(Vector<char> str) {
    const char* candidate = IsCandidate() ? " (candidate)" : "";
    if (GetPatch() > 0) {
        OS::SNPrintF(str, "%d.%d.%d.%d%s",
                     GetMajor(), GetMinor(), GetBuild(), GetPatch(), candidate);
    } else {
        OS::SNPrintF(str, "%d.%d.%d%s",
                     GetMajor(), GetMinor(), GetBuild(), candidate);
    }
}
예제 #3
0
파일: version.cpp 프로젝트: nitrologic/mod
// Calculate the SONAME for the V8 shared library.
void Version::GetSONAME(Vector<char> str) {
    if (soname_ == NULL || *soname_ == '\0') {
        // Generate generic SONAME if no specific SONAME is defined.
        const char* candidate = IsCandidate() ? "-candidate" : "";
        if (GetPatch() > 0) {
            OS::SNPrintF(str, "libv8-%d.%d.%d.%d%s.so",
                         GetMajor(), GetMinor(), GetBuild(), GetPatch(), candidate);
        } else {
            OS::SNPrintF(str, "libv8-%d.%d.%d%s.so",
                         GetMajor(), GetMinor(), GetBuild(), candidate);
        }
    } else {
        // Use specific SONAME.
        OS::SNPrintF(str, "%s", soname_);
    }
}