Subversion Repositories svn1

Rev

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

Rev 85 Rev 91
Line 15... Line 15...
15
#include    <time.h>
15
#include    <time.h>
16
 
16
 
17
typedef unsigned char  uchar;
17
typedef unsigned char  uchar;
18
typedef unsigned int   uint;
18
typedef unsigned int   uint;
19
typedef unsigned long  ulong;
19
typedef unsigned long  ulong;
20
typedef unsigned char  bool;
20
//typedef unsigned char  bool;
21
typedef unsigned short ushort;
21
typedef unsigned short ushort;
22
 
22
 
23
#ifdef __MINGW32__
23
#ifdef __MINGW32__
24
#define MPACKED  __attribute__ ((packed))
24
#define MPACKED  __attribute__ ((packed))
25
#define FILL1   char    dummy;
25
#define FILL1   char    dummy;
Line 128... Line 128...
128
        short       numb;                        /* Team number */
128
        short       numb;                        /* Team number */
129
        char        name[MAX_TM_NAME + 1];       /* Team name */
129
        char        name[MAX_TM_NAME + 1];       /* Team name */
130
        FILL1
130
        FILL1
131
        leg_type    leg [MAX_LEGS + 1];          /* Timing structure for each leg */
131
        leg_type    leg [MAX_LEGS + 1];          /* Timing structure for each leg */
132
        memb_type   members[MAX_MEMB];           /* Team members */
132
        memb_type   members[MAX_MEMB];           /* Team members */
133
        short       class;                       /* Team class index */
133
        short       teamclass;                   /* Team class index */
134
        short       country;                     /* Team country index */
134
        short       country;                     /* Team country index */
135
        team_flags  flags;                       /* Flag word */
135
        team_flags  flags;                       /* Flag word */
136
    } MPACKED
136
    } MPACKED
137
team_type ;
137
team_type ;
138
 
138
 
Line 202... Line 202...
202
**  Menu entry
202
**  Menu entry
203
*/
203
*/
204
typedef struct
204
typedef struct
205
    {
205
    {
206
        char        key;                         /* Key to accept entry */
206
        char        key;                         /* Key to accept entry */
207
        char       *prompt;                      /* User prompt */
207
        const char *prompt;                      /* User prompt */
208
        void        ( *doit ) ( void );          /* Pointer to a function */
208
        void        ( *doit ) ( void );          /* Pointer to a function */
209
    }
209
    }
210
menu_table;
210
menu_table;
211
 
211
 
212
/*
212
/*
Line 217... Line 217...
217
        short       team;                        /* Team number */
217
        short       team;                        /* Team number */
218
        time_t      start;                       /* Start time for team */
218
        time_t      start;                       /* Start time for team */
219
        time_t      leg[MAX_LEGS + 1];           /* Times at end of each leg */
219
        time_t      leg[MAX_LEGS + 1];           /* Times at end of each leg */
220
        time_t      lege[MAX_LEGS + 1];          /* Times leg elapsed times */
220
        time_t      lege[MAX_LEGS + 1];          /* Times leg elapsed times */
221
        short       place;                       /* Place at end of each leg */
221
        short       place;                       /* Place at end of each leg */
222
        short       class;                       /* Team class */
222
        short       teamclass;                   /* Team class */
223
        team_flags  flags;                       /* Team flags */
223
        team_flags  flags;                       /* Team flags */
224
    }
224
    }
225
ty_s_data;
225
ty_s_data;
226
 
226
 
227
/*
227
/*
Line 252... Line 252...
252
    int         non_equestrian;                 /* Those on Non-E */
252
    int         non_equestrian;                 /* Those on Non-E */
253
} t_class_sum_entry;
253
} t_class_sum_entry;
254
 
254
 
255
typedef struct
255
typedef struct
256
{
256
{
257
    t_class_sum_entry   class[MAX_CLASS];       /* Per class data */
257
    t_class_sum_entry   teamclass[MAX_CLASS];   /* Per class data */
258
    t_class_sum_entry   total;                  /* Totals */
258
    t_class_sum_entry   total;                  /* Totals */
259
} t_class_summary;
259
} t_class_summary;
260
 
260
 
261
typedef struct
261
typedef struct
262
{
262
{
263
    char        name[MAX_PERSON_NAME + 1];
263
    char        name[MAX_PERSON_NAME + 1];
264
    ushort      leg;
264
    ushort      leg;
265
    ushort      team;
265
    ushort      team;
266
    short       class;
266
    short       teamclass;
267
    char        multi;
267
    char        multi;
268
} ty_s_namedata;
268
} ty_s_namedata;
269
 
269
 
270
 
270
 
271
 
271