Skip to content

Commit 02a219d

Browse files
committed
reformat pg_sphere.h
1 parent e4b04a3 commit 02a219d

File tree

1 file changed

+33
-45
lines changed

1 file changed

+33
-45
lines changed

pg_sphere.h

Lines changed: 33 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,45 @@
11
#ifndef __PGS_PGSPHERE_H__
22
#define __PGS_PGSPHERE_H__
33

4-
/*!
5-
\file
6-
\brief Base declarations and includes
7-
*/
8-
9-
10-
/*!
11-
\page index
12-
13-
<h2>pgSphere</h2>
14-
<p>
15-
pgSphere is an extra module for PostgreSQL which adds spherical data types. It provides:
16-
</p>
17-
<ul>
18-
<li> input and output of data</li>
19-
<li> containing, overlapping, and other operators</li>
20-
<li> various input and converting functions and operators
21-
<li> circumference and area of an object
22-
<li> spherical transformation
23-
<li> indexing of spherical data types
24-
<li> several input and output formats
25-
</ul>
26-
<p>
27-
Hence, you can do a fast search and analysis for objects with spherical
28-
attributes as used in geographical, astronomical, or other applications
29-
using PostgreSQL. For instance, you can manage data of geographical
30-
objects around the world and astronomical data like star and other
31-
catalogs conveniently using an SQL interface.
32-
</p>
33-
<p>
34-
The aim of pgSphere is to
35-
provide uniform access to spherical data. Because PostgreSQL itself
36-
supports a lot of software interfaces, you can now use the same database
37-
with different utilities and applications.
38-
</p>
39-
*/
40-
4+
/* Base declarations and includes */
5+
6+
7+
/*
8+
* pgSphere is an extra module for PostgreSQL which adds spherical data types. It provides:
9+
*
10+
* - input and output of data
11+
* - containing, overlapping, and other operators
12+
* - various input and converting functions and operators
13+
* - circumference and area of an object
14+
* - spherical transformation
15+
* - indexing of spherical data types
16+
* - several input and output formats
17+
*
18+
* Hence, you can do a fast search and analysis for objects with spherical
19+
* attributes as used in geographical, astronomical, or other applications
20+
* using PostgreSQL. For instance, you can manage data of geographical
21+
* objects around the world and astronomical data like star and other
22+
* catalogs conveniently using an SQL interface.
23+
*
24+
* The aim of pgSphere is to
25+
* provide uniform access to spherical data. Because PostgreSQL itself
26+
* supports a lot of software interfaces, you can now use the same database
27+
* with different utilities and applications.
28+
*/
4129

4230
#include <stdlib.h>
4331
#include <stdio.h>
4432
#include <string.h>
4533
#include <math.h>
4634
#include <float.h>
4735

48-
#define PI 3.14159265358979323846 //!< pi
49-
#define PIH 1.57079632679489661923 //!< pi/2
50-
#define PID 6.2831853071795864769 //!< 2*pi
51-
#define RADIANS 57.295779513082320877 //!< 180/pi
52-
#define PI_EPS 4.4408920985006261617e-16 /* 2 ** -51 */
36+
#define PI 3.14159265358979323846 /* pi */
37+
#define PIH 1.57079632679489661923 /* pi/2 */
38+
#define PID 6.2831853071795864769 /* 2*pi */
39+
#define RADIANS 57.295779513082320877 /* 180/pi */
40+
#define PI_EPS 4.4408920985006261617e-16 /* 2 ** -51 */
5341

54-
#define Sqr(a) ( ( a ) * ( a ) ) /* square function as macro */
42+
#define Sqr(a) ( (a) * (a) ) /* square function as macro */
5543

5644
#include "postgres.h"
5745
#include "fmgr.h"
@@ -67,8 +55,8 @@
6755
#ifdef EPSILON
6856
#undef EPSILON
6957
#endif
70-
#define EPSILON 1.0E-09 //!< Precision of floating point values
58+
#define EPSILON 1.0E-09 /* precision of floating point values */
7159

72-
void sphere_yyparse(void);
60+
void sphere_yyparse(void);
7361

7462
#endif

0 commit comments

Comments
 (0)