Subversion Repositories wimsdev

Rev

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

Rev 8155 Rev 8185
Line 15... Line 15...
15
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
 */
16
 */
17
 
17
 
18
/* Caches and its management */
18
/* Caches and its management */
19
 
19
 
20
/* General information of an exercise. Size: 10 bytes. */
-
 
21
typedef struct exodata {
20
#include "wimslogd.h"
22
    unsigned short int num;
-
 
23
    float weight, require;
-
 
24
} exodata;
-
 
25
 
21
 
26
struct classdata {
-
 
27
    char name[MAX_CLASSLEN+1];
-
 
28
    time_t start, last, modif;
-
 
29
    int exocnt, examcnt, examstart, access;
-
 
30
    struct exodata exos[MAX_CLASSEXOS];
-
 
31
    char ctbuf[CTBUFLEN];
-
 
32
    short int ctptr[MAX_EXOS];
-
 
33
} classdata[MAX_CLASSCACHE];
22
struct classdata classdata[MAX_CLASSCACHE];
34
 
23
 
35
struct classcache {
24
struct classcache {
36
    struct classdata *ptr;
25
    struct classdata *ptr;
37
} classcache[MAX_CLASSCACHE];
26
} classcache[MAX_CLASSCACHE];
38
int classcaches;
27
int classcaches;