- 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)
1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,31 +0,0 @@ |
1 |
-/* |
|
2 |
- * |
|
3 |
- * Copyright (C) 2007 iptelorg GmbH |
|
4 |
- * |
|
5 |
- * Permission to use, copy, modify, and distribute this software for any |
|
6 |
- * purpose with or without fee is hereby granted, provided that the above |
|
7 |
- * copyright notice and this permission notice appear in all copies. |
|
8 |
- * |
|
9 |
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
|
10 |
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
|
11 |
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
|
12 |
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
|
13 |
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
|
14 |
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
|
15 |
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
|
16 |
- */ |
|
17 |
-/*! |
|
18 |
-* \file |
|
19 |
-* \brief Kamailio core :: lock_ops init functions |
|
20 |
-* \ingroup core |
|
21 |
-* \author andrei |
|
22 |
-* Module: \ref core |
|
23 |
- */ |
|
24 |
- |
|
25 |
-#ifndef __lock_ops_init_h |
|
26 |
-#define __lock_ops_init_h |
|
27 |
- |
|
28 |
-int init_lock_ops(void); |
|
29 |
-void destroy_lock_ops(void); |
|
30 |
- |
|
31 |
-#endif |
... | ... |
@@ -1,5 +1,4 @@ |
1 | 1 |
/* |
2 |
- * $Id$ |
|
3 | 2 |
* |
4 | 3 |
* Copyright (C) 2007 iptelorg GmbH |
5 | 4 |
* |
... | ... |
@@ -15,13 +14,12 @@ |
15 | 14 |
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
16 | 15 |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
17 | 16 |
*/ |
18 |
-/* |
|
19 |
- * lock_ops init functions |
|
20 |
- */ |
|
21 |
-/* |
|
22 |
- * History: |
|
23 |
- * -------- |
|
24 |
- * 2007-05-14 created by andrei |
|
17 |
+/*! |
|
18 |
+* \file |
|
19 |
+* \brief Kamailio core :: lock_ops init functions |
|
20 |
+* \ingroup core |
|
21 |
+* \author andrei |
|
22 |
+* Module: \ref core |
|
25 | 23 |
*/ |
26 | 24 |
|
27 | 25 |
#ifndef __lock_ops_init_h |
In C language, a declaration in the form int f(); is equivalent to int f(...);, thus being able to accept an indefinit number of parameters. With the -Wstrict-prototypes GCC options, these declarations are reported as "function declaration isn’t a prototype".
On some cases, this may trick the compiler into generating unoptimized code (like preparing to handle variadic argument list).
In all cases having a declaration int f() and a definition inf f(int) is missleading, even if standard compliant.
This is still Work in Progress. (maybe adding the -Wstrict-prototypes option to default is desireable)
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,33 @@ |
1 |
+/* |
|
2 |
+ * $Id$ |
|
3 |
+ * |
|
4 |
+ * Copyright (C) 2007 iptelorg GmbH |
|
5 |
+ * |
|
6 |
+ * Permission to use, copy, modify, and distribute this software for any |
|
7 |
+ * purpose with or without fee is hereby granted, provided that the above |
|
8 |
+ * copyright notice and this permission notice appear in all copies. |
|
9 |
+ * |
|
10 |
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
|
11 |
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
|
12 |
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
|
13 |
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
|
14 |
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
|
15 |
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
|
16 |
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
|
17 |
+ */ |
|
18 |
+/* |
|
19 |
+ * lock_ops init functions |
|
20 |
+ */ |
|
21 |
+/* |
|
22 |
+ * History: |
|
23 |
+ * -------- |
|
24 |
+ * 2007-05-14 created by andrei |
|
25 |
+ */ |
|
26 |
+ |
|
27 |
+#ifndef __lock_ops_init_h |
|
28 |
+#define __lock_ops_init_h |
|
29 |
+ |
|
30 |
+int init_lock_ops(); |
|
31 |
+void destroy_lock_ops(); |
|
32 |
+ |
|
33 |
+#endif |