summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/btree_gist/btree_numeric.c3
-rw-r--r--contrib/btree_gist/btree_utils_num.h4
-rw-r--r--contrib/btree_gist/btree_utils_var.c3
-rw-r--r--contrib/btree_gist/btree_utils_var.h4
-rw-r--r--contrib/chkpass/chkpass.c4
-rw-r--r--contrib/fuzzystrmatch/dmetaphone.c8
-rw-r--r--contrib/pg_trgm/trgm.h2
-rw-r--r--contrib/tsearch2/common.c1
-rw-r--r--contrib/tsearch2/gendict/dict_snowball.c.IN5
-rw-r--r--contrib/tsearch2/gendict/dict_tmpl.c.IN6
-rw-r--r--contrib/tsearch2/ispell/regis.c4
-rw-r--r--contrib/tsearch2/ispell/spell.c7
-rw-r--r--contrib/tsearch2/ispell/spell.h4
13 files changed, 20 insertions, 35 deletions
diff --git a/contrib/btree_gist/btree_numeric.c b/contrib/btree_gist/btree_numeric.c
index a6a03c8995b..639b575cb3f 100644
--- a/contrib/btree_gist/btree_numeric.c
+++ b/contrib/btree_gist/btree_numeric.c
@@ -1,7 +1,8 @@
+#include "btree_gist.h"
+
#include <math.h>
#include <float.h>
-#include "btree_gist.h"
#include "btree_utils_var.h"
#include "utils/builtins.h"
#include "utils/numeric.h"
diff --git a/contrib/btree_gist/btree_utils_num.h b/contrib/btree_gist/btree_utils_num.h
index 1ea022e90f5..dcaa94bbeee 100644
--- a/contrib/btree_gist/btree_utils_num.h
+++ b/contrib/btree_gist/btree_utils_num.h
@@ -1,11 +1,11 @@
#ifndef __BTREE_UTILS_NUM_H__
#define __BTREE_UTILS_NUM_H__
+#include "btree_gist.h"
+
#include <math.h>
#include <float.h>
-#include "btree_gist.h"
-
typedef char GBT_NUMKEY;
/* Better readable key */
diff --git a/contrib/btree_gist/btree_utils_var.c b/contrib/btree_gist/btree_utils_var.c
index 1a6f1fdadfe..1f5ea126920 100644
--- a/contrib/btree_gist/btree_utils_var.c
+++ b/contrib/btree_gist/btree_utils_var.c
@@ -1,8 +1,9 @@
+#include "btree_gist.h"
+
#include <math.h>
#include <limits.h>
#include <float.h>
-#include "btree_gist.h"
#include "btree_utils_var.h"
#include "utils/pg_locale.h"
#include "utils/builtins.h"
diff --git a/contrib/btree_gist/btree_utils_var.h b/contrib/btree_gist/btree_utils_var.h
index 21a6cbd8e27..0c723e91ac3 100644
--- a/contrib/btree_gist/btree_utils_var.h
+++ b/contrib/btree_gist/btree_utils_var.h
@@ -1,10 +1,10 @@
#ifndef __BTREE_UTILS_VAR_H__
#define __BTREE_UTILS_VAR_H__
-#include "mb/pg_wchar.h"
-
#include "btree_gist.h"
+#include "mb/pg_wchar.h"
+
/* Variable length key */
typedef bytea GBT_VARKEY;
diff --git a/contrib/chkpass/chkpass.c b/contrib/chkpass/chkpass.c
index 04591bd154d..0842291eaf7 100644
--- a/contrib/chkpass/chkpass.c
+++ b/contrib/chkpass/chkpass.c
@@ -4,14 +4,12 @@
* http://www.druid.net/darcy/
*
- * $PostgreSQL: pgsql/contrib/chkpass/chkpass.c,v 1.16 2006/05/30 22:12:12 tgl Exp $
+ * $PostgreSQL: pgsql/contrib/chkpass/chkpass.c,v 1.17 2006/07/14 05:28:27 tgl Exp $
* best viewed with tabs set to 4
*/
#include "postgres.h"
-#include <stdio.h>
-#include <string.h>
#include <time.h>
#include <unistd.h>
#ifdef HAVE_CRYPT_H
diff --git a/contrib/fuzzystrmatch/dmetaphone.c b/contrib/fuzzystrmatch/dmetaphone.c
index 3fe247e9221..ee1944c3930 100644
--- a/contrib/fuzzystrmatch/dmetaphone.c
+++ b/contrib/fuzzystrmatch/dmetaphone.c
@@ -1,7 +1,7 @@
/*
* This is a port of the Double Metaphone algorithm for use in PostgreSQL.
*
- * $PostgreSQL: pgsql/contrib/fuzzystrmatch/dmetaphone.c,v 1.7 2006/03/11 04:38:29 momjian Exp $
+ * $PostgreSQL: pgsql/contrib/fuzzystrmatch/dmetaphone.c,v 1.8 2006/07/14 05:28:27 tgl Exp $
*
* Double Metaphone computes 2 "sounds like" strings - a primary and an
* alternate. In most cases they are the same, but for foreign names
@@ -50,8 +50,8 @@
/*
- * $Revision: 1.7 $
- * $Id: dmetaphone.c,v 1.7 2006/03/11 04:38:29 momjian Exp $
+ * $Revision: 1.8 $
+ * $Id: dmetaphone.c,v 1.8 2006/07/14 05:28:27 tgl Exp $
*/
@@ -106,8 +106,8 @@ The remaining code is authored by Andrew Dunstan <[email protected]> and
#ifndef DMETAPHONE_MAIN
#include "postgres.h"
+
#include "fmgr.h"
-#include "utils/elog.h"
/* turn off assertions for embedded function */
#define NDEBUG
diff --git a/contrib/pg_trgm/trgm.h b/contrib/pg_trgm/trgm.h
index d6ba0405053..b7674c52b58 100644
--- a/contrib/pg_trgm/trgm.h
+++ b/contrib/pg_trgm/trgm.h
@@ -6,8 +6,6 @@
#include "access/gist.h"
#include "access/itup.h"
#include "utils/builtins.h"
-#include "utils/elog.h"
-#include "utils/palloc.h"
#include "storage/bufpage.h"
/* options */
diff --git a/contrib/tsearch2/common.c b/contrib/tsearch2/common.c
index 35fb9ffcb8a..61928213443 100644
--- a/contrib/tsearch2/common.c
+++ b/contrib/tsearch2/common.c
@@ -1,6 +1,5 @@
#include "postgres.h"
-#include "postgres.h"
#include "fmgr.h"
#include "catalog/pg_namespace.h"
#include "catalog/pg_proc.h"
diff --git a/contrib/tsearch2/gendict/dict_snowball.c.IN b/contrib/tsearch2/gendict/dict_snowball.c.IN
index 6a0fce9a3e6..7136ee19ddc 100644
--- a/contrib/tsearch2/gendict/dict_snowball.c.IN
+++ b/contrib/tsearch2/gendict/dict_snowball.c.IN
@@ -1,13 +1,10 @@
-/* $PostgreSQL: pgsql/contrib/tsearch2/gendict/dict_snowball.c.IN,v 1.4 2006/03/11 04:38:30 momjian Exp $ */
+/* $PostgreSQL: pgsql/contrib/tsearch2/gendict/dict_snowball.c.IN,v 1.5 2006/07/14 05:28:27 tgl Exp $ */
/*
* example of Snowball dictionary
* http://snowball.tartarus.org/
* Teodor Sigaev <[email protected]>
*/
-#include <stdlib.h>
-#include <string.h>
-
#include "postgres.h"
#include "dict.h"
diff --git a/contrib/tsearch2/gendict/dict_tmpl.c.IN b/contrib/tsearch2/gendict/dict_tmpl.c.IN
index 694b7363e08..a47720aa100 100644
--- a/contrib/tsearch2/gendict/dict_tmpl.c.IN
+++ b/contrib/tsearch2/gendict/dict_tmpl.c.IN
@@ -1,13 +1,9 @@
-/* $PostgreSQL: pgsql/contrib/tsearch2/gendict/dict_tmpl.c.IN,v 1.5 2006/03/11 04:38:30 momjian Exp $ */
+/* $PostgreSQL: pgsql/contrib/tsearch2/gendict/dict_tmpl.c.IN,v 1.6 2006/07/14 05:28:27 tgl Exp $ */
/*
* example of dictionary
* Teodor Sigaev <[email protected]>
*/
-#include <errno.h>
-#include <stdlib.h>
-#include <string.h>
-
#include "postgres.h"
#include "dict.h"
diff --git a/contrib/tsearch2/ispell/regis.c b/contrib/tsearch2/ispell/regis.c
index 20b6bddecf6..4be863431d1 100644
--- a/contrib/tsearch2/ispell/regis.c
+++ b/contrib/tsearch2/ispell/regis.c
@@ -1,7 +1,3 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
#include "regis.h"
#include "ts_locale.h"
#include "common.h"
diff --git a/contrib/tsearch2/ispell/spell.c b/contrib/tsearch2/ispell/spell.c
index 28f38eefd32..4e199f4bc07 100644
--- a/contrib/tsearch2/ispell/spell.c
+++ b/contrib/tsearch2/ispell/spell.c
@@ -1,10 +1,7 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-
#include "postgres.h"
+#include <ctype.h>
+
#include "spell.h"
#include "common.h"
#include "ts_locale.h"
diff --git a/contrib/tsearch2/ispell/spell.h b/contrib/tsearch2/ispell/spell.h
index fe79888bf3e..5734881947e 100644
--- a/contrib/tsearch2/ispell/spell.h
+++ b/contrib/tsearch2/ispell/spell.h
@@ -1,9 +1,11 @@
#ifndef __SPELL_H__
#define __SPELL_H__
+#include "c.h"
+
#include <sys/types.h>
+
#include "regex/regex.h"
-#include "c.h"
#include "regis.h"
#include "dict.h"