fix bug #1158178
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8890 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
fad49549ea
commit
4ba7f6c2a2
3 changed files with 26 additions and 2 deletions
|
|
@ -48,3 +48,27 @@ int get_value(int *x, int i) {
|
|||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
%inline %{
|
||||
#define BUFF_LEN 12
|
||||
|
||||
typedef unsigned char BUFF[BUFF_LEN];
|
||||
|
||||
typedef BUFF MY_BUFF;
|
||||
|
||||
typedef struct _m {
|
||||
int i;
|
||||
MY_BUFF x;
|
||||
} MyBuff;
|
||||
|
||||
|
||||
typedef char SBUFF[BUFF_LEN];
|
||||
typedef SBUFF MY_SBUFF;
|
||||
typedef struct _sm {
|
||||
int i;
|
||||
MY_SBUFF x;
|
||||
} MySBuff;
|
||||
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue