File: typemap

package info (click to toggle)
libgraphics-tiff-perl 21-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 332 kB
  • sloc: perl: 3,783; ansic: 10; makefile: 3
file content (26 lines) | stat: -rw-r--r-- 459 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
TYPEMAP

TIFF			T_TIFF
TIFF *                  T_PTRREF
uint16_t		T_IV
uint32_t		T_IV
uint64_t		T_IV
tmsize_t                T_IV
toff_t                  T_IV
void *                  T_PV


INPUT

T_TIFF
   if (sv_derived_from($arg, \"Graphics::TIFF::Image\")) {
       $var = INT2PTR (TIFF, SvIV ((SV*)SvRV ($arg)));
   } else {
       croak(\"$var is not of type Graphics::TIFF::Image\");
   }


OUTPUT

T_TIFF
   sv_setref_pv($arg, \"TIFF\", (void*)$var);