Re: Using defines for protocol characters
Tatsuo Ishii <ishii@sraoss.co.jp>
From: Tatsuo Ishii <ishii@sraoss.co.jp>
To: michael@paquier.xyz
Cc: nathandbossart@gmail.com, alvherre@alvh.no-ip.org,
davecramer@gmail.com, tgl@sss.pgh.pa.us, peter@eisentraut.org,
robertmhaas@gmail.com, smithpb2250@gmail.com,
pgsql-hackers@lists.postgresql.org
Date: 2023-08-15T21:44:20Z
Lists: pgsql-hackers
> On Wed, Aug 16, 2023 at 06:25:09AM +0900, Tatsuo Ishii wrote: >> Currently pqcomm.h needs c.h which is not problem for Pgpool-II. But >> what about other middleware? > > Why do you need to include directly c.h? There are definitions in > there that are not intended to be exposed. pqcomm.h has this: #define UNIXSOCK_PATH(path, port, sockdir) \ (AssertMacro(sockdir), \ AssertMacro(*(sockdir) != '\0'), \ snprintf(path, sizeof(path), "%s/.s.PGSQL.%d", \ (sockdir), (port))) AssertMacro is defined in c.h. Best reagards, -- Tatsuo Ishii SRA OSS LLC English: http://www.sraoss.co.jp/index_en/ Japanese:http://www.sraoss.co.jp
Commits
-
Introduce macros for protocol characters.
- f4b54e1ed985 17.0 landed
-
Remove configure check for z_streamp
- eeb4eeea2c52 17.0 cited