same, with pluralized message */
| 497 | |
| 498 | /* same, with pluralized message */ |
| 499 | void |
| 500 | PLy_exception_set_plural(PyObject *exc, |
| 501 | const char *fmt_singular, const char *fmt_plural, |
| 502 | unsigned long n,...) |
| 503 | { |
| 504 | char buf[1024]; |
| 505 | va_list ap; |
| 506 | |
| 507 | va_start(ap, n); |
| 508 | vsnprintf(buf, sizeof(buf), |
| 509 | dngettext(TEXTDOMAIN, fmt_singular, fmt_plural, n), |
| 510 | ap); |
| 511 | va_end(ap); |
| 512 | |
| 513 | PyErr_SetString(exc, buf); |
| 514 | } |
| 515 | |
| 516 | /* set attributes of the given exception to details from ErrorData */ |
| 517 | void |
no outgoing calls
no test coverage detected