typedef struct _bin {
int score;
- int items_size;
- int num_items;
+ unsigned int items_size;
+ unsigned int num_items;
item_t **items;
} bin_t;
typedef struct _category {
char *name;
- int items_size;
- int num_items;
+ unsigned int items_size;
+ unsigned int num_items;
item_t *items;
/* Support sequential introduction of items from bin 0 */
category_order_t order;
/* Support categories where responses are timed (0.0 == disable). */
double time_limit;
- int bin_zero_head;
+ unsigned int bin_zero_head;
/* Support challenges of non-text types (image, audio, etc.) */
char *challenge_type;
/* Whether to repeat afterwards (for a little extra reinforcement) */
typedef struct _mnemon {
char *dir_name;
- int categories_size;
- int num_categories;
+ unsigned int categories_size;
+ unsigned int num_categories;
category_t *categories;
- int bins_size;
- int num_bins;
+ unsigned int bins_size;
+ unsigned int num_bins;
bin_t *bins;
} mnemon_t;