add <stdlib.h> for malloc and lua

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8657 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-31 06:16:41 +00:00
commit dcf0727ee1
5 changed files with 17 additions and 0 deletions

View file

@ -3,6 +3,9 @@ This test case tests that various types of arrays are working.
*/
%module arrays
%{
#include <stdlib.h>
%}
%inline %{
#define ARRAY_LEN 2

View file

@ -23,6 +23,9 @@ code is not functioning properly it will fail to compile.
*/
%module lextype
%{
#include <stdlib.h>
%}
%typemap(in) Animal ()
{

View file

@ -6,6 +6,10 @@
%module newobject2
%{
#include <stdlib.h>
%}
%{
/* Global initialization (not wrapped) */
int g_fooCount = 0;

View file

@ -1,6 +1,10 @@
%module overload_extend
#ifndef __cplusplus
%{
#include <stdlib.h>
%}
%typemap(default) double y "$1=1000;";
#endif

View file

@ -3,6 +3,9 @@
// objects that have complicated state.
%module private_assign
%{
#include <stdlib.h>
%}
%inline %{
class Foo {