Edit

kc3-lang/libxml2/include/private/string.h

Branch :

  • Show log

    Commit

  • Author : Nick Wellnhofer
    Date : 2023-12-18 19:12:08
    Hash : c5a8aef2
    Message : error: Refactor error reporting Introduce xmlStrVASPrintf, trying to handle buggy snprintf implementations. Introduce xmlSetError to set errors atomically. Introduce xmlUpdateError to set an error, fixing up node, file and line. Introduce helper function xmlRaiseMemoryError. Make legacy error handlers call xmlReportError, avoiding checks in xmlVRaiseError. Remove fragile support for getting file and line info from XInclude nodes.

  • include/private/string.h
  • #ifndef XML_STRING_H_PRIVATE__
    #define XML_STRING_H_PRIVATE__
    
    #include <libxml/xmlstring.h>
    
    XML_HIDDEN int
    xmlStrVASPrintf(xmlChar **out, int maxSize, const char *msg, va_list ap);
    XML_HIDDEN int
    xmlStrASPrintf(xmlChar **out, int maxSize, const char *msg, ...);
    XML_HIDDEN xmlChar *
    xmlEscapeFormatString(xmlChar **msg);
    
    #endif /* XML_STRING_H_PRIVATE__ */