summaryrefslogtreecommitdiff
path: root/contrib/tsearch2/wparser.c
diff options
context:
space:
mode:
authorTom Lane2005-05-06 17:24:55 +0000
committerTom Lane2005-05-06 17:24:55 +0000
commit278bd0cc224615e41219e24304d04898941ab046 (patch)
treeebf6ccc2a40ded4eff6d9cc38e76a458326732dc /contrib/tsearch2/wparser.c
parent4eec2f24078d09fba8044a2b16584a9a4aa36242 (diff)
For some reason access/tupmacs.h has been #including utils/memutils.h,
which is neither needed by nor related to that header. Remove the bogus inclusion and instead include the header in those C files that actually need it. Also fix unnecessary inclusions and bad inclusion order in tsearch2 files.
Diffstat (limited to 'contrib/tsearch2/wparser.c')
-rw-r--r--contrib/tsearch2/wparser.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/contrib/tsearch2/wparser.c b/contrib/tsearch2/wparser.c
index 33bfd4d87e8..39cd673bb0b 100644
--- a/contrib/tsearch2/wparser.c
+++ b/contrib/tsearch2/wparser.c
@@ -2,17 +2,16 @@
* interface functions to parser
* Teodor Sigaev <[email protected]>
*/
-#include <errno.h>
-#include <stdlib.h>
-#include <string.h>
+#include "postgres.h"
+
#include <ctype.h>
-#include "postgres.h"
-#include "fmgr.h"
-#include "utils/array.h"
#include "catalog/pg_type.h"
#include "executor/spi.h"
+#include "fmgr.h"
#include "funcapi.h"
+#include "utils/array.h"
+#include "utils/memutils.h"
#include "wparser.h"
#include "ts_cfg.h"