File: typemap

package info (click to toggle)
libtext-aspell-perl 0.09-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 148 kB
  • sloc: perl: 91; makefile: 5
file content (25 lines) | stat: -rw-r--r-- 704 bytes parent folder | download | duplicates (3)
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
# $Id: typemap,v 1.3 2002/08/26 02:40:25 moseley Exp $

TYPEMAP
Aspell_object * O_OBJECT

# From: "perlobject.map"  Dean Roehrich, version 19960302
# O_OBJECT      -> link an opaque C or C++ object to a blessed Perl object.

OUTPUT

# The Perl object is blessed into 'CLASS', which should be a
# char* having the name of the package for the blessing.
O_OBJECT
        sv_setref_pv( $arg, CLASS, (void*)$var );

INPUT

O_OBJECT
        if( sv_isobject($arg) && (SvTYPE(SvRV($arg)) == SVt_PVMG) )
                $var = INT2PTR ($type, SvIV (SvRV ($arg)));
        else{
                warn( \"${Package}::$func_name() -- $var is not a blessed SV reference\" );
                XSRETURN_UNDEF;
        }