0004-Change-Pointer-to-void.patch
text/plain
Filename: 0004-Change-Pointer-to-void.patch
Type: text/plain
Part: 3
Message:
get rid of Pointer type, mostly
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: format-patch
Series: patch 0004
Subject: Change Pointer to void *
| File | + | − |
|---|---|---|
| src/include/c.h | 2 | 4 |
From 75027ac5cbe10abc785049c7bcfddc526d5cea54 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut <peter@eisentraut.org> Date: Mon, 24 Nov 2025 11:02:35 +0100 Subject: [PATCH 4/6] Change Pointer to void * --- src/include/c.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/include/c.h b/src/include/c.h index 729eb8a27de..fd9a89fe5f7 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -527,11 +527,9 @@ typedef void (*pg_funcptr_t) (void); /* * Pointer * Variable holding address of any memory resident object. - * - * XXX Pointer arithmetic is done with this, so it can't be void * - * under "true" ANSI compilers. + * (obsolescent; use void * or char *) */ -typedef char *Pointer; +typedef void *Pointer; /* Historical names for types in <stdint.h>. */ typedef int8_t int8; -- 2.52.0