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