Generally, package config files should _not_ be included
by package headers. In this specific case the aim is overriding
POSTGIS_DEBUG_LEVEL in implementation files for the sake of
enabling debugging of a single file.
Also part of this commit is addition of copyright header in
two files which were missing it (used git history to figure
assignments)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9134
b70326c6-7e19-0410-871a-
916f4a2858ee
*
**********************************************************************/
+#include "../postgis_config.h"
#include "liblwgeom.h"
#include "lwgeom_log.h"
#include <string.h>
#include "utils/geo_decls.h"
#include "fmgr.h"
-#include "../postgis_config.h"
-
#include "liblwgeom.h"
#include "pgsql_compat.h"
#include "utils/hsearch.h"
/* PostGIS headers */
+#include "../postgis_config.h"
#include "liblwgeom.h"
#include "lwgeom_pg.h"
#include "lwgeom_transform.h"
#include "utils/lsyscache.h"
#include "utils/syscache.h"
+#include "../postgis_config.h"
#include "liblwgeom.h"
#include "lwgeom_pg.h"
#include "utils/lsyscache.h"
#include "utils/syscache.h"
+#include "../postgis_config.h"
#include "liblwgeom.h"
#include "lwgeom_pg.h" /* For debugging macros. */
#include "gserialized_gist.h" /* For index common functions */
#include "commands/trigger.h" /* ... and triggers */
#include "utils/lsyscache.h" /* for get_namespace_name() */
+#include "../postgis_config.h"
#include "lwgeom_pg.h"
#define ABORT_ON_AUTH_FAILURE 1
#include "utils/array.h"
#include "utils/lsyscache.h"
+#include "../postgis_config.h"
+
#include "liblwgeom.h"
#include "lwgeom_pg.h"
#include "utils/elog.h"
#include "utils/geo_decls.h"
+#include "../postgis_config.h"
#include "lwgeom_pg.h"
#include "liblwgeom.h"
#include "liblwgeom_internal.h"
#include "utils/elog.h"
#include "utils/geo_decls.h"
+#include "../postgis_config.h"
#include "lwgeom_pg.h"
#include "liblwgeom.h"
#include "liblwgeom_internal.h"
-/***********************************************************
+/**********************************************************************
*
- * $Id$
+ * PostGIS - Spatial Types for PostgreSQL
+ * http://postgis.refractions.net
+ *
+ * Copyright (C) 2010 Olivier Courtin <olivier.courtin@oslandia.com>
+ * Copyright (C) 2010 Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
+ * Copyright (C) 2009-2011 Paul Ramsey <pramsey@cleverelephant.ca>
+ *
+ * This is free software; you can redistribute and/or modify it under
+ * the terms of the GNU General Public Licence. See the COPYING file.
+ *
+ **********************************************************************
*
* Comparision function for use in Binary Tree searches
* (ORDER BY, GROUP BY, DISTINCT)
#include "fmgr.h"
#include "utils/geo_decls.h"
+#include "../postgis_config.h"
#include "liblwgeom.h"
#include "lwgeom_pg.h"
#include "postgres.h"
#include "fmgr.h"
+#include "../postgis_config.h"
#include "lwgeom_cache.h"
GeomCache* GetGeomCache(FunctionCallInfoData *fcinfo)
* the terms of the GNU General Public Licence. See the COPYING file.
*
**********************************************************************/
+
+#include <math.h>
+#include <float.h>
+#include <string.h>
+#include <stdio.h>
+#include <errno.h>
+#include <assert.h>
+
#include "postgres.h"
#include "fmgr.h"
#include "utils/elog.h"
#include "utils/geo_decls.h"
#include "funcapi.h"
+#include "../postgis_config.h"
#include "liblwgeom.h"
#include "lwgeom_pg.h"
-#include "../postgis_config.h"
-
-#include <math.h>
-#include <float.h>
-#include <string.h>
-#include <stdio.h>
-#include <errno.h>
-#include <assert.h>
-
Datum LWGEOM_dump(PG_FUNCTION_ARGS);
Datum LWGEOM_dump_rings(PG_FUNCTION_ARGS);
#include "postgres.h"\r
#include "executor/spi.h"\r
\r
+#include "../postgis_config.h"\r
#include "lwgeom_pg.h"\r
#include "liblwgeom.h"\r
#include "lwgeom_export.h"\r
*
**********************************************************************/
+#include <math.h>
+
#include "postgres.h"
#include "fmgr.h"
+
+#include "../postgis_config.h"
#include "liblwgeom.h"
#include "lwgeom_pg.h"
-#include "math.h"
/*
* Add a measure dimension to a line, interpolating linearly from the
*
**********************************************************************/
+#include <assert.h>
+
#include "postgres.h"
+
+#include "../postgis_config.h"
#include "lwgeom_pg.h"
#include "liblwgeom.h"
-#include <assert.h>
Datum geom_from_geojson(PG_FUNCTION_ARGS);
**********************************************************************/
-#include "postgres.h"
-#include "lwgeom_pg.h"
-#include "liblwgeom.h"
-#include "lwgeom_transform.h"
-#include "executor/spi.h"
-
-
#include <libxml/tree.h>
#include <libxml/parser.h>
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
+#include "postgres.h"
+#include "executor/spi.h"
+
+#include "../postgis_config.h"
+#include "lwgeom_pg.h"
+#include "liblwgeom.h"
+#include "lwgeom_transform.h"
Datum geom_from_gml(PG_FUNCTION_ARGS);
**********************************************************************/
+#include <libxml/tree.h>
+#include <libxml/parser.h>
+
#include "postgres.h"
+
+#include "../postgis_config.h"
#include "lwgeom_pg.h"
#include "liblwgeom.h"
-#include <libxml/tree.h>
-#include <libxml/parser.h>
-
/*
TODO:
#include "fmgr.h"
#include "utils/elog.h"
+#include "../postgis_config.h"
+
#include "liblwgeom.h"
#include "lwgeom_pg.h"
#include <assert.h>
+#include "../postgis_config.h"
#include "lwgeom_pg.h"
#include "liblwgeom.h"
#include "liblwgeom_internal.h" /* For FP comparators. */
#include "fmgr.h"
#include "utils/elog.h"
+#include "../postgis_config.h"
#include "liblwgeom.h"
#include "lwgeom_pg.h"
*
**********************************************************************/
-#include "postgres.h"
-#include "liblwgeom.h"
-#include "fmgr.h"
-
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <math.h>
+#include "postgres.h"
+#include "fmgr.h"
+
+#include "../postgis_config.h"
+#include "liblwgeom.h"
#include "lwgeom_pg.h"
#include "postgres.h"
#include "fmgr.h"
+#include "../postgis_config.h"
#include "liblwgeom.h"
#include "lwgeom_transform.h"
+/**********************************************************************
+ *
+ * PostGIS - Spatial Types for PostgreSQL
+ * http://postgis.refractions.net
+ *
+ * Copyright (C) 2004 Refractions Research Inc.
+ *
+ * This is free software; you can redistribute and/or modify it under
+ * the terms of the GNU General Public Licence. See the COPYING file.
+ *
+ **********************************************************************/
+
#include "postgres.h"
#include "executor/spi.h" /* this is what you need to work with SPI */
#include "commands/trigger.h" /* ... and triggers */
+
+#include "../postgis_config.h"
#include "lwgeom_pg.h"
Datum cache_bbox(PG_FUNCTION_ARGS);
#include "utils/elog.h"
#include "utils/guc.h"
+#include "../postgis_config.h"
#include "lwgeom_log.h"
#include "lwgeom_pg.h"
-#include "../postgis_config.h"
/*
* This is required for builds against pgsql
#include <executor/executor.h> /* for GetAttributeByName in RASTER_reclass */
#include <funcapi.h>
+#include "../../postgis_config.h"
+
#include "lwgeom_pg.h"
#include "liblwgeom.h"
#include "liblwgeom_internal.h" /* for clamp_srid() */