]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Use SWIG_AppendOutput to support swig 4.3 256/head
authorPetr Menšík <pemensik@redhat.com>
Wed, 23 Oct 2024 21:08:54 +0000 (23:08 +0200)
committerPetr Menšík <pemensik@redhat.com>
Wed, 23 Oct 2024 21:31:13 +0000 (23:31 +0200)
Swig has changed language specific AppendOutput functions. But helper
macro SWIG_AppendOutput remains unchanged. Use that everywhere instead
of SWIG_Python_AppendOutput, which would require one extra parameter
since swig 4.3.0.

https://github.com/swig/swig/blob/v4.3.0/CHANGES.current#L376
https://github.com/swig/swig/issues/2905

contrib/python/ldns_buffer.i
contrib/python/ldns_key.i
contrib/python/ldns_packet.i
contrib/python/ldns_rdf.i
contrib/python/ldns_resolver.i
contrib/python/ldns_rr.i
contrib/python/ldns_zone.i

index 5c2d583bea4df2984498d3437c6f700ee24a3267..0a3e38958fd546458629e58f4171962c4db71475 100644 (file)
@@ -45,7 +45,7 @@
 /* Result generation, appends (ldns_buffer *) after the result. */
 %typemap(argout, noblock=1) (ldns_buffer **)
 {
-  $result = SWIG_Python_AppendOutput($result,
+  $result = SWIG_AppendOutput($result,
      SWIG_NewPointerObj(SWIG_as_voidptr($1_buf),
        SWIGTYPE_p_ldns_struct_buffer, SWIG_POINTER_OWN | 0));
 }
index dc67e67bf7740a2e68be02eb445715506c7c5917..6a3c2db4317f1a406ecc79f3df19ae94a4d279ec 100644 (file)
@@ -38,7 +38,7 @@
 /* result generation */
 %typemap(argout,noblock=1) (ldns_key **)
 {
-  $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(SWIG_as_voidptr($1_key), SWIGTYPE_p_ldns_struct_key, SWIG_POINTER_OWN |  0 ));
+  $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(SWIG_as_voidptr($1_key), SWIGTYPE_p_ldns_struct_key, SWIG_POINTER_OWN |  0 ));
 }
 
 %typemap(argout) ldns_rdf *r "Py_INCREF($input);"
index c2d7a3b63cca0e183af7c8e341c3156331babb77..8309808d307204f89c628f1580ba14c22753613c 100644 (file)
@@ -45,7 +45,7 @@
 /* Result generation, appends (ldns_pkt *) after the result. */
 %typemap(argout,noblock=1) (ldns_pkt **)
 {
-  $result = SWIG_Python_AppendOutput($result,
+  $result = SWIG_AppendOutput($result,
     SWIG_NewPointerObj(SWIG_as_voidptr($1_pkt),
       SWIGTYPE_p_ldns_struct_pkt, SWIG_POINTER_OWN |  0 ));
 }
index 39f9af1895cb830868da5a91cef44a399224a8fd..ed1f0d009db2a3f29800538783f4f8a0f8f5c0b9 100644 (file)
@@ -45,7 +45,7 @@
 /* Result generation, appends (ldns_rdf *) after the result. */
 %typemap(argout, noblock=1) (ldns_rdf **)
 {
-  $result = SWIG_Python_AppendOutput($result,
+  $result = SWIG_AppendOutput($result,
     SWIG_NewPointerObj(SWIG_as_voidptr($1_rdf),
       SWIGTYPE_p_ldns_struct_rdf, SWIG_POINTER_OWN | 0));
 }
index 8468cce3819ba924bb523deb719024c861ca20e6..8d0abc6ea03a3a3cd176f4a47482d8f7d3828946 100644 (file)
@@ -45,7 +45,7 @@
 /* Result generation, appends (ldns_resolver *) after the result. */
 %typemap(argout,noblock=1) (ldns_resolver **r)
 {
-  $result = SWIG_Python_AppendOutput($result,
+  $result = SWIG_AppendOutput($result,
     SWIG_NewPointerObj(SWIG_as_voidptr($1_res),
       SWIGTYPE_p_ldns_struct_resolver, SWIG_POINTER_OWN |  0 ));
 }
index 2e0a07140d41c1a9e7ebd81bc34bd48e722f8785..c53955cf92183ea2facf4d769c80ae8d8f7257f0 100644 (file)
@@ -45,7 +45,7 @@
 /* Result generation, appends (ldns_rr *) after the result. */
 %typemap(argout, noblock=1) (ldns_rr **) 
 {
-  $result = SWIG_Python_AppendOutput($result,
+  $result = SWIG_AppendOutput($result,
     SWIG_NewPointerObj(SWIG_as_voidptr($1_rr),
       SWIGTYPE_p_ldns_struct_rr, SWIG_POINTER_OWN |  0 ));
 }
index bbb8d8f21aebf4b2269f7a1987d64b2a4922079c..3459478ae0877c069466ef871ad7ed7902ebbe15 100644 (file)
@@ -39,7 +39,7 @@
 /* result generation */
 %typemap(argout,noblock=1) (ldns_zone **)
 {
- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(SWIG_as_voidptr($1_zone), SWIGTYPE_p_ldns_struct_zone, SWIG_POINTER_OWN |  0 ));
+ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(SWIG_as_voidptr($1_zone), SWIGTYPE_p_ldns_struct_zone, SWIG_POINTER_OWN |  0 ));
 }
 
 %nodefaultctor ldns_struct_zone; //no default constructor & destructor