Browse code

db_postgres: clang format of the code

Daniel-Constantin Mierla authored on 11/10/2017 16:23:19
Showing 1 changed files
... ...
@@ -27,62 +27,62 @@
27 27
  * OID definitions, copied from postgresql/catalog/pg_types.h.
28 28
  * It would be probably more correct to use the definitions from there.
29 29
  */
30
-#define BOOLOID			16
31
-#define BYTEAOID		17
32
-#define CHAROID			18
33
-#define NAMEOID			19
34
-#define INT8OID			20
35
-#define INT2OID			21
36
-#define INT2VECTOROID		22
37
-#define INT4OID			23
38
-#define REGPROCOID		24
39
-#define TEXTOID			25
40
-#define OIDOID			26
41
-#define TIDOID			27
42
-#define XIDOID 			28
43
-#define CIDOID 			29
44
-#define OIDVECTOROID		30
45
-#define POINTOID		600
46
-#define LSEGOID			601
47
-#define PATHOID			602
48
-#define BOXOID			603
49
-#define POLYGONOID		604
50
-#define LINEOID			628
51
-#define FLOAT4OID 		700
52
-#define FLOAT8OID 		701
53
-#define ABSTIMEOID		702
54
-#define RELTIMEOID		703
55
-#define TINTERVALOID		704
56
-#define UNKNOWNOID		705
57
-#define CIRCLEOID		718
58
-#define CASHOID 		790
59
-#define MACADDROID 		829
60
-#define INETOID 		869
61
-#define CIDROID 		650
62
-#define ACLITEMOID		1033
63
-#define BPCHAROID		1042
64
-#define VARCHAROID		1043
65
-#define DATEOID			1082
66
-#define TIMEOID			1083
67
-#define TIMESTAMPOID		1114
68
-#define TIMESTAMPTZOID		1184
69
-#define INTERVALOID		1186
70
-#define TIMETZOID		1266
71
-#define BITOID	 		1560
72
-#define VARBITOID	  	1562
73
-#define NUMERICOID		1700
74
-#define REFCURSOROID		1790
75
-#define REGPROCEDUREOID 	2202
76
-#define REGOPEROID		2203
77
-#define REGOPERATOROID		2204
78
-#define REGCLASSOID		2205
79
-#define REGTYPEOID		2206
80
-#define RECORDOID		2249
81
-#define CSTRINGOID		2275
82
-#define ANYOID			2276
83
-#define ANYARRAYOID		2277
84
-#define VOIDOID			2278
85
-#define TRIGGEROID		2279
86
-#define LANGUAGE_HANDLEROID	2280
87
-#define INTERNALOID		2281
88
-#define OPAQUEOID		2282
30
+#define BOOLOID 16
31
+#define BYTEAOID 17
32
+#define CHAROID 18
33
+#define NAMEOID 19
34
+#define INT8OID 20
35
+#define INT2OID 21
36
+#define INT2VECTOROID 22
37
+#define INT4OID 23
38
+#define REGPROCOID 24
39
+#define TEXTOID 25
40
+#define OIDOID 26
41
+#define TIDOID 27
42
+#define XIDOID 28
43
+#define CIDOID 29
44
+#define OIDVECTOROID 30
45
+#define POINTOID 600
46
+#define LSEGOID 601
47
+#define PATHOID 602
48
+#define BOXOID 603
49
+#define POLYGONOID 604
50
+#define LINEOID 628
51
+#define FLOAT4OID 700
52
+#define FLOAT8OID 701
53
+#define ABSTIMEOID 702
54
+#define RELTIMEOID 703
55
+#define TINTERVALOID 704
56
+#define UNKNOWNOID 705
57
+#define CIRCLEOID 718
58
+#define CASHOID 790
59
+#define MACADDROID 829
60
+#define INETOID 869
61
+#define CIDROID 650
62
+#define ACLITEMOID 1033
63
+#define BPCHAROID 1042
64
+#define VARCHAROID 1043
65
+#define DATEOID 1082
66
+#define TIMEOID 1083
67
+#define TIMESTAMPOID 1114
68
+#define TIMESTAMPTZOID 1184
69
+#define INTERVALOID 1186
70
+#define TIMETZOID 1266
71
+#define BITOID 1560
72
+#define VARBITOID 1562
73
+#define NUMERICOID 1700
74
+#define REFCURSOROID 1790
75
+#define REGPROCEDUREOID 2202
76
+#define REGOPEROID 2203
77
+#define REGOPERATOROID 2204
78
+#define REGCLASSOID 2205
79
+#define REGTYPEOID 2206
80
+#define RECORDOID 2249
81
+#define CSTRINGOID 2275
82
+#define ANYOID 2276
83
+#define ANYARRAYOID 2277
84
+#define VOIDOID 2278
85
+#define TRIGGEROID 2279
86
+#define LANGUAGE_HANDLEROID 2280
87
+#define INTERNALOID 2281
88
+#define OPAQUEOID 2282
Browse code

core, lib, modules: restructured source code tree

- new folder src/ to hold the source code for main project applications
- main.c is in src/
- all core files are subfolder are in src/core/
- modules are in src/modules/
- libs are in src/lib/
- application Makefiles are in src/
- application binary is built in src/ (src/kamailio)

Daniel-Constantin Mierla authored on 07/12/2016 11:03:51
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,88 @@
1
+/*
2
+ * POSTGRES module, portions of this code were templated using
3
+ * the mysql module, thus it's similarity.
4
+ *
5
+ * Copyright (C) 2003 August.Net Services, LLC
6
+ * Copyright (C) 2008 1&1 Internet AG
7
+ *
8
+ * This file is part of Kamailio, a free SIP server.
9
+ *
10
+ * Kamailio is free software; you can redistribute it and/or modify
11
+ * it under the terms of the GNU General Public License as published by
12
+ * the Free Software Foundation; either version 2 of the License, or
13
+ * (at your option) any later version
14
+ *
15
+ * Kamailio is distributed in the hope that it will be useful,
16
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
+ * GNU General Public License for more details.
19
+ *
20
+ * You should have received a copy of the GNU General Public License 
21
+ * along with this program; if not, write to the Free Software 
22
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
23
+ *
24
+ */
25
+
26
+/*
27
+ * OID definitions, copied from postgresql/catalog/pg_types.h.
28
+ * It would be probably more correct to use the definitions from there.
29
+ */
30
+#define BOOLOID			16
31
+#define BYTEAOID		17
32
+#define CHAROID			18
33
+#define NAMEOID			19
34
+#define INT8OID			20
35
+#define INT2OID			21
36
+#define INT2VECTOROID		22
37
+#define INT4OID			23
38
+#define REGPROCOID		24
39
+#define TEXTOID			25
40
+#define OIDOID			26
41
+#define TIDOID			27
42
+#define XIDOID 			28
43
+#define CIDOID 			29
44
+#define OIDVECTOROID		30
45
+#define POINTOID		600
46
+#define LSEGOID			601
47
+#define PATHOID			602
48
+#define BOXOID			603
49
+#define POLYGONOID		604
50
+#define LINEOID			628
51
+#define FLOAT4OID 		700
52
+#define FLOAT8OID 		701
53
+#define ABSTIMEOID		702
54
+#define RELTIMEOID		703
55
+#define TINTERVALOID		704
56
+#define UNKNOWNOID		705
57
+#define CIRCLEOID		718
58
+#define CASHOID 		790
59
+#define MACADDROID 		829
60
+#define INETOID 		869
61
+#define CIDROID 		650
62
+#define ACLITEMOID		1033
63
+#define BPCHAROID		1042
64
+#define VARCHAROID		1043
65
+#define DATEOID			1082
66
+#define TIMEOID			1083
67
+#define TIMESTAMPOID		1114
68
+#define TIMESTAMPTZOID		1184
69
+#define INTERVALOID		1186
70
+#define TIMETZOID		1266
71
+#define BITOID	 		1560
72
+#define VARBITOID	  	1562
73
+#define NUMERICOID		1700
74
+#define REFCURSOROID		1790
75
+#define REGPROCEDUREOID 	2202
76
+#define REGOPEROID		2203
77
+#define REGOPERATOROID		2204
78
+#define REGCLASSOID		2205
79
+#define REGTYPEOID		2206
80
+#define RECORDOID		2249
81
+#define CSTRINGOID		2275
82
+#define ANYOID			2276
83
+#define ANYARRAYOID		2277
84
+#define VOIDOID			2278
85
+#define TRIGGEROID		2279
86
+#define LANGUAGE_HANDLEROID	2280
87
+#define INTERNALOID		2281
88
+#define OPAQUEOID		2282