Fix comment typos
Don't use // comments in C code.
JavaScript: Added missing static modifiers to avoid duplicate symbol problems with multiple SWIG modules.
JavaScriptCore: Bug fix for finalizer. The finalizer needs to be set on the objectDefinition, not the classDefinition. Otherwise, all the finalize callbacks get NULL back for the PrivateData and can't free the SwigPrivData, causing massive leakage.
JavascriptCore: fix cleanup code.
JavaScriptCore: Bug fix for SWIGJSC_AppendOutput. This function requires a return value. I think it should be arr, but somebody should scrutinize this.
JavaScriptCore: C89: declare variables at the top for antiquated compilers like Microsoft Visual Studio.
JavaScriptCore: More missing static modifiers.
JavaScriptCore: ConvertPtr should allow JavaScript null to be a valid value.

It is common in C to accept NULL to functions for pointer parameters.
extern void DoSomething(struct Foo* foo);
...
DoSomething(NULL);

Thus, JavaScript null should be allowed:
module.DoSomething(null);

But the current ConvertPtr definition accepts only objects. This modifies it to allow null.
Javascript: fix warnings in li_std_string test.

Old typemaps for std::string were in place instead of delegating to UTL.
Javascript: preparations for using Language::getNSpace().
Javascript: support null pointers.

We allow to set pointer types using JS null.
Fix li_boost_intrusive_ptr for various versions of boost

Modify testcase to fix compile errors on various versions of boost.
Tested using various combinations from boost-1.33/gcc-3.4.2 to
boost-1.53/gcc-4.7.3. Originally noticed as broken on
boost-1.36/gcc-4.3.4 on SLE 11.

Add in some diagnostics when reference count is wrong... which does
still happen occasionally.
Javascript: generalise test-case 'typemap_variables' so that it can be used for Javascript V8.

The original version contains output typemaps that produced incompatible code.
Introduce a pre-processor macro that is set to a valid value for v8.
Merge branch 'master' of https://github.com/swig/swig
Merge branch 'master' into JSNativeWrapper

# By Eric Wing (6) and others
# Via Oliver Buchtala
* master:
  Javascript: generalise test-case 'typemap_variables' so that it can be used for Javascript V8.
  Fix li_boost_intrusive_ptr for various versions of boost
  Javascript: support null pointers.
  Javascript: preparations for using Language::getNSpace().
  Javascript: fix warnings in li_std_string test.
  JavaScriptCore: ConvertPtr should allow JavaScript null to be a valid value.
  JavaScriptCore: More missing static modifiers.
  JavaScriptCore: C89: declare variables at the top for antiquated compilers like Microsoft Visual Studio.
  JavaScriptCore: Bug fix for SWIGJSC_AppendOutput. This function requires a return value. I think it should be arr, but somebody should scrutinize this.
  JavascriptCore: fix cleanup code.
  JavaScriptCore: Bug fix for finalizer. The finalizer needs to be set on the objectDefinition, not the classDefinition. Otherwise, all the finalize callbacks get NULL back for the PrivateData and can't free the SwigPrivData, causing massive leakage.
  JavaScript: Added missing static modifiers to avoid duplicate symbol problems with multiple SWIG modules.
  Don't use // comments in C code.
  Fix comment typos
Revert "Javascript: support null pointers."

This reverts commit 11963788e0d008e1c6e997577086cd8dd584c03f.
Revert "JavaScriptCore: ConvertPtr should allow JavaScript null to be a valid value."

This reverts commit 05ed0325dc4bd9ddc126d3dacc6b38686f7382cf.
Javascript: Use RUNTOOL for running tests.
JavaScriptCore: ConvertPtr should allow JavaScript null to be a valid value.

It is common in C to accept NULL to functions for pointer parameters.
extern void DoSomething(struct Foo* foo);
...
DoSomething(NULL);

Thus, JavaScript null should be allowed:
module.DoSomething(null);

But the current ConvertPtr definition accepts only objects. This modifies it to allow null.