File: typemap

package info (click to toggle)
libgraphics-tiff-perl 7-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 320 kB
  • sloc: perl: 3,777; ansic: 4; makefile: 3
file content (26 lines) | stat: -rw-r--r-- 456 bytes parent folder | download
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_IV
uint32			T_IV
uint64			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);