File: typemap

package info (click to toggle)
libtime-moment-perl 0.41-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,024 kB
  • ctags: 1,354
  • sloc: perl: 6,312; ansic: 2,936; makefile: 3
file content (27 lines) | stat: -rw-r--r-- 399 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
27
TYPEMAP
I64V                T_I64V

moment_t            T_MOMENT
const moment_t      T_MOMENT

moment_t *          T_MOMENT_PTR
const moment_t *    T_MOMENT_PTR


INPUT
T_I64V
    $var = SvI64V($arg);

T_MOMENT
    $var = sv_2moment($arg, \"$var\");

T_MOMENT_PTR
    $var = sv_2moment_ptr($arg, \"$var\");

OUTPUT
T_I64V
    $arg = newSVi64v($var);

T_MOMENT
    $arg = newSVmoment(&$var, stash);