fix bug #1158178
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8890 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c70690f109
commit
535eae8a41
3 changed files with 26 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ Version 1.3.29 (In progress)
|
||||||
02/22/2006: mmatus
|
02/22/2006: mmatus
|
||||||
|
|
||||||
Fix all the errors reported for 1.3.28.
|
Fix all the errors reported for 1.3.28.
|
||||||
|
- fix bug #1158178
|
||||||
- fix bug #1060789
|
- fix bug #1060789
|
||||||
- fix bug #1263457
|
- fix bug #1263457
|
||||||
- fix 'const char*&' typemap in the UTL, reported by Geoff Hutchison
|
- fix 'const char*&' typemap in the UTL, reported by Geoff Hutchison
|
||||||
|
|
|
||||||
|
|
@ -48,3 +48,27 @@ int get_value(int *x, int i) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#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;
|
||||||
|
|
||||||
|
%}
|
||||||
|
|
|
||||||
|
|
@ -646,7 +646,7 @@ SwigType_ltype(SwigType *s) {
|
||||||
}
|
}
|
||||||
if (SwigType_issimple(tc)) {
|
if (SwigType_issimple(tc)) {
|
||||||
/* Resolve any typedef definitions */
|
/* Resolve any typedef definitions */
|
||||||
td = SwigType_typedef_resolve(tc);
|
td = SwigType_typedef_resolve_all(tc);
|
||||||
if (td && (SwigType_isconst(td) || SwigType_isarray(td) || SwigType_isreference(td))) {
|
if (td && (SwigType_isconst(td) || SwigType_isarray(td) || SwigType_isreference(td))) {
|
||||||
/* We need to use the typedef type */
|
/* We need to use the typedef type */
|
||||||
Delete(tc);
|
Delete(tc);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue