sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[[SM-Commit] ] GIT changes to master grimoire by Remko van der Vossen (fe9928bbcb90f76cd6240d1dd680bf779f5ed49a)
- From: Remko van der Vossen <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org, sm-commit AT lists.sourcemage.org
- Subject: [[SM-Commit] ] GIT changes to master grimoire by Remko van der Vossen (fe9928bbcb90f76cd6240d1dd680bf779f5ed49a)
- Date: Thu, 11 Dec 2025 15:05:53 +0000
GIT changes to master grimoire by Remko van der Vossen <wich AT sourcemage.org>:
perl-cpan/dbd-pg/73cc284c56610fb68ed2dd795ef87815c3635e67.patch | 189
++++++++++
perl-cpan/dbd-pg/DETAILS | 4
perl-cpan/dbd-pg/HISTORY | 3
perl-cpan/dbd-pg/PRE_BUILD | 3
4 files changed, 197 insertions(+), 2 deletions(-)
New commits:
commit fe9928bbcb90f76cd6240d1dd680bf779f5ed49a
Author: Remko van der Vossen <wich AT sourcemage.org>
Commit: Remko van der Vossen <wich AT sourcemage.org>
dbd-pg: 3.18.0
diff --git a/perl-cpan/dbd-pg/73cc284c56610fb68ed2dd795ef87815c3635e67.patch
b/perl-cpan/dbd-pg/73cc284c56610fb68ed2dd795ef87815c3635e67.patch
new file mode 100644
index 0000000..6ec19e9
--- /dev/null
+++ b/perl-cpan/dbd-pg/73cc284c56610fb68ed2dd795ef87815c3635e67.patch
@@ -0,0 +1,189 @@
+From 73cc284c56610fb68ed2dd795ef87815c3635e67 Mon Sep 17 00:00:00 2001
+From: Rainer Weikusat <rweikusat AT talktalk.net>
+Date: Tue, 19 Aug 2025 14:09:09 +0100
+Subject: [PATCH] use prototypes for sql_type_info function pointers for C23
+ compliance/ eliminate unused estring argument to dequote functions
+
+---
+ quote.c | 28 ++++++++++++++--------------
+ quote.h | 16 ++++++++--------
+ types.c | 4 ++--
+ types.h | 4 ++--
+ 4 files changed, 26 insertions(+), 26 deletions(-)
+
+diff --git a/quote.c b/quote.c
+index 1862fa4b..e2c51b4c 100644
+--- a/quote.c
++++ b/quote.c
+@@ -183,13 +183,13 @@ char * quote_circle(pTHX_ const char *string, STRLEN
len, STRLEN *retlen, int es
+ }
+
+
+-char * quote_bytea(pTHX_ char *string, STRLEN len, STRLEN *retlen, int
estring)
++char * quote_bytea(pTHX_ const char *string, STRLEN len, STRLEN *retlen,
int estring)
+ {
+ char * result;
+ STRLEN oldlen = len;
+
+ /* For this one, always use the E'' format if we can */
+- result = string;
++ result = (char *)string;
+ (*retlen) = 2;
+ while (len > 0) {
+ if (*string == '\'') {
+@@ -311,7 +311,7 @@ char * quote_int(pTHX_ const char *string, STRLEN len,
STRLEN *retlen, int estri
+ return result;
+ }
+
+-char * quote_float(pTHX_ char *string, STRLEN len, STRLEN *retlen, int
estring)
++char * quote_float(pTHX_ const char *string, STRLEN len, STRLEN *retlen,
int estring)
+ {
+ char * result;
+
+@@ -413,21 +413,21 @@ char * quote_name(pTHX_ const char *string, STRLEN
len, STRLEN *retlen, int estr
+ return result;
+ }
+
+-void dequote_char(pTHX_ const char *string, STRLEN *retlen, int estring)
++void dequote_char(pTHX_ char *string, STRLEN *retlen)
+ {
+ /* TODO: chop_blanks if requested */
+ *retlen = strlen(string);
+ }
+
+
+-void dequote_string(pTHX_ const char *string, STRLEN *retlen, int estring)
++void dequote_string(pTHX_ char *string, STRLEN *retlen)
+ {
+ *retlen = strlen(string);
+ }
+
+
+
+-static void _dequote_bytea_escape(char *string, STRLEN *retlen, int estring)
++static void _dequote_bytea_escape(char *string, STRLEN *retlen)
+ {
+ char *result;
+
+@@ -476,7 +476,7 @@ static int _decode_hex_digit(char digit)
+ return -1;
+ }
+
+-static void _dequote_bytea_hex(char *string, STRLEN *retlen, int estring)
++static void _dequote_bytea_hex(char *string, STRLEN *retlen)
+ {
+ char *result;
+
+@@ -499,14 +499,14 @@ static void _dequote_bytea_hex(char *string, STRLEN
*retlen, int estring)
+ }
+ }
+
+-void dequote_bytea(pTHX_ char *string, STRLEN *retlen, int estring)
++void dequote_bytea(pTHX_ char *string, STRLEN *retlen)
+ {
+
+ if (NULL != string) {
+ if ('\\' == *string && 'x' == *(string+1))
+- _dequote_bytea_hex(string, retlen, estring);
++ _dequote_bytea_hex(string, retlen);
+ else
+- _dequote_bytea_escape(string, retlen, estring);
++ _dequote_bytea_escape(string, retlen);
+ }
+ }
+
+@@ -515,19 +515,19 @@ void dequote_bytea(pTHX_ char *string, STRLEN *retlen,
int estring)
+ it might be nice to let people go the other way too. Say when talking
+ to something that uses SQL_BINARY
+ */
+-void dequote_sql_binary(pTHX_ char *string, STRLEN *retlen, int estring)
++void dequote_sql_binary(pTHX_ char *string, STRLEN *retlen)
+ {
+
+ /* We are going to return a dequote_bytea(), just in case */
+ warn("Use of SQL_BINARY invalid in dequote()");
+- dequote_bytea(aTHX_ string, retlen, estring);
++ dequote_bytea(aTHX_ string, retlen);
+
+ /* Put dequote_sql_binary function here at some point */
+ }
+
+
+
+-void dequote_bool(pTHX_ char *string, STRLEN *retlen, int estring)
++void dequote_bool(pTHX_ char *string, STRLEN *retlen)
+ {
+
+ switch(*string){
+@@ -540,7 +540,7 @@ void dequote_bool(pTHX_ char *string, STRLEN *retlen,
int estring)
+ }
+
+
+-void null_dequote(pTHX_ const char *string, STRLEN *retlen, int estring)
++void null_dequote(pTHX_ char *string, STRLEN *retlen)
+ {
+ *retlen = strlen(string);
+
+diff --git a/quote.h b/quote.h
+index 40e76092..8bae194c 100644
+--- a/quote.h
++++ b/quote.h
+@@ -1,20 +1,20 @@
+
+ char * null_quote(pTHX_ const char *string, STRLEN len, STRLEN *retlen, int
estring);
+ char * quote_string(pTHX_ const char *string, STRLEN len, STRLEN *retlen,
int estring);
+-char * quote_bytea(pTHX_ char *string, STRLEN len, STRLEN *retlen, int
estring);
++char * quote_bytea(pTHX_ const char *string, STRLEN len, STRLEN *retlen,
int estring);
+ char * quote_sql_binary(pTHX_ char *string, STRLEN len, STRLEN *retlen, int
estring);
+ char * quote_bool(pTHX_ const char *string, STRLEN len, STRLEN *retlen, int
estring);
+ char * quote_integer(pTHX_ const char *string, STRLEN len, STRLEN *retlen,
int estring);
+ char * quote_int(pTHX_ const char *string, STRLEN len, STRLEN *retlen, int
estring);
+-char * quote_float(pTHX_ char *string, STRLEN len, STRLEN *retlen, int
estring);
++char * quote_float(pTHX_ const char *string, STRLEN len, STRLEN *retlen,
int estring);
+ char * quote_name(pTHX_ const char *string, STRLEN len, STRLEN *retlen, int
estring);
+ char * quote_geom(pTHX_ const char *string, STRLEN len, STRLEN *retlen, int
estring);
+ char * quote_path(pTHX_ const char *string, STRLEN len, STRLEN *retlen, int
estring);
+ char * quote_circle(pTHX_ const char *string, STRLEN len, STRLEN *retlen,
int estring);
+-void dequote_char(pTHX_ const char *string, STRLEN *retlen, int estring);
+-void dequote_string(pTHX_ const char *string, STRLEN *retlen, int estring);
+-void dequote_bytea(pTHX_ char *string, STRLEN *retlen, int estring);
+-void dequote_sql_binary(pTHX_ char *string, STRLEN *retlen, int estring);
+-void dequote_bool(pTHX_ char *string, STRLEN *retlen, int estring);
+-void null_dequote(pTHX_ const char *string, STRLEN *retlen, int estring);
++void dequote_char(pTHX_ char *string, STRLEN *retlen);
++void dequote_string(pTHX_ char *string, STRLEN *retlen);
++void dequote_bytea(pTHX_ char *string, STRLEN *retlen);
++void dequote_sql_binary(pTHX_ char *string, STRLEN *retlen);
++void dequote_bool(pTHX_ char *string, STRLEN *retlen);
++void null_dequote(pTHX_ char *string, STRLEN *retlen);
+ bool is_keyword(const char *string);
+diff --git a/types.c b/types.c
+index d95a7018..e094eaca 100644
+--- a/types.c
++++ b/types.c
+@@ -603,8 +603,8 @@ typedef struct sql_type_info {
+ bool bind_ok;
+ char array_delimiter;
+ char* arrayout;
+- char* (*quote)();
+- void (*dequote)();
++ char* (*quote)(pTHX_ const char *, STRLEN, STRLEN *, int);
++ void (*dequote)(pTHX_ char *, STRLEN *);
+ union {
+ int pg;
+ int sql;
+diff --git a/types.h b/types.h
+index 6ec9cd65..97c8662f 100644
+--- a/types.h
++++ b/types.h
+@@ -8,8 +8,8 @@ typedef struct sql_type_info {
+ bool bind_ok;
+ char array_delimiter;
+ char* arrayout;
+- char* (*quote)();
+- void (*dequote)();
++ char* (*quote)(pTHX_ const char *, STRLEN, STRLEN *, int);
++ void (*dequote)(pTHX_ char *, STRLEN *);
+ union {
+ int pg;
+ int sql;
diff --git a/perl-cpan/dbd-pg/DETAILS b/perl-cpan/dbd-pg/DETAILS
index 3e9a112..7eb7082 100755
--- a/perl-cpan/dbd-pg/DETAILS
+++ b/perl-cpan/dbd-pg/DETAILS
@@ -1,6 +1,6 @@
SPELL=dbd-pg
- VERSION=3.7.0
-
SOURCE_HASH=sha512:edd4d3448dac1b563899c5fd4a1bad6cb810afdbbbf57b558bbe6710aa3e58530a6cf0932e35c3316c7f4f59763764d75ce1049f13c8c13deeb2e8a7c60ff73e
+ VERSION=3.18.0
+
SOURCE_HASH=sha512:0a81d1993f22a923776ab57f1437dbee2b5c42de091e274355dbcc9bb07e3db0c22126d0037de8de43fafeab9c947db1e3692087127027a0b13eed538fc2e1ee
SOURCE=DBD-Pg-$VERSION.tar.gz
SOURCE_DIRECTORY=$BUILD_DIRECTORY/DBD-Pg-$VERSION
SOURCE_URL[0]=http://www.cpan.org/modules/by-module/DBD/$SOURCE
diff --git a/perl-cpan/dbd-pg/HISTORY b/perl-cpan/dbd-pg/HISTORY
index 53de9d3..3510639 100644
--- a/perl-cpan/dbd-pg/HISTORY
+++ b/perl-cpan/dbd-pg/HISTORY
@@ -1,3 +1,6 @@
+2925-12-11 Remko van der Vossen <wich AT sourcemage.org>
+ * DETAULS: 3.18.0
+
2018-01-06 Ismael Luceno <ismael AT sourcemage.org>
* DETAILS: updated spell to 3.7.0
diff --git a/perl-cpan/dbd-pg/PRE_BUILD b/perl-cpan/dbd-pg/PRE_BUILD
new file mode 100755
index 0000000..3bbb6e1
--- /dev/null
+++ b/perl-cpan/dbd-pg/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
cd
"${SOURCE_DIRECTORY}" &&
+
+patch -p1 -i
"$SPELL_DIRECTORY/73cc284c56610fb68ed2dd795ef87815c3635e67.patch"
- [[SM-Commit] ] GIT changes to master grimoire by Remko van der Vossen (fe9928bbcb90f76cd6240d1dd680bf779f5ed49a), Remko van der Vossen, 12/11/2025
Archive powered by MHonArc 2.6.24.