Subversion Repositories svn1-original

Rev

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

Rev 162 Rev 164
Line 99... Line 99...
99
 
99
 
100
    if( mode )
100
    if( mode )
101
    {
101
    {
102
//        if( fcon )
102
//        if( fcon )
103
//        {
103
//        {
104
//            printf( "Configuration file already exists\n" );
104
//            printf( "Configuration file already exists" );
105
//            ok = FALSE;
105
//            ok = FALSE;
106
//        }
106
//        }
107
//        else
107
//        else
108
//        {
108
//        {
109
//            ok = define_config(  );              /* Generate the configuration */
109
//            ok = define_config(  );              /* Generate the configuration */
Line 114... Line 114...
114
    else if( fcon )
114
    else if( fcon )
115
        ok = rd_config(  );                      /* read in the existing config */
115
        ok = rd_config(  );                      /* read in the existing config */
116
    else
116
    else
117
    {
117
    {
118
        ok = FALSE;
118
        ok = FALSE;
119
        printf( "Configuration file not found\n" );
119
        printf( "Configuration file not found" );
120
    }
120
    }
121
 
121
 
122
    /*
122
    /*
123
     **  Post read calculations and fixups
123
     **  Post read calculations and fixups
124
     */
124
     */
Line 183... Line 183...
183
//    do
183
//    do
184
//    {
184
//    {
185
//        error = 0;
185
//        error = 0;
186
//        num_teams = 0;
186
//        num_teams = 0;
187
//        d_config( &newcfg, M_UPDATE );
187
//        d_config( &newcfg, M_UPDATE );
188
//        printf( "\n" );
188
//        printf( "" );
189
 
189
 
190
//        compact( newcfg.event_name );               /* Rip of leading white_space */
190
//        compact( newcfg.event_name );               /* Rip of leading white_space */
191
//        for( i = 0; i < MAX_LEGS; i++ )
191
//        for( i = 0; i < MAX_LEGS; i++ )
192
//            compact( newcfg.leg_name[i] );
192
//            compact( newcfg.leg_name[i] );
193
//        compact( newcfg.addendum );
193
//        compact( newcfg.addendum );
Line 203... Line 203...
203
//            if( newcfg.leg_name[i][0] )
203
//            if( newcfg.leg_name[i][0] )
204
//                newcfg.num_legs++;
204
//                newcfg.num_legs++;
205
//        for( i = newcfg.num_legs; i < MAX_LEGS; i++ )
205
//        for( i = newcfg.num_legs; i < MAX_LEGS; i++ )
206
//            if( newcfg.leg_name[i][0] )
206
//            if( newcfg.leg_name[i][0] )
207
//            {
207
//            {
208
//                printf( "Configuration error: Missing leg\n" );
208
//                printf( "Configuration error: Missing leg" );
209
//                error++;
209
//                error++;
210
//            }
210
//            }
211
 
211
 
212
 
212
 
213
//        /*
213
//        /*
Line 219... Line 219...
219
//            if( newcfg.t_def[i].start == 0 && newcfg.t_def[i].end == 0 )
219
//            if( newcfg.t_def[i].start == 0 && newcfg.t_def[i].end == 0 )
220
//                continue;
220
//                continue;
221
//            if( newcfg.t_def[i].start > newcfg.t_def[i].end )
221
//            if( newcfg.t_def[i].start > newcfg.t_def[i].end )
222
//            {
222
//            {
223
//                printf
223
//                printf
224
//                    ( "Team definition error : End greater than start. %d to %d\n",
224
//                    ( "Team definition error : End greater than start. %d to %d",
225
//                      newcfg.t_def[i].start, newcfg.t_def[i].end );
225
//                      newcfg.t_def[i].start, newcfg.t_def[i].end );
226
//                error++;
226
//                error++;
227
//            }
227
//            }
228
//            for( j = 0; j < i; j++ )
228
//            for( j = 0; j < i; j++ )
229
//            {
229
//            {
Line 231... Line 231...
231
//                      && newcfg.t_def[i].start <= newcfg.t_def[j].end )
231
//                      && newcfg.t_def[i].start <= newcfg.t_def[j].end )
232
//                    || ( newcfg.t_def[i].end >= newcfg.t_def[j].start
232
//                    || ( newcfg.t_def[i].end >= newcfg.t_def[j].start
233
//                         && newcfg.t_def[i].end <= newcfg.t_def[j].end ) )
233
//                         && newcfg.t_def[i].end <= newcfg.t_def[j].end ) )
234
//                {
234
//                {
235
//                    printf
235
//                    printf
236
//                        ( "Team definition error : Overlapping definition. %d to %d\n",
236
//                        ( "Team definition error : Overlapping definition. %d to %d",
237
//                          newcfg.t_def[i].start, newcfg.t_def[i].end );
237
//                          newcfg.t_def[i].start, newcfg.t_def[i].end );
238
//                    error++;
238
//                    error++;
239
//                }
239
//                }
240
//            }
240
//            }
241
//        }
241
//        }
Line 263... Line 263...
263
//            }
263
//            }
264
//        }
264
//        }
265
//#if defined(LIMIT_TEAMS) && (LIMIT_TEAMS > 0)
265
//#if defined(LIMIT_TEAMS) && (LIMIT_TEAMS > 0)
266
//        if( num_teams > LIMIT_TEAMS )
266
//        if( num_teams > LIMIT_TEAMS )
267
//        {
267
//        {
268
//            printf( "Maximum number of teams exceeded - reduce number of teams\n" );
268
//            printf( "Maximum number of teams exceeded - reduce number of teams" );
269
//            error++;
269
//            error++;
270
//        }
270
//        }
271
//#endif
271
//#endif
272
 
272
 
273
//#if defined (HI_TECH_C) || defined (__TURBOC__)
273
//#if defined (HI_TECH_C) || defined (__TURBOC__)
Line 281... Line 281...
281
 
281
 
282
//            sz = sizeof( ty_s_data ) > sizeof( ty_s_aux ) ?
282
//            sz = sizeof( ty_s_data ) > sizeof( ty_s_aux ) ?
283
//                sizeof( ty_s_data ) : sizeof( ty_s_aux );
283
//                sizeof( ty_s_data ) : sizeof( ty_s_aux );
284
//            if( sz * ( newcfg.max_team - newcfg.min_team + 2 ) > ( 1024L * 64L ) )
284
//            if( sz * ( newcfg.max_team - newcfg.min_team + 2 ) > ( 1024L * 64L ) )
285
//            {
285
//            {
286
//                printf( "Too many teams: Reduce team spread.\n" );
286
//                printf( "Too many teams: Reduce team spread." );
287
//                error++;
287
//                error++;
288
//            }
288
//            }
289
//        }
289
//        }
290
//#endif
290
//#endif
291
 
291
 
Line 294... Line 294...
294
//         */
294
//         */
295
//        if( newcfg.equestrian_leg )
295
//        if( newcfg.equestrian_leg )
296
//        {
296
//        {
297
//            if( newcfg.equestrian_leg > newcfg.num_legs )
297
//            if( newcfg.equestrian_leg > newcfg.num_legs )
298
//            {
298
//            {
299
//                printf( "Invalid non-equestrian leg number.\n" );
299
//                printf( "Invalid non-equestrian leg number." );
300
//                error++;
300
//                error++;
301
//            }
301
//            }
302
 
302
 
303
//            /*
303
//            /*
304
//             **  Ensure that the entered non-equestrian class name does exist
304
//             **  Ensure that the entered non-equestrian class name does exist
305
//             */
305
//             */
306
//            newcfg.nonequestrian_class = lookup_class( newcfg.nonequestrian_class_abr, &newcfg );
306
//            newcfg.nonequestrian_class = lookup_class( newcfg.nonequestrian_class_abr, &newcfg );
307
//            if( newcfg.nonequestrian_class == 0 )
307
//            if( newcfg.nonequestrian_class == 0 )
308
//                printf( "WARNING: Non-equestrian class not found\n" );
308
//                printf( "WARNING: Non-equestrian class not found" );
309
//        }
309
//        }
310
 
310
 
311
//        abort_flag = FALSE;
311
//        abort_flag = FALSE;
312
//        if( error )
312
//        if( error )
313
//        {
313
//        {
314
//            printf( "Configuration error - error must be corrected\n" );
314
//            printf( "Configuration error - error must be corrected" );
315
//            printf( "Any key to continue " );
315
//            printf( "Any key to continue " );
316
//            ( void ) getinp(  );
316
//            ( void ) getinp(  );
317
//            continue;
317
//            continue;
318
//        }
318
//        }
319
//        else
319
//        else
Line 322... Line 322...
322
//            switch ( getfnc( "*YDEA" ) )
322
//            switch ( getfnc( "*YDEA" ) )
323
//            {
323
//            {
324
//            case 'Y':
324
//            case 'Y':
325
//                error = ( newcfg.num_legs == 0 || newcfg.num_teams == 0 );
325
//                error = ( newcfg.num_legs == 0 || newcfg.num_teams == 0 );
326
//                if( error )
326
//                if( error )
327
//                    printf( "\nConfiguration not installed. No legs or teams defined\n" );
327
//                    printf( "Configuration not installed. No legs or teams defined" );
328
//                else
328
//                else
329
//                {
329
//                {
330
//                    config = newcfg;
330
//                    config = newcfg;
331
//                    wt_config(  );               /* Write out the data */
331
//                    wt_config(  );               /* Write out the data */
332
//                    changed = TRUE;
332
//                    changed = TRUE;
Line 426... Line 426...
426
 
426
 
427
//    do
427
//    do
428
//    {
428
//    {
429
//        error = 0;
429
//        error = 0;
430
//        d_class( &newcfg, M_UPDATE );
430
//        d_class( &newcfg, M_UPDATE );
431
//        printf( "\n" );
431
//        printf( "" );
432
 
432
 
433
//        /*
433
//        /*
434
//         **  Now do the Class definitions
434
//         **  Now do the Class definitions
435
//         */
435
//         */
436
//        for( i = 0; i < MAX_CLASS; i++ )
436
//        for( i = 0; i < MAX_CLASS; i++ )
Line 441... Line 441...
441
 
441
 
442
//        for( i = 0; i < MAX_CLASS; i++ )
442
//        for( i = 0; i < MAX_CLASS; i++ )
443
//        {
443
//        {
444
//            if( ( newcfg.team_class[i].abr[0] == '\0' ) != ( newcfg.team_class[i].full_name[0] == '\0' ) )
444
//            if( ( newcfg.team_class[i].abr[0] == '\0' ) != ( newcfg.team_class[i].full_name[0] == '\0' ) )
445
//            {
445
//            {
446
//                printf( "Configuration error. Class without description\n" );
446
//                printf( "Configuration error. Class without description" );
447
//                error++;
447
//                error++;
448
//            }
448
//            }
449
//            if( newcfg.team_class[i].abr[0] != '\0' && newcfg.team_class[i].start < 0L )
449
//            if( newcfg.team_class[i].abr[0] != '\0' && newcfg.team_class[i].start < 0L )
450
//            {
450
//            {
451
//                printf( "Configuration error. Bad start time on class\n" );
451
//                printf( "Configuration error. Bad start time on class" );
452
//                error++;
452
//                error++;
453
//            }
453
//            }
454
//        }
454
//        }
455
 
455
 
456
//        newcfg.num_class = 0;
456
//        newcfg.num_class = 0;
Line 459... Line 459...
459
//                newcfg.num_class++;
459
//                newcfg.num_class++;
460
 
460
 
461
//        for( i = newcfg.num_class; i < MAX_CLASS; i++ )
461
//        for( i = newcfg.num_class; i < MAX_CLASS; i++ )
462
//            if( newcfg.team_class[i].full_name[0] )
462
//            if( newcfg.team_class[i].full_name[0] )
463
//            {
463
//            {
464
//                printf( "Configuration error: Missing Class name. Gaps not allowed\n" );
464
//                printf( "Configuration error: Missing Class name. Gaps not allowed" );
465
//                error++;
465
//                error++;
466
//            }
466
//            }
467
 
467
 
468
//        if( newcfg.num_class == 0 )
468
//        if( newcfg.num_class == 0 )
469
//        {
469
//        {
470
//            printf( "Error: No categories defined\n" );
470
//            printf( "Error: No categories defined" );
471
//            error++;
471
//            error++;
472
//        }
472
//        }
473
 
473
 
474
//        newcfg.nonequestrian_class = lookup_class( newcfg.nonequestrian_class_abr, &newcfg );
474
//        newcfg.nonequestrian_class = lookup_class( newcfg.nonequestrian_class_abr, &newcfg );
475
//        if( newcfg.equestrian_leg && newcfg.nonequestrian_class == 0 )
475
//        if( newcfg.equestrian_leg && newcfg.nonequestrian_class == 0 )
476
//            printf( "WARNING: Non-equestrian class not found\n" );
476
//            printf( "WARNING: Non-equestrian class not found" );
477
 
477
 
478
//        abort_flag = FALSE;
478
//        abort_flag = FALSE;
479
//        if( error )
479
//        if( error )
480
//        {
480
//        {
481
//            printf( "Any key to continue " );
481
//            printf( "Any key to continue " );
Line 745... Line 745...
745
//        /*
745
//        /*
746
//         * Get the operator to update the screen
746
//         * Get the operator to update the screen
747
//         */
747
//         */
748
 
748
 
749
//        d_cntry( &newcfg, M_UPDATE );               /* Update the country data */
749
//        d_cntry( &newcfg, M_UPDATE );               /* Update the country data */
750
//        printf( "\n" );
750
//        printf( "" );
751
 
751
 
752
//        /*
752
//        /*
753
//         * Now check the data that has been entered.
753
//         * Now check the data that has been entered.
754
//         */
754
//         */
755
 
755
 
Line 759... Line 759...
759
//            compact( ptr->abr );
759
//            compact( ptr->abr );
760
//            compact( ptr->full_name );
760
//            compact( ptr->full_name );
761
//            if( ( ptr->abr[0] == '\0' ) != ( ptr->full_name[0] == '\0' ) )
761
//            if( ( ptr->abr[0] == '\0' ) != ( ptr->full_name[0] == '\0' ) )
762
//            {
762
//            {
763
//                error++;
763
//                error++;
764
//                printf( "Missing field\n" );
764
//                printf( "Missing field" );
765
//            }
765
//            }
766
//            if( ptr->abr[0] )
766
//            if( ptr->abr[0] )
767
//                newcfg.num_countries++;
767
//                newcfg.num_countries++;
768
//        }
768
//        }
769
 
769
 
770
//        if( error )
770
//        if( error )
771
//        {
771
//        {
772
//            printf( "Configuration error - error must be corrected\n" );
772
//            printf( "Configuration error - error must be corrected" );
773
//            printf( "Any key to continue " );
773
//            printf( "Any key to continue " );
774
//            ( void ) getinp(  );
774
//            ( void ) getinp(  );
775
//        }
775
//        }
776
//        else
776
//        else
777
//        {
777
//        {
Line 916... Line 916...
916
//    */
916
//    */
917
//    do
917
//    do
918
//    {
918
//    {
919
//        error = 0;
919
//        error = 0;
920
//        d_winners ( &newcfg, M_UPDATE );
920
//        d_winners ( &newcfg, M_UPDATE );
921
//        printf( "\n" );
921
//        printf( "" );
922
 
922
 
923
//        /*
923
//        /*
924
//        **  Sanity test of the data
924
//        **  Sanity test of the data
925
//        */
925
//        */
926
//        for( i = 0; i < MAX_CLASS; i++ )
926
//        for( i = 0; i < MAX_CLASS; i++ )
927
//        {
927
//        {
928
//            if( newcfg.team_class[i].abr[0] != '\0' && newcfg.class_winners[i] == 0 )
928
//            if( newcfg.team_class[i].abr[0] != '\0' && newcfg.class_winners[i] == 0 )
929
//            {
929
//            {
930
//                printf( "  Warning: Class without winners: %s\n", newcfg.team_class[i].abr );
930
//                printf( "  Warning: Class without winners: %s", newcfg.team_class[i].abr );
931
//            }
931
//            }
932
 
932
 
933
//            if ( newcfg.class_winners[i] > class_summary.teamclass[i+1].total )
933
//            if ( newcfg.class_winners[i] > class_summary.teamclass[i+1].total )
934
//            {
934
//            {
935
//                printf( "  Warning: Num winners greater than those in class: %s\n", newcfg.team_class[i].abr );
935
//                printf( "  Warning: Num winners greater than those in class: %s", newcfg.team_class[i].abr );
936
//            }
936
//            }
937
//        }
937
//        }
938
 
938
 
939
 
939
 
940
//        newcfg.num_fame = 0;
940
//        newcfg.num_fame = 0;
Line 943... Line 943...
943
//                newcfg.num_fame++;
943
//                newcfg.num_fame++;
944
 
944
 
945
//        for( i = newcfg.num_fame; i < MAX_FAME; i++ )
945
//        for( i = newcfg.num_fame; i < MAX_FAME; i++ )
946
//            if( newcfg.hall_fame[i][0] )
946
//            if( newcfg.hall_fame[i][0] )
947
//            {
947
//            {
948
//                printf( "Configuration error: Missing Fame name. Gaps not allowed\n" );
948
//                printf( "Configuration error: Missing Fame name. Gaps not allowed" );
949
//                error++;
949
//                error++;
950
//                break;
950
//                break;
951
//            }
951
//            }
952
 
952
 
953
//        abort_flag = FALSE;
953
//        abort_flag = FALSE;
Line 1082... Line 1082...
1082
 
1082
 
1083
 
1083
 
1084
    fcon = fopen( confile, "rb" );
1084
    fcon = fopen( confile, "rb" );
1085
    if( ! fcon )
1085
    if( ! fcon )
1086
    {
1086
    {
1087
        printf( "Configuration file %s not found\n", confile );
1087
        printf( "Configuration file %s not found", confile );
1088
        return ( FALSE );
1088
        return ( FALSE );
1089
    }
1089
    }
1090
    ok = r_config( fcon );
1090
    ok = r_config( fcon );
1091
 
1091
 
1092
    fclose( fcon );
1092
    fclose( fcon );
Line 1114... Line 1114...
1114
    int         len;                             /* Length of data read */
1114
    int         len;                             /* Length of data read */
1115
 
1115
 
1116
    /*
1116
    /*
1117
     * Event name 
1117
     * Event name 
1118
     */
1118
     */
1119
printf( "Reading: Event Name\n" );
1119
printf( "Reading: Event Name" );
1120
    len = fread( config.event_name, sizeof( config.event_name ), 1 , fcon );
1120
    len = fread( config.event_name, sizeof( config.event_name ), 1 , fcon );
1121
    if( len != 1 )
1121
    if( len != 1 )
1122
        return ( FALSE );
1122
        return ( FALSE );
1123
 
1123
 
1124
    /*
1124
    /*
1125
     * Leg names 
1125
     * Leg names 
1126
     */
1126
     */
1127
printf( "Reading: Leg Names\n" );
1127
printf( "Reading: Leg Names" );
1128
    len = fread( config.leg_name, sizeof( config.leg_name ), 1 , fcon );
1128
    len = fread( config.leg_name, sizeof( config.leg_name ), 1 , fcon );
1129
    if( len != 1 )
1129
    if( len != 1 )
1130
        return ( FALSE );
1130
        return ( FALSE );
1131
 
1131
 
1132
    /*
1132
    /*
1133
     * Team definitions 
1133
     * Team definitions 
1134
     */
1134
     */
1135
printf( "Reading: Team Defs\n" );
1135
printf( "Reading: Team Defs" );
1136
 
1136
 
1137
    len = fread( config.t_def, sizeof( config.t_def ), 1 , fcon );
1137
    len = fread( config.t_def, sizeof( config.t_def ), 1 , fcon );
1138
    if( len != 1 )
1138
    if( len != 1 )
1139
        return ( FALSE );
1139
        return ( FALSE );
1140
 
1140
 
1141
    /*
1141
    /*
1142
     * Number of legs 
1142
     * Number of legs 
1143
     */
1143
     */
1144
 
1144
 
1145
printf( "Reading: Leg Nums\n" );
1145
printf( "Reading: Leg Nums" );
1146
    len = fread( &config.num_legs, sizeof( config.num_legs ), 1 , fcon );
1146
    len = fread( &config.num_legs, sizeof( config.num_legs ), 1 , fcon );
1147
    if( len != 1)
1147
    if( len != 1)
1148
        return ( FALSE );
1148
        return ( FALSE );
1149
 
1149
 
1150
    /*
1150
    /*
1151
     * Number of team splits 
1151
     * Number of team splits 
1152
     */
1152
     */
1153
 
1153
 
1154
printf( "Reading: Team Splits\n" );
1154
printf( "Reading: Team Splits" );
1155
    len = fread( &config.num_teams, sizeof( config.num_teams ), 1 , fcon );
1155
    len = fread( &config.num_teams, sizeof( config.num_teams ), 1 , fcon );
1156
    if( len != 1 )
1156
    if( len != 1 )
1157
        return ( FALSE );
1157
        return ( FALSE );
1158
 
1158
 
1159
    config.min_team = config.t_def[0].start;
1159
    config.min_team = config.t_def[0].start;
1160
    config.max_team = config.t_def[config.num_teams - 1].end;
1160
    config.max_team = config.t_def[config.num_teams - 1].end;
1161
 
1161
 
1162
    /*
1162
    /*
1163
     * Class information 
1163
     * Class information 
1164
     */
1164
     */
1165
printf( "Reading: Class Data\n" );
1165
printf( "Reading: Class Data" );
1166
    len = fread( config.team_class, sizeof( config.team_class ), 1 , fcon );
1166
    len = fread( config.team_class, sizeof( config.team_class ), 1 , fcon );
1167
    if( len != 1 )
1167
    if( len != 1 )
1168
        return ( FALSE );
1168
        return ( FALSE );
1169
    len = fread( &config.num_class, sizeof( config.num_class ), 1 , fcon );
1169
    len = fread( &config.num_class, sizeof( config.num_class ), 1 , fcon );
1170
    if( len != 1 )
1170
    if( len != 1 )
Line 1172... Line 1172...
1172
 
1172
 
1173
    /*
1173
    /*
1174
     * Country list 
1174
     * Country list 
1175
     */
1175
     */
1176
 
1176
 
1177
printf( "Reading: Country Data, Name\n" );
1177
printf( "Reading: Country Data, Name" );
1178
    len = fread( config.country_name, sizeof( config.country_name ), 1 , fcon );
1178
    len = fread( config.country_name, sizeof( config.country_name ), 1 , fcon );
1179
    if( len != 1 )
1179
    if( len != 1 )
1180
        return ( FALSE );
1180
        return ( FALSE );
1181
printf( "Reading: Country Data, Number\n" );
1181
printf( "Reading: Country Data, Number" );
1182
    len = fread( &config.num_countries, sizeof( config.num_countries ), 1 , fcon );
1182
    len = fread( &config.num_countries, sizeof( config.num_countries ), 1 , fcon );
1183
    if( len != 1 )
1183
    if( len != 1 )
1184
        return ( FALSE );
1184
        return ( FALSE );
1185
 
1185
 
1186
    /*
1186
    /*
1187
     * Addendum file 
1187
     * Addendum file 
1188
     */
1188
     */
1189
 
1189
 
1190
printf( "Reading: Addendum File\n" );
1190
printf( "Reading: Addendum File" );
1191
    len = fread( config.addendum, sizeof( config.addendum ), 1 , fcon );
1191
    len = fread( config.addendum, sizeof( config.addendum ), 1 , fcon );
1192
    if( len != 1 )
1192
    if( len != 1 )
1193
        return ( feof( fcon ) );
1193
        return ( feof( fcon ) );
1194
 
1194
 
1195
    /*
1195
    /*
1196
     * Name of the data file 
1196
     * Name of the data file 
1197
     */
1197
     */
1198
 
1198
 
1199
printf( "Reading: Name of data file\n" );
1199
printf( "Reading: Name of data file" );
1200
    len = fread( config.datafilename, sizeof( config.datafilename ) , 1 , fcon );
1200
    len = fread( config.datafilename, sizeof( config.datafilename ) , 1 , fcon );
1201
    if( len != 1 )
1201
    if( len != 1 )
1202
        return ( feof( fcon ) );
1202
        return ( feof( fcon ) );
1203
 
1203
 
1204
    /*
1204
    /*
1205
     **  Non-equestrian configuration information
1205
     **  Non-equestrian configuration information
1206
     */
1206
     */
1207
printf( "Reading: NonEquest\n" );
1207
printf( "Reading: NonEquest" );
1208
    len = fread( config.nonequestrian_class_abr, sizeof( config.nonequestrian_class_abr ), 1 , fcon );
1208
    len = fread( config.nonequestrian_class_abr, sizeof( config.nonequestrian_class_abr ), 1 , fcon );
1209
    if( len != 1 )
1209
    if( len != 1 )
1210
        return ( feof( fcon ) );
1210
        return ( feof( fcon ) );
1211
printf( "Reading: NonEquest-2\n" );
1211
printf( "Reading: NonEquest-2" );
1212
    len = fread( &config.equestrian_leg, sizeof( config.equestrian_leg ), 1 , fcon );
1212
    len = fread( &config.equestrian_leg, sizeof( config.equestrian_leg ), 1 , fcon );
1213
    if( len != 1 )
1213
    if( len != 1 )
1214
        return ( FALSE );
1214
        return ( FALSE );
1215
 
1215
 
1216
    /*
1216
    /*
1217
    **  .txt file output control. Lines per page and perf-skipping
1217
    **  .txt file output control. Lines per page and perf-skipping
1218
    */
1218
    */
1219
printf( "Reading: Output Control\n" );
1219
printf( "Reading: Output Control" );
1220
    len = fread( &config.lines_per_page, sizeof( config.lines_per_page ), 1 , fcon );
1220
    len = fread( &config.lines_per_page, sizeof( config.lines_per_page ), 1 , fcon );
1221
    if( len != 1 )
1221
    if( len != 1 )
1222
        return ( feof( fcon ) );
1222
        return ( feof( fcon ) );
1223
 
1223
 
1224
printf( "Reading: Output Control-2\n" );
1224
printf( "Reading: Output Control-2" );
1225
    len = fread( &config.perf_skip, sizeof( config.perf_skip ), 1 , fcon );
1225
    len = fread( &config.perf_skip, sizeof( config.perf_skip ), 1 , fcon );
1226
    if( len != 1 )
1226
    if( len != 1 )
1227
        return ( FALSE );
1227
        return ( FALSE );
1228
 
1228
 
1229
printf( "Reading: Winners Info\n" );
1229
printf( "Reading: Winners Info" );
1230
    len = fread( &config.class_winners, sizeof( config.class_winners ), 1 , fcon );
1230
    len = fread( &config.class_winners, sizeof( config.class_winners ), 1 , fcon );
1231
    if( len != 1 )
1231
    if( len != 1 )
1232
        return ( FALSE );
1232
        return ( FALSE );
1233
 
1233
 
1234
printf( "Reading: Hall of Fame Info\n" );
1234
printf( "Reading: Hall of Fame Info" );
1235
    len = fread( &config.hall_fame, sizeof( config.hall_fame ), 1 , fcon );
1235
    len = fread( &config.hall_fame, sizeof( config.hall_fame ), 1 , fcon );
1236
    if( len != 1 )
1236
    if( len != 1 )
1237
        return ( FALSE );
1237
        return ( FALSE );
1238
 
1238
 
1239
printf( "Reading: Hall of Fame Numbers\n" );
1239
printf( "Reading: Hall of Fame Numbers" );
1240
    len = fread( &config.num_fame, sizeof( config.num_fame ), 1 , fcon );
1240
    len = fread( &config.num_fame, sizeof( config.num_fame ), 1 , fcon );
1241
    if( len != 1 )
1241
    if( len != 1 )
1242
        return ( feof( fcon ) );
1242
        return ( feof( fcon ) );
1243
 
1243
 
1244
 
1244