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