Lines Matching defs:cat
27 * the ast mc* and native cat* routines do all the work
32 * or a Cc_t* where Cc_t.cat is the native nl_catd
57 nl_catd cat;
113 cc->cat = d;
125 sfprintf(sfstderr, "AHA#%d:%s %s %s native %p\n", __LINE__, __FILE__, s, name, cc->cat);
140 _ast_catgets(_ast_nl_catd cat, int set, int num, const char* msg)
142 if (cat == (_ast_nl_catd)(-1))
145 if (!((Cc_t*)cat)->set)
150 msg = (char*)catgets(((Cc_t*)cat)->cat, set, num, msg);
151 if (((Cc_t*)cat)->cvt != (iconv_t)(-1))
155 iconv_write(((Cc_t*)cat)->cvt, ((Cc_t*)cat)->tmp, &s, &n, NiL);
156 if (s = sfstruse(((Cc_t*)cat)->tmp))
162 return mcget((Mc_t*)cat, set, num, msg);
166 _ast_catclose(_ast_nl_catd cat)
168 if (cat == (_ast_nl_catd)(-1))
171 if (!((Cc_t*)cat)->set)
173 if (((Cc_t*)cat)->cvt != (iconv_t)(-1))
174 iconv_close(((Cc_t*)cat)->cvt);
175 if (((Cc_t*)cat)->tmp)
176 sfclose(((Cc_t*)cat)->tmp);
177 return catclose(((Cc_t*)cat)->cat);
180 return mcclose((Mc_t*)cat);