| Line 168... |
Line 168... |
| 168 |
** information. This allows the configuration process to be performed
|
168 |
** information. This allows the configuration process to be performed
|
| 169 |
** on a local copy of the data structure before installing it
|
169 |
** on a local copy of the data structure before installing it
|
| 170 |
**
|
170 |
**
|
| 171 |
** The order of this structure is somewhat erratic as it has grown
|
171 |
** The order of this structure is somewhat erratic as it has grown
|
| 172 |
*/
|
172 |
*/
|
| 173 |
typedef struct
|
173 |
//typedef struct
|
| 174 |
{
|
174 |
// {
|
| 175 |
char event_name[MAX_EVENT_NAME + 1]; /* Name of the event */
|
175 |
// char event_name[MAX_EVENT_NAME + 1]; /* Name of the event */
|
| 176 |
char leg_name[MAX_LEGS][MAX_LEG_NAME + 1]; /* Names of each leg */
|
176 |
// char leg_name[MAX_LEGS][MAX_LEG_NAME + 1]; /* Names of each leg */
|
| 177 |
ty_t_def t_def[MAX_TMS_SPLIT]; /* Team defintion data */
|
177 |
// ty_t_def t_def[MAX_TMS_SPLIT]; /* Team defintion data */
|
| 178 |
short num_legs; /* Number of legs in use */
|
178 |
// short num_legs; /* Number of legs in use */
|
| 179 |
short num_teams; /* Number of entries in team def array */
|
179 |
// short num_teams; /* Number of entries in team def array */
|
| 180 |
short max_team; /* Max team number */
|
180 |
// short max_team; /* Max team number */
|
| 181 |
short min_team; /* Min team number */
|
181 |
// short min_team; /* Min team number */
|
| 182 |
ty_t_class team_class[MAX_CLASS]; /* Define team classes */
|
182 |
// ty_t_class team_class[MAX_CLASS]; /* Define team classes */
|
| 183 |
short num_class; /* Number of classes */
|
183 |
// short num_class; /* Number of classes */
|
| 184 |
ty_t_country country_name[MAX_COUNTRY]; /* Define country names */
|
184 |
// ty_t_country country_name[MAX_COUNTRY]; /* Define country names */
|
| 185 |
short num_countries; /* Number of countries */
|
185 |
// short num_countries; /* Number of countries */
|
| 186 |
char addendum[20]; /* Name of ledgend addendum file */
|
186 |
// char addendum[20]; /* Name of ledgend addendum file */
|
| 187 |
char datafilename[8]; /* Name of the data file */
|
187 |
// char datafilename[8]; /* Name of the data file */
|
| 188 |
|
188 |
|
| 189 |
char nonequestrian_class_abr[3]; /* The non-equestrian class abr */
|
189 |
// char nonequestrian_class_abr[3]; /* The non-equestrian class abr */
|
| 190 |
short nonequestrian_class; /* Index of non-equestrian class */
|
190 |
// short nonequestrian_class; /* Index of non-equestrian class */
|
| 191 |
short equestrian_leg; /* The Equestrian leg - only used if nonequestrian_class */
|
191 |
// short equestrian_leg; /* The Equestrian leg - only used if nonequestrian_class */
|
| 192 |
|
192 |
|
| 193 |
short lines_per_page; /* .txt file printing */
|
193 |
// short lines_per_page; /* .txt file printing */
|
| 194 |
short perf_skip; /* .txt file printing */
|
194 |
// short perf_skip; /* .txt file printing */
|
| 195 |
|
195 |
|
| 196 |
short class_winners[MAX_CLASS]; /* Winners for each class */
|
196 |
// short class_winners[MAX_CLASS]; /* Winners for each class */
|
| 197 |
char hall_fame[MAX_FAME][MAX_PERSON_NAME + 1]; /* Names */
|
197 |
// char hall_fame[MAX_FAME][MAX_PERSON_NAME + 1]; /* Names */
|
| 198 |
short num_fame; /* Number of fame numbers */
|
198 |
// short num_fame; /* Number of fame numbers */
|
| 199 |
}
|
199 |
// }
|
| 200 |
MARA_CFG;
|
200 |
//MARA_CFG;
|
| 201 |
|
201 |
|
| 202 |
|
202 |
|
| 203 |
/*
|
203 |
/*
|
| 204 |
** Menu entry
|
204 |
** Menu entry
|
| 205 |
*/
|
205 |
*/
|
| 206 |
typedef struct
|
206 |
//typedef struct
|
| 207 |
{
|
207 |
// {
|
| 208 |
char key; /* Key to accept entry */
|
208 |
// char key; /* Key to accept entry */
|
| 209 |
const char *prompt; /* User prompt */
|
209 |
// const char *prompt; /* User prompt */
|
| 210 |
void ( *doit ) ( void ); /* Pointer to a function */
|
210 |
// void ( *doit ) ( void ); /* Pointer to a function */
|
| 211 |
}
|
211 |
// }
|
| 212 |
menu_table;
|
212 |
//menu_table;
|
| 213 |
|
213 |
|
| 214 |
/*
|
214 |
/*
|
| 215 |
** The following structure is used to do the prelim leg sort
|
215 |
** The following structure is used to do the prelim leg sort
|
| 216 |
*/
|
216 |
*/
|
| 217 |
typedef struct
|
217 |
typedef struct
|