Lines Matching refs:ret

30     NJ_INT16 ret;  in njx_select()  local
47 ret = set_previous_selection(iwnn, r_result); in njx_select()
48 if (ret < 0) { in njx_select()
49 return ret; in njx_select()
71 NJ_INT16 ret; in njx_get_candidate() local
88 ret = njd_get_candidate(iwnn, result, buf, buf_size); in njx_get_candidate()
93 ret = NJ_SET_ERR_VAL(NJ_FUNC_NJ_GET_CANDIDATE, NJ_ERR_INVALID_RESULT); in njx_get_candidate()
97 return ret; in njx_get_candidate()
101 NJ_INT16 ret; in njx_get_stroke() local
118 ret = njd_get_stroke(iwnn, result, buf, buf_size); in njx_get_stroke()
123 ret = NJ_SET_ERR_VAL(NJ_FUNC_NJ_GET_STROKE, NJ_ERR_INVALID_RESULT); in njx_get_stroke()
126 return ret; in njx_get_stroke()
131 NJ_INT16 ret; in set_previous_selection() local
138 ret = set_learn_word_info(iwnn, &(prev_info->selection_data), result); in set_previous_selection()
139 if (ret < 0) { in set_previous_selection()
141 return ret; in set_previous_selection()
152 NJ_INT16 ret; in set_learn_word_info() local
159 ret = njx_get_stroke(iwnn, result, lword->yomi, sizeof(lword->yomi)); in set_learn_word_info()
160 if (ret < 0) { in set_learn_word_info()
161 return ret; in set_learn_word_info()
163 lword->yomi_len = (NJ_UINT8)ret; in set_learn_word_info()
164 ret = njx_get_candidate(iwnn, result, lword->hyouki, sizeof(lword->hyouki)); in set_learn_word_info()
165 if (ret < 0) { in set_learn_word_info()
166 return ret; in set_learn_word_info()
168 lword->hyouki_len = (NJ_UINT8)ret; in set_learn_word_info()
182 ret = njd_r_get_hinsi(dics->rHandle[NJ_MODE_TYPE_HENKAN], NJ_HINSI_TANKANJI_F); in set_learn_word_info()
183 if ((ret != 0) && (lword->f_hinsi == (NJ_UINT16)ret)) { in set_learn_word_info()
184 ret = njd_r_get_hinsi(dics->rHandle[NJ_MODE_TYPE_HENKAN], NJ_HINSI_CHIMEI_F); in set_learn_word_info()
185 if (ret != 0) { in set_learn_word_info()
186 lword->f_hinsi = (NJ_UINT16)ret; in set_learn_word_info()
191 ret = njd_r_get_hinsi(dics->rHandle[NJ_MODE_TYPE_HENKAN], NJ_HINSI_TANKANJI_B); in set_learn_word_info()
192 if ((ret != 0) && (lword->b_hinsi == (NJ_UINT16)ret)) { in set_learn_word_info()
193 ret = njd_r_get_hinsi(dics->rHandle[NJ_MODE_TYPE_HENKAN], NJ_HINSI_CHIMEI_B); in set_learn_word_info()
194 if (ret != 0) { in set_learn_word_info()
195 lword->b_hinsi = (NJ_UINT16)ret; in set_learn_word_info()
200 ret = njd_r_get_hinsi(dics->rHandle[NJ_MODE_TYPE_HENKAN], NJ_HINSI_TANKANJI_B); in set_learn_word_info()
201 if ((ret != 0) && (lword->stem_b_hinsi == (NJ_UINT16)ret)) { in set_learn_word_info()
202 ret = njd_r_get_hinsi(dics->rHandle[NJ_MODE_TYPE_HENKAN], NJ_HINSI_CHIMEI_B); in set_learn_word_info()
203 if (ret != 0) { in set_learn_word_info()
204 lword->stem_b_hinsi = (NJ_UINT16)ret; in set_learn_word_info()