Subversion Repositories svn1-original

Rev

Rev 95 | Rev 162 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 95 Rev 160
Line 2543... Line 2543...
2543
        }
2543
        }
2544
    }
2544
    }
2545
 
2545
 
2546
    if( bad )
2546
    if( bad )
2547
    {
2547
    {
2548
        printf( "\n%d teams with incorrect times.\n", bad );
2548
        printf( "\n%d teams with incorrect times.\nThese have been flagged as unplaced - continue report\n", bad );
-
 
2549
        return ( FALSE );
2549
        return ( !getyes
2550
//        return ( !getyes
2550
                 ( "These have been flagged as unplaced - continue report" ) );
2551
//                 ( "These have been flagged as unplaced - continue report" ) );
2551
    }
2552
    }
2552
    return ( FALSE );
2553
    return ( FALSE );
2553
}
2554
}
2554
 
2555
 
2555
/*========================================================================
2556
/*========================================================================
Line 2578... Line 2579...
2578
 
2579
 
2579
void srt_place(void)
2580
void srt_place(void)
2580
{
2581
{
2581
    int         i, j;
2582
    int         i, j;
2582
 
2583
 
2583
    cur( 0, 5 );
2584
//    cur( 0, 5 );
2584
    printf( "Update the team placings to the data base\n" );
2585
//    printf( "Update the team placings to the data base\n" );
2585
    flush_out();
2586
//    flush_out();
2586
    if( ck_data( -1, C_ELAPSED ) )
2587
    if( ck_data( -1, C_ELAPSED ) )
2587
        return;
2588
        return;
2588
    do_big_sort();
2589
    do_big_sort();
2589
 
2590
 
2590
    /*
2591
    /*
Line 2611... Line 2612...
2611
        for( i = 0; i <= config.num_legs; i++ )
2612
        for( i = 0; i <= config.num_legs; i++ )
2612
        {
2613
        {
2613
            printf( "     %s ", time_a( stats.average[i][j] ) );
2614
            printf( "     %s ", time_a( stats.average[i][j] ) );
2614
        }
2615
        }
2615
    }
2616
    }
2616
    printf( "\nAny key to continue" );
2617
//    printf( "\nAny key to continue" );
2617
    ( void ) getinp();
2618
//    ( void ) getinp();
2618
}
2619
}
2619
 
2620
 
2620
/*========================================================================
2621
/*========================================================================
2621
 *
2622
 *
2622
 *  Calculate summary information
2623
 *  Calculate summary information
Line 2839... Line 2840...
2839
    int         i, k;                            /* Looooopy things */
2840
    int         i, k;                            /* Looooopy things */
2840
    unsigned    j;
2841
    unsigned    j;
2841
    ty_s_data  *ptr;                             /* Pointer to sort data */
2842
    ty_s_data  *ptr;                             /* Pointer to sort data */
2842
    int         teamclass;                           /* Current class */
2843
    int         teamclass;                           /* Current class */
2843
 
2844
 
2844
    printf( "Sorting it ALL out" );
2845
//    printf( "Sorting it ALL out" );
2845
    flush_out();
2846
//    flush_out();
2846
 
2847
 
2847
    for( i = 0; i <= config.num_legs; i++ )
2848
    for( i = 0; i <= config.num_legs; i++ )
2848
    {
2849
    {
2849
        /*
2850
        /*
2850
        **  Sort on leg elapsed time
2851
        **  Sort on leg elapsed time
Line 2907... Line 2908...
2907
    }
2908
    }
2908
 
2909
 
2909
    /*
2910
    /*
2910
    **  Write the place information back to disk for use in the displays
2911
    **  Write the place information back to disk for use in the displays
2911
    */
2912
    */
2912
    printf( "\nWriting it all back to the disk file" );
2913
//    printf( "\nWriting it all back to the disk file" );
2913
    flush_out();
2914
//    flush_out();
2914
 
2915
 
2915
    for( i = config.min_team; i <= config.max_team; i++ )
2916
    for( i = config.min_team; i <= config.max_team; i++ )
2916
    {
2917
    {
2917
        if( sort_aux[i].team && valid_field( i ) && g_record( i, &team_buf ) )
2918
        if( sort_aux[i].team && valid_field( i ) && g_record( i, &team_buf ) )
2918
        {
2919
        {
Line 3261... Line 3262...
3261
    ty_s_data  *ptr;                             /* pointer to sort data type */
3262
    ty_s_data  *ptr;                             /* pointer to sort data type */
3262
    ty_s_data  *last;
3263
    ty_s_data  *last;
3263
    int         j;
3264
    int         j;
3264
    unsigned    num;
3265
    unsigned    num;
3265
 
3266
 
3266
    printf( "Loading team information - This will not hurt" );
3267
    //printf( "Loading team information - This will not hurt" );
3267
    flush_out();
3268
    //flush_out();
3268
 
3269
 
3269
    /*
3270
    /*
3270
     * Fetch memory for the data store
3271
     * Fetch memory for the data store
3271
     */
3272
     */
3272
 
3273
 
Line 3294... Line 3295...
3294
    sort_data = ( ty_s_data * ) calloc ( num , sizeof( ty_s_data ) );
3295
    sort_data = ( ty_s_data * ) calloc ( num , sizeof( ty_s_data ) );
3295
    sort_aux = ( ty_s_aux * ) calloc( num + 1, sizeof( ty_s_aux ) );
3296
    sort_aux = ( ty_s_aux * ) calloc( num + 1, sizeof( ty_s_aux ) );
3296
 
3297
 
3297
    if( sort_data == 0 || sort_aux == 0 )
3298
    if( sort_data == 0 || sort_aux == 0 )
3298
    {
3299
    {
3299
        printf( "\n\nError in allocating memory\n" );
3300
        printf( "Error in allocating memory" );
3300
        sleep( 5 );
3301
        sleep( 5 );
3301
        return ( FALSE );
3302
        return ( FALSE );
3302
    }
3303
    }
3303
 
3304
 
3304
    /*
3305
    /*