Browse code

backwards-compatibility defs file introduced

Jiri Kuthan authored on 27/01/2003 21:17:41
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,50 @@
0
+/*
1
+ * $Id$
2
+ *
3
+ * Copyright (C) 2001-2003 Fhg Fokus
4
+ *
5
+ * This file is part of ser, a free SIP server.
6
+ *
7
+ * ser is free software; you can redistribute it and/or modify
8
+ * it under the terms of the GNU General Public License as published by
9
+ * the Free Software Foundation; either version 2 of the License, or
10
+ * (at your option) any later version
11
+ *
12
+ * For a license to use the ser software under conditions
13
+ * other than those described here, or to purchase support for this
14
+ * software, please contact iptel.org by e-mail at the following addresses:
15
+ *    info@iptel.org
16
+ *
17
+ * ser is distributed in the hope that it will be useful,
18
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
+ * GNU General Public License for more details.
21
+ *
22
+ * You should have received a copy of the GNU General Public License 
23
+ * along with this program; if not, write to the Free Software 
24
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
25
+ */
26
+
27
+/* compatibility defs for emergency roll-back if things do not work */
28
+
29
+
30
+#ifndef _COMP_DEFS_H
31
+#define _COMP_DEFS_H
32
+
33
+/* preserve "old" parser which delimited header fields by zeros,
34
+ * and included deliminitors in body (which was the only way to
35
+ * learn length of the whole header field 
36
+ */
37
+#undef PRESERVE_ZT
38
+
39
+
40
+/* ------------------------------------------------------ */
41
+/* don't touch this -- that's helper macros depending on
42
+ * the backwards compatibility macros above */
43
+#ifdef PRESERVE_ZT
44
+#	define SET_ZT(_ch) (_ch)='\0'
45
+#else
46
+#	define SET_ZT(_ch)
47
+#endif
48
+
49
+#endif