]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgcobol: fix xmlCtxtGetVersion typo again
authorSam James <sam@gentoo.org>
Tue, 28 Oct 2025 00:06:24 +0000 (00:06 +0000)
committerSam James <sam@gentoo.org>
Tue, 28 Oct 2025 01:20:13 +0000 (01:20 +0000)
Followup to r16-4668-g374ec67294fc4f. I'd assumed the build got past
this point but it turned out it hadn't.

libgcobol/ChangeLog:
PR cobol/122451

* xmlparse.cc (context_t): Make 'ctxt' public.
(xml_push_parse): Fix xmlCtxtGetVersion argument.

libgcobol/xmlparse.cc

index 59d407215441025c616f0ae7ce8fd492649b0ac3..54b9f02ca37c9f35f8cc3b611486396d39dea6ff 100644 (file)
@@ -658,9 +658,9 @@ xmlParserErrors_str( xmlParserErrors erc, const char name[] ) {
  * The global context is NULL if XML PARSE is not in progress.
  */
 static class context_t {
-  xmlParserCtxt * ctxt;
   const int priority;
  public:
+  xmlParserCtxt * ctxt;
   context_t() : ctxt(nullptr), priority(LOG_INFO) {
     const int option = LOG_PERROR, facility = LOG_USER;
 #if HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
@@ -734,7 +734,7 @@ xml_push_parse( cblc_field_t *input_field,
   context.push( input_field, input_offset, len, false);
 
 #if LIBXML_VERSION >= 21400
-  const xmlChar * version = xmlCtxtGetVersion( context );
+  const xmlChar * version = xmlCtxtGetVersion( context.ctxt );
 #else
   const xmlChar * version = xmlchar_of("requires version 2.14");
 #endif