nested typedef not working in SWIG
Prasad mulay <[email protected]>
| Newsgroups | gmane.comp.programming.swig,gmane.comp.programming.swig.devel |
|---|---|
| Message-ID | <CAMH9_a2CQzHaAEoamOquB_J+q4aqiqjHHWBW5zfExKVtRhk2=g@mail.gmail.com> |
Hello
I am creating following typedef
typedef int16_t SIG_RAW_DATA_T ;
%apply SIG_RAW_DATA_T * OUTPUT { SIG_RAW_DATA_T *P2PValue };
I get this warning
warning 453: Can't apply (SIG_RAW_DATA_T *OUTPUT). No typemaps are defined.
-debug-typedef output
3>SCOPES start =======================================
3>-------------------------------------------------------------
3>Type scope '' (02C803E8)
3> uint16_t -> unsigned short
3> int16_t -> short
3> uint32_t -> unsigned int
3> int32_t -> int
3> uint64_t -> unsigned long long
3> int64_t -> long long
3> int_fast8_t -> signed char
3> uint_fast8_t -> unsigned char
3> intptr_t -> int
3> uintptr_t -> unsigned int
3> uint_least8_t -> unsigned char
3> int_least8_t -> signed char
3> int8_t -> signed char
3> uint_least16_t -> unsigned short
3> int_least16_t -> short
3> int_fast16_t -> int
3> uint_fast16_t -> unsigned int
3> uint8_t -> unsigned char
3> int_least32_t -> int
3> uint_least32_t -> unsigned int
3> int_fast32_t -> int
3> uint_fast32_t -> unsigned int
3> int_least64_t -> long long
3> uint_least64_t -> unsigned long long
3> int_fast64_t -> long long
3> uint_fast64_t -> unsigned long long
3> OUT_TYPE_FLOAT -> float
3> intmax_t -> long long
3> uintmax_t -> unsigned long long
3> SIG_RAW_DATA_T -> int16_t
3> ACC_RAW_DATA_T -> int16_t
3> MAG_RAW_DATA_T -> int16_t
3> MIC_RAW_DATA_T -> int16_t
3>SCOPES finish =======================================
if I replace int16_t by short int this works.
as I see from stdint.i int16_t is typedef itself.
following works in C
typedef int abc;
typedef abc xyz;
anything I am doing wrong ? or it's bug
SWIG Version 4.0.1
Compiled with i686-w64-mingw32-g++ [i686-w64-mingw32]
Configured options: +pcre
Thank you
Prasad Mulay
_______________________________________________
Swig-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/swig-user