Lines Matching refs:questions
67 static SWIsltsResult free_lquestions(LQUESTION ** questions, int num_questions);
76 static SWIsltsResult free_trees(RT_LTREE **trees, int num_letters, LQUESTION **questions, int num_q…
182 LQUESTION ** questions; in load_lquestions() local
191 *pquestions = questions = (LQUESTION**) lts_alloc(num_questions, sizeof(LQUESTION*)); in load_lquestions()
192 if (questions == NULL) { in load_lquestions()
198 questions[i] = (LQUESTION*) lts_alloc(1, sizeof(LQUESTION)); in load_lquestions()
199 if (questions[i] == NULL) { in load_lquestions()
208 PORT_FREAD_CHAR(&(questions[i]->type), sizeof(char), 1, fp); in load_lquestions()
209 PORT_FREAD_CHAR(&(questions[i]->num_list), sizeof(char), 1, fp); in load_lquestions()
211 questions[i]->list = (unsigned char*) lts_alloc(questions[i]->num_list, sizeof(unsigned char)); in load_lquestions()
212 if (questions[i]->list == NULL) { in load_lquestions()
217 PORT_FREAD_CHAR(questions[i]->list, sizeof(char), (questions[i]->num_list), fp); in load_lquestions()
219 …bitarray_populate_from_list( questions[i]->membership, (char*) questions[i]->list, questions[i]->n… in load_lquestions()
227 free_lquestions(questions, num_questions); in load_lquestions()
234 static SWIsltsResult free_lquestions(LQUESTION ** questions, int num_questions) in free_lquestions() argument
239 if (questions) { in free_lquestions()
241 if (questions[i]->list) { in free_lquestions()
242 FREE(questions[i]->list); in free_lquestions()
243 questions[i]->list = NULL; in free_lquestions()
245 FREE(questions[i]); in free_lquestions()
246 questions[i] = NULL; in free_lquestions()
248 FREE(questions); in free_lquestions()
615 LQUESTION **questions, int num_questions, LM *lm) in free_trees() argument
624 if (questions) { in free_trees()
625 free_lquestions(questions, num_questions); in free_trees()
878 &(lts->questions), &(lts->num_questions), in create_lts()
924 lts->questions, lts->num_questions, in free_lts()
927 lts->questions = NULL; in free_lts()
1331 q1 = lts->questions[tree->values_or_question1[index]]; in find_output_for_dp()
1335 q2 = lts->questions[q2_index]; in find_output_for_dp()