00001
00019 #ifndef CHOICEARR_H
00020 #define CHOICEARR_H
00021
00022
00023
00024
00025
00026
00027
00028 #include "tessarray.h"
00029 #include "choices.h"
00030
00031
00032
00033
00034
00035
00036
00041 typedef ARRAY CHOICES_LIST;
00042
00044 #define CHOICES_PER_LIST 40
00045
00046
00047
00048
00049
00050
00051
00057 #define free_choice_list(choice_list) \
00058 array_free (choice_list)
00059
00063 #define for_each_choice(array,index) \
00064 array_loop (array, index)
00065
00069 #define free_all_choices(choices,index) \
00070 for_each_choice (choices, index) { \
00071 free_choices ((CHOICES) array_value (choices, index)); \
00072 } \
00073 array_free (choices) \
00074
00075
00081 #define new_choice_list() \
00082 array_new (CHOICES_PER_LIST)
00083 #endif