X-Git-Url: https://git.cworth.org/git?p=mnemon;a=blobdiff_plain;f=mnemon.h;h=27e02a075b52db8b352db442e3211c1bac68486d;hp=b66bb44ec6d4ca7d1449fb197f583933e868afb8;hb=5ae11041e3b0f7c5a04795c71fe3794d663eb195;hpb=71edc226d9b568d9740c54ea73005d8baea1ca8d;ds=sidebyside diff --git a/mnemon.h b/mnemon.h index b66bb44..27e02a0 100644 --- a/mnemon.h +++ b/mnemon.h @@ -32,8 +32,8 @@ typedef struct _item { typedef struct _bin { int score; - int items_size; - int num_items; + unsigned int items_size; + unsigned int num_items; item_t **items; } bin_t; @@ -44,15 +44,15 @@ typedef enum { 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) */ @@ -62,12 +62,12 @@ typedef struct _category { 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;