Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
534 B

// Copyright (c) 1993-1999 Microsoft Corporation
#include "y4.h"
nxti()
{
/* finds the next i */
register i, maxi;
SSIZE_T max;
max = 0;
for( i=1; i<= nnonter; ++i ) if( ggreed[i] >= max )
{
max = ggreed[i];
maxi = -i;
}
for( i=0; i<nstate; ++i ) if( greed[i] >= max )
{
max = greed[i];
maxi = i;
}
if( nxdb ) fprintf( ftable, "nxti = %d, max = %d\n", maxi, max );
if( max==0 ) return( NOMORE );
else return( maxi );
}