Rev 15740 | Rev 15897 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 15740 | Rev 15847 | ||
---|---|---|---|
Line 45... | Line 45... | ||
45 | /* MAX_EXOS and MAX_SHEETS are not modifiable: |
45 | /* MAX_EXOS and MAX_SHEETS are not modifiable: |
46 | * look at 0xFF00 in Wimslogd/cache.c, Wimslogd/wimslogdscore.c |
46 | * look at 0xFF00 in Wimslogd/cache.c, Wimslogd/wimslogdscore.c |
47 | * look at >>8 in Wimslogd/wimslogdscore.c, score.c |
47 | * look at >>8 in Wimslogd/wimslogdscore.c, score.c |
48 | * look at 255 in score.c, 256 in variables.c |
48 | * look at 255 in score.c, 256 in variables.c |
49 | * it must be also less than 99 to be sure that some sessions filename |
49 | * it must be also less than 99 to be sure that some sessions filename |
50 | do not cause buffer |
50 | do not cause buffer overflow (see exam.c) |
51 | */ |
51 | */ |
52 | /* max number of exercises in a sheet or exam; not modifiable */ |
52 | /* max number of exercises in a sheet or exam; not modifiable */ |
53 | #define MAX_EXOS 64 |
53 | #define MAX_EXOS 64 |
54 | /* max number of sheets; not modifiable */ |
54 | /* max number of sheets; not modifiable */ |
55 | #define MAX_SHEETS 64 |
55 | #define MAX_SHEETS 64 |
Line 110... | Line 110... | ||
110 | 110 | ||
111 | #define SHORTSWNAME "WIMS" |
111 | #define SHORTSWNAME "WIMS" |
112 | #define LONGSWNAME "WWW Interactive Multipurpose Server" |
112 | #define LONGSWNAME "WWW Interactive Multipurpose Server" |
113 | #define SEEDSCORES (2*MAX_SCORESEED*SEEDSIZE) |
113 | #define SEEDSCORES (2*MAX_SCORESEED*SEEDSIZE) |
114 | typedef struct scoreresult { |
114 | typedef struct scoreresult { |
115 | unsigned short int |
115 | unsigned short int sh, exo, pad, seedlastcnt, active; |
116 | float require, weight, score, mean, last, try, best, level, new, seedscorelast; |
116 | float require, weight, score, mean, last, try, best, level, new, seedscorelast; |
117 | char seedlast[SEEDSIZE]; |
117 | char seedlast[SEEDSIZE]; |
118 | char seedscores[SEEDSCORES]; |
118 | char seedscores[SEEDSCORES]; |
119 | 119 | ||
120 | } scoreresult; |
120 | } scoreresult; |