Skip to main content

xmlParserError

Function xmlParserError 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn xmlParserError() -> c_int
Expand description

Default SAX v1 error handler — upstream void xmlParserError(void *ctx, const char *msg, ...). Variadic x86_64 SysV shim (11.1-Z.2, R-000176: the previous fixed-arity body silently dropped the varargs; upstream error.c formats them via xmlVFormatLegacyError).

2 fixed args (ctx=rdi, msg=rsi) → gp_offset 16; the va_list pointer is passed as the 3rd arg (rdx) to the xmlParserErrorV receiver.

§SAFETY

  • ctx may be NULL (unused by the candidate’s legacy path).
  • msg must be a valid NUL-terminated printf format string.