Subversion Repositories svn1

Rev

Rev 383 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 383 Rev 384
Line 12... Line 12...
12
*   00.0    27/01/95    DDP     Tidies up the program and formatted the file
12
*   00.0    27/01/95    DDP     Tidies up the program and formatted the file
13
*
13
*
14
**************************************************************************/
14
**************************************************************************/
15
#ifndef __structs_h__
15
#ifndef __structs_h__
16
#define __structs_h__
16
#define __structs_h__
-
 
17
#include "consts.h"
17
#include    <time.h>
18
#include <time.h>
18
 
19
 
19
typedef unsigned char  uchar;
20
typedef unsigned char  uchar;
20
typedef unsigned int   uint;
21
typedef unsigned int   uint;
21
typedef unsigned long  ulong;
22
typedef unsigned long  ulong;
22
//typedef unsigned char  bool;
23
//typedef unsigned char  bool;
Line 27... Line 28...
27
#define FILL1   char    dummy;
28
#define FILL1   char    dummy;
28
#define FILL1a  char    dummya;
29
#define FILL1a  char    dummya;
29
#define LONG_FILE_NAMES
30
#define LONG_FILE_NAMES
30
#else
31
#else
31
#define MPACKED
32
#define MPACKED
32
#define FILL1
33
//#define FILL1
33
#define FILL1a
34
//#define FILL1a
34
#endif
35
#endif
35
 
36
 
-
 
37
#pragma pack (push,1)
-
 
38
#define FILL1   char    dummy;
-
 
39
#define FILL1a  char    dummya;
-
 
40
 
36
/*
41
/*
37
**  Type of report
42
**  Type of report
38
*/
43
*/
39
typedef enum report_type_enum
44
typedef enum report_type_enum
40
{
45
{
Line 83... Line 88...
83
/*
88
/*
84
**  Describe the time of each leg
89
**  Describe the time of each leg
85
*/
90
*/
86
typedef struct
91
typedef struct
87
    {
92
    {
88
        time_t      start,                      /* Start time of leg */
93
        maraTime_t      start,                      /* Start time of leg */
89
                    end,                        /* End time of leg */
94
                    end,                        /* End time of leg */
90
                    elapsed;                    /* Elapsed time */
95
                    elapsed;                    /* Elapsed time */
91
        short       l_place,                    /* Place in leg */
96
        short       l_place,                    /* Place in leg */
92
                    le_place,                   /* Place at leg end */
97
                    le_place,                   /* Place at leg end */
93
                    lc_place,                   /* Place in leg for class */
98
                    lc_place,                   /* Place in leg for class */
Line 146... Line 151...
146
*/
151
*/
147
typedef struct
152
typedef struct
148
    {
153
    {
149
        char        abr[3];                         /* Team class - short name */
154
        char        abr[3];                         /* Team class - short name */
150
        char        full_name[LEN_CLASS_NAME + 1];  /* Long class name */
155
        char        full_name[LEN_CLASS_NAME + 1];  /* Long class name */
151
        time_t      start;                          /* Start time for each class */
156
        maraTime_t  start;                          /* Start time for each class */
-
 
157
        FILL1
152
    }
158
    }
153
ty_t_class;
159
ty_t_class;
154
 
160
 
155
/*
161
/*
156
**  Country information
162
**  Country information
157
*/
163
*/
158
typedef struct
164
typedef struct
159
    {
165
    {
160
        char        abr[5];                          /* Country short name */
166
        char        abr[5];                          /* Country short name */
161
        char        full_name[LEN_CNTRY_NAME + 1] ;  /* Full country name */
167
        char        full_name[LEN_CNTRY_NAME + 1] ;  /* Full country name */
162
#if defined(__MINGW32__) || defined(__GNUC__)
-
 
163
        char        dummy;
168
        FILL1
164
#endif
-
 
165
    }
169
    }
166
ty_t_country ;
170
ty_t_country ;
167
 
171
 
168
 
172
 
169
/*
173
/*
Line 218... Line 222...
218
**  The following structure is used to do the prelim leg sort
222
**  The following structure is used to do the prelim leg sort
219
*/
223
*/
220
typedef struct
224
typedef struct
221
    {
225
    {
222
        short       team;                        /* Team number */
226
        short       team;                        /* Team number */
223
        time_t      start;                       /* Start time for team */
227
        maraTime_t      start;                       /* Start time for team */
224
        time_t      leg[MAX_LEGS + 1];           /* Times at end of each leg */
228
        maraTime_t      leg[MAX_LEGS + 1];           /* Times at end of each leg */
225
        time_t      lege[MAX_LEGS + 1];          /* Times leg elapsed times */
229
        maraTime_t      lege[MAX_LEGS + 1];          /* Times leg elapsed times */
226
        short       place;                       /* Place at end of each leg */
230
        short       place;                       /* Place at end of each leg */
227
        short       teamclass;                   /* Team class */
231
        short       teamclass;                   /* Team class */
228
        team_flags  flags;                       /* Team flags */
232
        team_flags  flags;                       /* Team flags */
229
        bool        isNeData;
233
        bool        isNeData;
230
    }
234
    }
Line 251... Line 255...
251
ty_s_aux;
255
ty_s_aux;
252
 
256
 
253
typedef struct
257
typedef struct
254
    {
258
    {
255
        short       numb;                        /* Team number */
259
        short       numb;                        /* Team number */
256
        time_t      start;                       /* Leg-N start time */
260
        maraTime_t      start;                       /* Leg-N start time */
257
        team_flags  flags;                       /* Flag word */
261
        team_flags  flags;                       /* Flag word */
258
    }
262
    }
259
t_legs;
263
t_legs;
260
 
264
 
261
typedef struct
265
typedef struct
Line 291... Line 295...
291
{
295
{
292
    int         team[MAX_LEGS + 1][MAX_CLASS + 1];
296
    int         team[MAX_LEGS + 1][MAX_CLASS + 1];
293
    struct
297
    struct
294
    {
298
    {
295
        int     team[MAX_LEGS + 1][MAX_CLASS + 1];
299
        int     team[MAX_LEGS + 1][MAX_CLASS + 1];
296
        time_t  time[MAX_LEGS + 1][MAX_CLASS + 1];
300
        maraTime_t  time[MAX_LEGS + 1][MAX_CLASS + 1];
297
    } fast;
301
    } fast;
298
    time_t      average[MAX_LEGS + 1][MAX_CLASS + 1];
302
    maraTime_t      average[MAX_LEGS + 1][MAX_CLASS + 1];
299
} ty_stats;
303
} ty_stats;
300
 
304
 
-
 
305
#pragma pack(pop)
301
 
306
 
302
/********************************* EOF ***********************************/
307
/********************************* EOF ***********************************/
303
#endif
308
#endif