scandsp/src/optparser.cxx
// ==========================================================================
// Track a block of code beginning with the special value 60000 decimal.
// (Actually, 50009 appears in the same role in older .opt files.)
// Recognize the CFG setting which occurs near the beginning of the block.
//
Track a block of code beginning with the special value 60000 decimal.
(Actually, 50009 appears in the same role in older .opt files.)
Recognize the CFG setting which occurs near the beginning of the block.
Track a block of code beginning with the special value 60000 decimal . ( Actually 50009 appears in the same role in older . opt files . ) Recognize the CFG setting which occurs near the beginning of the block .
void OptParser::track60000(char ch)
{
    unsigned long count_preceding_ch = circle.trackCount();
    int offset = (int)(count_preceding_ch % 128UL);
    if (offset == 8) {
	if ((t60000.had_name || t60000.had_last) != t60000.had_CProject) {
	    if (t60000.had_name) {
	    }
	    if (t60000.had_CProject) {
	    }
	}
	t60000.had_name = t60000.had_CProject = t60000.had_last = false;
    }
    if (offset == 8
	&& bufAt60000()) {
	t60000.examine = true;
        t60000.count60000 += 1;
    }
    if (t60000.examine && offset == 10) {
	short n = getBufShort(circle, 0);
        int est = (nProjs > 0) ? nProjs : 1;
        int est2 = (t60000.count60000 > 0) ? t60000.count60000 + 1 : 1;
	if (n == 0) {
	    t60000.had_last = true;
	}
	else if (0 < n && (n <= est || n <= est2)) {
	    t60000.had_last = true;
	}
	else if (circle[-1] != '\0') {
	    t60000.name.start(circle[-2]);
	    t60000.name.track(circle[-1]);
	    t60000.had_name = true;
	}
        else {
	}
        t60000.examine = false;
    }
    if (t60000.name.atEnd()) {
	cfgsp->push_back(t60000.name.name());
    }
    if (bufAt(circle, "CProject", 8)) {
	t60000.had_CProject = true;
    }
    t60000.name.track(ch);
}
void OptParser :: track60000 ( char ch ) { unsigned long count_preceding_ch = circle . trackCount ( ) ; int offset = ( int ) ( count_preceding_ch % 128UL ) ; if ( offset == 8 ) { if ( ( t60000 . had_name || t60000 . had_last ) != t60000 . had_CProject ) { if ( t60000 . had_name ) { } if ( t60000 . had_CProject ) { } } t60000 . had_name = t60000 . had_CProject = t60000 . had_last = false ; } if ( offset == 8 && bufAt60000 ( ) ) { t60000 . examine = true ; t60000 . count60000 += 1 ; } if ( t60000 . examine && offset == 10 ) { short n = getBufShort ( circle , 0 ) ; int est = ( nProjs > 0 ) ? nProjs : 1 ; int est2 = ( t60000 . count60000 > 0 ) ? t60000 . count60000 + 1 : 1 ; if ( n == 0 ) { t60000 . had_last = true ; } else if ( 0 < n && ( n <= est || n <= est2 ) ) { t60000 . had_last = true ; } else if ( circle [ -1 ] != ' \0 ' ) { t60000 . name . start ( circle [ -2 ] ) ; t60000 . name . track ( circle [ -1 ] ) ; t60000 . had_name = true ; } else { } t60000 . examine = false ; } if ( t60000 . name . atEnd ( ) ) { cfgsp -> push_back ( t60000 . name . name ( ) ) ; } if ( bufAt ( circle , " " , 8 ) ) { t60000 . had_CProject = true ; } t60000 . name . track ( ch ) ; }
Track a block of code beginning with the special value 60000 decimal.
Track a block of code beginning with the special value 60000 decimal .
// Found name in 60000 block, but no CProject string. // The CProject string is not demanded by this application, // so it's totally unknown what the significance might be // if it's ever missed. // Had CProject string in the file, which usually occurs in  // a recognized 60000 block, but not always, particularly // when the block mentions CClsFldSlob. // Odd last 60000 block. // Looks like a last 60000 block. // Unrecognized 60000 block, sometimes occurs when the last // such block has more entries than estimated and caught above. // reportBuf(circle, 10); // Recognized a configuration string.