summaryrefslogtreecommitdiff
path: root/Source/Include/swigwarn.h
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2008-07-03 00:09:56 +0000
committerOlly Betts <olly@survex.com>2008-07-03 00:09:56 +0000
commit7dfd9aae311c04a99453bcabc4204646bb458b87 (patch)
treec6f07551c7896656953a3eded7fb0ebe8d610887 /Source/Include/swigwarn.h
parent9fc127d68b140f4631b436413f1a6d80b75c06af (diff)
downloadswig-7dfd9aae311c04a99453bcabc4204646bb458b87.tar.gz
WARN_* constants are user visible, so keep existing WARN_PHP4_* for
backward compatibility, but add preferred forms WARN_PHP_* and use these ourselves. Rename Lib/php4 to Lib/php, Source/Modules/php4.cxx to Source/Modules/php.cxx. Add typemaps for const reference so Examples/test-suite/apply_signed_char.i works. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10633 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Source/Include/swigwarn.h')
-rw-r--r--Source/Include/swigwarn.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/Source/Include/swigwarn.h b/Source/Include/swigwarn.h
index 174e8b001..8c4678847 100644
--- a/Source/Include/swigwarn.h
+++ b/Source/Include/swigwarn.h
@@ -247,10 +247,17 @@
/* please leave 850-869 free for Modula 3 */
-#define WARN_PHP4_MULTIPLE_INHERITANCE 870
-#define WARN_PHP4_UNKNOWN_PRAGMA 871
+/* These are needed for backward compatibility, but you don't need to add
+ * PHP4 versions of new warnings since existing user interface files can't
+ * be using them.
+ */
+#define WARN_PHP4_MULTIPLE_INHERITANCE 870
+#define WARN_PHP4_UNKNOWN_PRAGMA 871
-/* please leave 870-889 free for Php */
+#define WARN_PHP_MULTIPLE_INHERITANCE 870
+#define WARN_PHP_UNKNOWN_PRAGMA 871
+
+/* please leave 870-889 free for PHP */
/* Feel free to claim any number in this space that's not currently being used. Just make sure you