Lines Matching defs:cat
47 nl_catd cat; /* message catalog handle */
57 Catalog_t* cat; /* current catalog pointer */
180 cp->cat = NOCAT;
224 * return the C locale message pointer for msg in cat
225 * cat may be a : separated list of candidate names
229 match(const char* cat, const char* msg)
239 s = (char*)cat;
244 if (s == (char*)cat)
256 mp->cat = cp;
271 * cat the catalog name, possibly a : separated list
283 * cmd:cat argument.
295 translate(const char* loc, const char* cmd, const char* cat, const char* msg)
314 if (!cmd && !cat)
346 (!cat || !(mp = match(cat, msg))) &&
349 !(cp = mp->cat))
352 sfprintf(sfstderr, "AHA#%d:%s cmd %s cat %s:%s id %s msg `%s'\n", __LINE__, __FILE__, cmd, cat, error_info.catalog, ast.id, msg);
374 if (cp->cat != NOCAT)
375 catclose(cp->cat);
376 if ((cp->cat = find(cp->locale, cp->name)) == NOCAT)
381 sfprintf(sfstderr, "AHA#%d:%s cp->cat %p cp->debug %d NOCAT %p\n", __LINE__, __FILE__, cp->cat, cp->debug, NOCAT);
384 if (cp->cat == NOCAT)
405 r = catgets(cp->cat, mp->set, mp->seq, msg);
429 sfprintf(state.tmp, "(%s,%s,%s,%s)", loc, cmd, cat, r);