Subversion Repositories svn1-original

Rev

Rev 32 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32 Rev 33
Line 923... Line 923...
923
    ty_s_data  *ptr;
923
    ty_s_data  *ptr;
924
    unsigned    i;
924
    unsigned    i;
925
    int         j, last_class;
925
    int         j, last_class;
926
    char        suppress_classes;                /* Boolean. Printout class files too */
926
    char        suppress_classes;                /* Boolean. Printout class files too */
927
    char        *report_title;
927
    char        *report_title;
-
 
928
    bool        class_done[MAX_CLASS+1];
928
 
929
 
929
    cur( 0, 5 );
930
    cur( 0, 5 );
930
    printf( "Generate final result printouts\n" );
931
    printf( "Generate final result printouts\n" );
931
    if( ck_data( -1, C_ELAPSED ) )
932
    if( ck_data( -1, C_ELAPSED ) )
932
        return;                                  /* check data for all legs */
933
        return;                                  /* check data for all legs */
Line 1049... Line 1050...
1049
        return;
1050
        return;
1050
    }
1051
    }
1051
 
1052
 
1052
    sort_team_data( 0, S_LC );                 /* Generate class placement data */
1053
    sort_team_data( 0, S_LC );                 /* Generate class placement data */
1053
    last_class = -1;                           /* Invalid class to start with */
1054
    last_class = -1;                           /* Invalid class to start with */
-
 
1055
    memset ( class_done, 0, sizeof(class_done));
-
 
1056
 
1054
 
1057
 
1055
    for( ptr = sort_data, i = 0; i < sort_num; i++, ptr++ )
1058
    for( ptr = sort_data, i = 0; i < sort_num; i++, ptr++ )
1056
    {
1059
    {
1057
        /*
1060
        /*
1058
        **  Detect a change in the "class"
1061
        **  Detect a change in the "class"
Line 1072... Line 1075...
1072
            report_title = tprintf( "Category results for : %-*s", LEN_CLASS_NAME, ptr->class == 0 ? "" : config.team_class[ptr->class - 1].full_name );
1075
            report_title = tprintf( "Category results for : %-*s", LEN_CLASS_NAME, ptr->class == 0 ? "" : config.team_class[ptr->class - 1].full_name );
1073
 
1076
 
1074
            if( !open_printer( "", config.team_class[ptr->class - 1].abr, 132, report_html, report_title ) )
1077
            if( !open_printer( "", config.team_class[ptr->class - 1].abr, 132, report_html, report_title ) )
1075
                continue;
1078
                continue;
1076
            print_class_header( last_class = ptr->class, TRUE );
1079
            print_class_header( last_class = ptr->class, TRUE );
-
 
1080
 
-
 
1081
            /*
-
 
1082
            **  Mark the class as done
-
 
1083
            */
-
 
1084
            class_done[ptr->class] = TRUE;
1077
        }
1085
        }
1078
 
1086
 
1079
        /*
1087
        /*
1080
        **  Now read in the team record
1088
        **  Now read in the team record
1081
        */
1089
        */
Line 1135... Line 1143...
1135
 
1143
 
1136
    print_class_stats( last_class, TRUE );
1144
    print_class_stats( last_class, TRUE );
1137
    print_legend(last_class,1);
1145
    print_legend(last_class,1);
1138
    close_printer();
1146
    close_printer();
1139
 
1147
 
-
 
1148
    /*
-
 
1149
    **  Pickup missed classes and create a report
-
 
1150
    */
-
 
1151
    for( j = 1; j <= config.num_class; j++ )
-
 
1152
    {
-
 
1153
        if ( class_done[j] )
-
 
1154
        {
-
 
1155
            continue;
-
 
1156
        }
-
 
1157
 
-
 
1158
        report_title = tprintf( "Category results for : %-*s", LEN_CLASS_NAME, config.team_class[j - 1].full_name );
-
 
1159
        
-
 
1160
        if( !open_printer( "", config.team_class[j - 1].abr, 132, report_html, report_title ) )
-
 
1161
            continue;
-
 
1162
        print_class_header( j-1, TRUE );
-
 
1163
        print( "\nThere were no competitors in this class\n" );
-
 
1164
        print_legend(j,1);
-
 
1165
        close_printer();
-
 
1166
    }
-
 
1167
 
1140
 
1168
 
1141
    /*
1169
    /*
1142
    **  If we are generating an HTML report then we need to create the file
1170
    **  If we are generating an HTML report then we need to create the file
1143
    **  that contains all the team names - the assumption is that this data
1171
    **  that contains all the team names - the assumption is that this data
1144
    **  is available
1172
    **  is available