File: stdargs.xs

package info (click to toggle)
libdevel-callparser-perl 0.002-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 292 kB
  • sloc: perl: 73; sh: 4; makefile: 3
file content (74 lines) | stat: -rw-r--r-- 1,583 bytes parent folder | download | duplicates (4)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#define PERL_NO_GET_CONTEXT 1
#include "EXTERN.h"
#include "perl.h"
#include "stdargs_callparser1.h"
#include "XSUB.h"

static OP *THX_pa_parenthesised(pTHX_ GV *namegv, SV *psobj, U32 *flags_p)
{
	PERL_UNUSED_ARG(namegv);
	PERL_UNUSED_ARG(psobj);
	return parse_args_parenthesised(flags_p);
}

static OP *THX_pa_nullary(pTHX_ GV *namegv, SV *psobj, U32 *flags_p)
{
	PERL_UNUSED_ARG(namegv);
	PERL_UNUSED_ARG(psobj);
	return parse_args_nullary(flags_p);
}

static OP *THX_pa_unary(pTHX_ GV *namegv, SV *psobj, U32 *flags_p)
{
	PERL_UNUSED_ARG(namegv);
	PERL_UNUSED_ARG(psobj);
	return parse_args_unary(flags_p);
}

static OP *THX_pa_list(pTHX_ GV *namegv, SV *psobj, U32 *flags_p)
{
	PERL_UNUSED_ARG(namegv);
	PERL_UNUSED_ARG(psobj);
	return parse_args_list(flags_p);
}

static OP *THX_pa_block_list(pTHX_ GV *namegv, SV *psobj, U32 *flags_p)
{
	PERL_UNUSED_ARG(namegv);
	PERL_UNUSED_ARG(psobj);
	return parse_args_block_list(flags_p);
}

MODULE = t::stdargs PACKAGE = t::stdargs

PROTOTYPES: DISABLE

void
cv_set_call_parser_parenthesised(CV *cv)
PROTOTYPE: $
CODE:
	cv_set_call_parser(cv, THX_pa_parenthesised, &PL_sv_undef);

void
cv_set_call_parser_nullary(CV *cv)
PROTOTYPE: $
CODE:
	cv_set_call_parser(cv, THX_pa_nullary, &PL_sv_undef);

void
cv_set_call_parser_unary(CV *cv)
PROTOTYPE: $
CODE:
	cv_set_call_parser(cv, THX_pa_unary, &PL_sv_undef);

void
cv_set_call_parser_list(CV *cv)
PROTOTYPE: $
CODE:
	cv_set_call_parser(cv, THX_pa_list, &PL_sv_undef);

void
cv_set_call_parser_block_list(CV *cv)
PROTOTYPE: $
CODE:
	cv_set_call_parser(cv, THX_pa_block_list, &PL_sv_undef);