// DIE's signature file
// Author: Jason Hood <jadoxa@yahoo.com.au>

init("compiler", "Microsoft");

function detect(bShowType, bShowVersion, bShowOptions) {
    if (MSDOS.compareEP("b430cd213c..73..33c00650cbbf....8b36....2bf781fe....72..be....fa8ed781c4....fb73..161f")) {
        sName += " Quick C";
        sVersion = "2.5x";
        sOptions = "1990";
        bDetected = true;
    } else if (MSDOS.compareEP("fc8cc02ea3....8ed8a1....2ea3....2ea3....be....ac32e403f0c6....b8....8ec02680........75")) {
        sName += " Quick C";
        sVersion = "2.51a";
        sOptions = "1990";
        bDetected = true;
    } else if (MSDOS.compareEP("b430cd213c..73..b8....50e8....92b409cd21cd20bf")) {
        sName += " C/C++";
        sVersion = "1986";
        bDetected = true;
    } else if (MSDOS.compareEP("b430cd213c..73..b8....50900ee8....92b409cd21cd20bf")) {
        sName += " C/C++";
        sVersion = "1986";
        bDetected = true;
    } else if (MSDOS.compareEP("b430cd213c..73..b8....509a........92b409cd21cd20bf....8b36....2bf781fe....72..be....fa8ed781c4....fb73..33c050")) {
        sName += " C/C++";
        sVersion = "1986";
        bDetected = true;
    } else if (MSDOS.compareEP("b430cd213c..73..cd20bf....8b36....2bf776..8bc405....d1d8b1..d3e83bf072..8bf0fa8ed781c4....fb73")) {
        sName += " Quick C";
        sVersion = "1987-89";
        bDetected = true;
    } else if (MSDOS.compareEP("bf....8b36....2bf781fe....72..be....fa8ed781c4....fb73..e9....81e4....3689......3689......8bc6b1")) {
        sName += " C/C++";
        sVersion = "1985";
        bDetected = true;
    } else if (MSDOS.compareEP("fab8....8ed88ed0268b1e....2bd8f7c3....75..b1..d3e3eb..bb....8be3fb891e....b8....a3....0633c0508bec")) {
        sName += " C/C++";
        sVersion = "1.04";
        bDetected = true;
    } else if (MSDOS.compareEP("b430cd213c..73..cd20bf....8b36....2bf781fe....72..be....fa8ed781c4....fb73")) {
        sName += " Quick C";
        if (MSDOS.compareEP("81", 54)) {
            sVersion = "1.0";
            sOptions = "1987";
        } else if (MSDOS.compareEP("83", 54)) {
            sVersion = "2.00";
            sOptions = "1989";
        } else if (MSDOS.compareEP("8b", 54)) {
            sVersion = "2.x";
            sOptions = "1989";
        }
        bDetected = true;
    }

    return result(bShowType, bShowVersion, bShowOptions);
}