1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-21 12:05:57 +03:00

pgcrypto: Make header files stand alone

pgp.h used to require including mbuf.h and px.h first.  Include those in
pgp.h, so that it can be used without prerequisites.  Remove mbuf.h
inclusions in .c files where mbuf.h features are not used
directly.  (px.h was always used.)
This commit is contained in:
Peter Eisentraut 2014-01-09 06:44:24 -05:00
parent 220b34331f
commit 10a3b165a3
11 changed files with 3 additions and 10 deletions

View File

@ -32,7 +32,6 @@
#include "postgres.h" #include "postgres.h"
#include "px.h" #include "px.h"
#include "mbuf.h"
#include "pgp.h" #include "pgp.h"
/* /*

View File

@ -31,7 +31,6 @@
#include "postgres.h" #include "postgres.h"
#include "mbuf.h"
#include "px.h" #include "px.h"
#include "pgp.h" #include "pgp.h"

View File

@ -31,7 +31,6 @@
#include "postgres.h" #include "postgres.h"
#include "mbuf.h"
#include "px.h" #include "px.h"
#include "pgp.h" #include "pgp.h"

View File

@ -33,7 +33,6 @@
#include "imath.h" #include "imath.h"
#include "px.h" #include "px.h"
#include "mbuf.h"
#include "pgp.h" #include "pgp.h"
static mpz_t * static mpz_t *

View File

@ -33,7 +33,6 @@
#include <openssl/bn.h> #include <openssl/bn.h>
#include "px.h" #include "px.h"
#include "mbuf.h"
#include "pgp.h" #include "pgp.h"
static BIGNUM * static BIGNUM *

View File

@ -31,7 +31,6 @@
#include "postgres.h" #include "postgres.h"
#include "px.h" #include "px.h"
#include "mbuf.h"
#include "pgp.h" #include "pgp.h"
int int

View File

@ -31,7 +31,6 @@
#include "postgres.h" #include "postgres.h"
#include "px.h" #include "px.h"
#include "mbuf.h"
#include "pgp.h" #include "pgp.h"
/* /*

View File

@ -31,7 +31,6 @@
#include "postgres.h" #include "postgres.h"
#include "px.h" #include "px.h"
#include "mbuf.h"
#include "pgp.h" #include "pgp.h"
/* /*

View File

@ -32,7 +32,6 @@
#include "postgres.h" #include "postgres.h"
#include "px.h" #include "px.h"
#include "mbuf.h"
#include "pgp.h" #include "pgp.h"
static int static int

View File

@ -32,7 +32,6 @@
#include "postgres.h" #include "postgres.h"
#include "px.h" #include "px.h"
#include "mbuf.h"
#include "pgp.h" #include "pgp.h"
/* /*

View File

@ -29,6 +29,9 @@
* contrib/pgcrypto/pgp.h * contrib/pgcrypto/pgp.h
*/ */
#include "mbuf.h"
#include "px.h"
enum PGP_S2K_TYPE enum PGP_S2K_TYPE
{ {
PGP_S2K_SIMPLE = 0, PGP_S2K_SIMPLE = 0,