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:
parent
6c4bc0378d
commit
dcf0727ee1
5 changed files with 17 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -23,6 +23,9 @@ code is not functioning properly it will fail to compile.
|
|||
*/
|
||||
|
||||
%module lextype
|
||||
%{
|
||||
#include <stdlib.h>
|
||||
%}
|
||||
|
||||
%typemap(in) Animal ()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,10 @@
|
|||
|
||||
%module newobject2
|
||||
|
||||
%{
|
||||
#include <stdlib.h>
|
||||
%}
|
||||
|
||||
%{
|
||||
/* Global initialization (not wrapped) */
|
||||
int g_fooCount = 0;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
%module overload_extend
|
||||
|
||||
#ifndef __cplusplus
|
||||
%{
|
||||
#include <stdlib.h>
|
||||
%}
|
||||
|
||||
%typemap(default) double y "$1=1000;";
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,9 @@
|
|||
// objects that have complicated state.
|
||||
|
||||
%module private_assign
|
||||
%{
|
||||
#include <stdlib.h>
|
||||
%}
|
||||
|
||||
%inline %{
|
||||
class Foo {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue