Subversion Repositories svn1-original

Rev

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

Rev 174 Rev 199
Line 31... Line 31...
31
*                               a printed report for any leg
31
*                               a printed report for any leg
32
*   00.0    27/01/95    DDP     Tidies up the program and formatted the file
32
*   00.0    27/01/95    DDP     Tidies up the program and formatted the file
33
*
33
*
34
**************************************************************************/
34
**************************************************************************/
35
#include    "QDebug"
35
#include    "QDebug"
-
 
36
#include    "mainwindow.h"
36
#include    "consts.h"
37
#include    "consts.h"
37
#include    "structs.h"
38
#include    "structs.h"
38
#include    "proto.h"
39
#include    "proto.h"
39
 
40
 
40
/*========================================================================
41
/*========================================================================
Line 501... Line 502...
501
    int         last_team;
502
    int         last_team;
502
    int         num_records = 0;                 /* Number of records in array */
503
    int         num_records = 0;                 /* Number of records in array */
503
    char        l_s[40];                         /* Name of start time file */
504
    char        l_s[40];                         /* Name of start time file */
504
    team_type   team_buf;
505
    team_type   team_buf;
505
 
506
 
506
    printf( "Generating Starters report for Leg-%d", leg );
-
 
507
 
-
 
508
    data = ( t_legs * ) calloc( ( unsigned ) ( config.max_team - config.min_team + 2 ), sizeof( t_legs ) ); /* Fetch memory */
507
    data = ( t_legs * ) calloc( ( unsigned ) ( config.max_team - config.min_team + 2 ), sizeof( t_legs ) ); /* Fetch memory */
509
 
508
 
510
    if( !data )
509
    if( !data )
511
    {
510
    {
512
        qDebug( "No memory for report" );
511
        MainWindow::showMessage("No memory for report");
513
        return;
512
        return;
514
    }
513
    }
515
 
514
 
516
    /*
515
    /*
517
     * Extract the required data from the data base
516
     * Extract the required data from the data base