Lines Matching defs:cat
47 nl_catd cat; /* message catalog handle */
57 Catalog_t* cat; /* current catalog pointer */
183 cp->cat = NOCAT;
227 * return the C locale message pointer for msg in cat
228 * cat may be a : separated list of candidate names
232 match(const char* cat, const char* msg)
242 s = (char*)cat;
247 if (s == (char*)cat)
259 mp->cat = cp;
274 * cat the catalog name, possibly a : separated list
286 * cmd:cat argument.
298 translate(const char* loc, const char* cmd, const char* cat, const char* msg)
317 if (!cmd && !cat)
349 (!cat || !(mp = match(cat, msg))) &&
352 !(cp = mp->cat))
355 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);
377 if (cp->cat != NOCAT)
378 catclose(cp->cat);
379 if ((cp->cat = find(cp->locale, cp->name)) == NOCAT)
384 sfprintf(sfstderr, "AHA#%d:%s cp->cat %p cp->debug %d NOCAT %p\n", __LINE__, __FILE__, cp->cat, cp->debug, NOCAT);
387 if (cp->cat == NOCAT)
408 r = catgets(cp->cat, mp->set, mp->seq, msg);
432 sfprintf(state.tmp, "(%s,%s,%s,%s)", loc, cmd, cat, r);