]> granicus.if.org Git - postgresql/commitdiff
Remove struct PQArgBlock from server-side header libpq/libpq.h.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 8 Mar 2015 17:42:59 +0000 (13:42 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 8 Mar 2015 17:42:59 +0000 (13:42 -0400)
This struct is purely a client-side artifact.  Perhaps there was once
reason for the server to know it, but any such reason is lost in the
mists of time.  We certainly don't need two independent declarations
of it.

src/include/libpq/libpq.h

index af4ba2ab07cd01f274240d4e59286beecae596c4..8fa896eb39ebc6b2726a1a9d7b2d703b9e065c0d 100644 (file)
 #include "lib/stringinfo.h"
 #include "libpq/libpq-be.h"
 
-/* ----------------
- * PQArgBlock
- *             Information (pointer to array of this structure) required
- *             for the PQfn() call.  (This probably ought to go somewhere else...)
- * ----------------
- */
-typedef struct
-{
-       int                     len;
-       int                     isint;
-       union
-       {
-               int                *ptr;                /* can't use void (dec compiler barfs)   */
-               int                     integer;
-       }                       u;
-} PQArgBlock;
 
 typedef struct
 {