Lines Matching refs:res

360     int		res;  in spell_load_file()  local
443 res = 0; in spell_load_file()
453 res = read_region_section(fd, lp, len); in spell_load_file()
457 res = read_charflags_section(fd); in spell_load_file()
467 res = read_prefcond_section(fd, lp); in spell_load_file()
471 res = read_rep_section(fd, &lp->sl_rep, lp->sl_rep_first); in spell_load_file()
475 res = read_rep_section(fd, &lp->sl_repsal, lp->sl_repsal_first); in spell_load_file()
479 res = read_sal_section(fd, lp); in spell_load_file()
483 res = read_sofo_section(fd, lp); in spell_load_file()
495 res = read_words_section(fd, lp, len); in spell_load_file()
511 res = read_compound(fd, lp, len); in spell_load_file()
540 if (res == SP_FORMERROR) in spell_load_file()
545 if (res == SP_TRUNCERROR) in spell_load_file()
551 if (res == SP_OTHERERROR) in spell_load_file()
556 res = spell_read_tree(fd, &lp->sl_fbyts, &lp->sl_fbyts_len, in spell_load_file()
558 if (res != 0) in spell_load_file()
562 res = spell_read_tree(fd, &lp->sl_kbyts, NULL, &lp->sl_kidxs, FALSE, 0); in spell_load_file()
563 if (res != 0) in spell_load_file()
567 res = spell_read_tree(fd, &lp->sl_pbyts, NULL, &lp->sl_pidxs, TRUE, in spell_load_file()
569 if (res != 0) in spell_load_file()
1179 int res; in read_sofo_section() local
1198 res = set_sofo(slang, from, to); in read_sofo_section()
1200 res = SP_FORMERROR; // only one of two strings is an error in read_sofo_section()
1202 res = 0; in read_sofo_section()
1206 return res; in read_sofo_section()
1558 int *res; in mb_str2wide() local
1562 res = ALLOC_MULT(int, mb_charlen(s) + 1); in mb_str2wide()
1563 if (res != NULL) in mb_str2wide()
1566 res[i++] = mb_ptr2char_adv(&p); in mb_str2wide()
1567 res[i] = NUL; in mb_str2wide()
1569 return res; in mb_str2wide()
3185 unsigned res; in affitem2flag() local
3188 res = get_affitem(flagtype, &p); in affitem2flag()
3189 if (res == 0) in affitem2flag()
3204 return res; in affitem2flag()
3215 int res; in get_affitem() local
3224 res = getdigits(pp); in get_affitem()
3225 if (res == 0) in get_affitem()
3226 res = ZERO_FLAG; in get_affitem()
3230 res = mb_ptr2char_adv(pp); in get_affitem()
3232 && res >= 'A' && res <= 'Z')) in get_affitem()
3236 res = mb_ptr2char_adv(pp) + (res << 16); in get_affitem()
3239 return res; in get_affitem()
4393 int res = OK; in store_word() local
4397 for (p = pfxlist; res == OK; ++p) in store_word()
4400 res = tree_add_word(spin, foldword, spin->si_foldroot, ct | flags, in store_word()
4407 if (res == OK && (ct == WF_KEEPCAP || (flags & WF_KEEPCAP))) in store_word()
4409 for (p = pfxlist; res == OK; ++p) in store_word()
4412 res = tree_add_word(spin, word, spin->si_keeproot, flags, in store_word()
4419 return res; in store_word()
5655 int res = OK; in sug_maketable() local
5669 res = FAIL; in sug_maketable()
5672 return res; in sug_maketable()