Regarding your first example: there's no compatibility problem. "A typedef declaration does not introduce a new type, only a synonym for the type so specified." If you didn't add qualifications, they are one and the same type (an alias).
In reply to Re^3: perlXS assignment from incompatible pointer type
by Anonymous Monk
in thread perlXS assignment from incompatible pointer type (works)
by kopolov
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |