Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
a8aa1998
Commit
a8aa1998
authored
Nov 23, 2015
by
Damien George
Browse files
extmod/modure: Use correct integer type for n_args argument.
parent
44e6e348
Changes
1
Hide whitespace changes
Inline
Side-by-side
extmod/modure.c
View file @
a8aa1998
...
...
@@ -115,17 +115,17 @@ STATIC mp_obj_t re_exec(bool is_anchored, uint n_args, const mp_obj_t *args) {
return
match
;
}
STATIC
mp_obj_t
re_match
(
uint
n_args
,
const
mp_obj_t
*
args
)
{
STATIC
mp_obj_t
re_match
(
mp_
uint
_t
n_args
,
const
mp_obj_t
*
args
)
{
return
re_exec
(
true
,
n_args
,
args
);
}
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN
(
re_match_obj
,
2
,
4
,
re_match
);
STATIC
mp_obj_t
re_search
(
uint
n_args
,
const
mp_obj_t
*
args
)
{
STATIC
mp_obj_t
re_search
(
mp_
uint
_t
n_args
,
const
mp_obj_t
*
args
)
{
return
re_exec
(
false
,
n_args
,
args
);
}
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN
(
re_search_obj
,
2
,
4
,
re_search
);
STATIC
mp_obj_t
re_split
(
uint
n_args
,
const
mp_obj_t
*
args
)
{
STATIC
mp_obj_t
re_split
(
mp_
uint
_t
n_args
,
const
mp_obj_t
*
args
)
{
mp_obj_re_t
*
self
=
args
[
0
];
Subject
subj
;
mp_uint_t
len
;
...
...
@@ -182,7 +182,7 @@ STATIC const mp_obj_type_t re_type = {
.
locals_dict
=
(
mp_obj_t
)
&
re_locals_dict
,
};
STATIC
mp_obj_t
mod_re_compile
(
uint
n_args
,
const
mp_obj_t
*
args
)
{
STATIC
mp_obj_t
mod_re_compile
(
mp_
uint
_t
n_args
,
const
mp_obj_t
*
args
)
{
const
char
*
re_str
=
mp_obj_str_get_str
(
args
[
0
]);
int
size
=
re1_5_sizecode
(
re_str
);
if
(
size
==
-
1
)
{
...
...
@@ -215,12 +215,12 @@ STATIC mp_obj_t mod_re_exec(bool is_anchored, uint n_args, const mp_obj_t *args)
return
match
;
}
STATIC
mp_obj_t
mod_re_match
(
uint
n_args
,
const
mp_obj_t
*
args
)
{
STATIC
mp_obj_t
mod_re_match
(
mp_
uint
_t
n_args
,
const
mp_obj_t
*
args
)
{
return
mod_re_exec
(
true
,
n_args
,
args
);
}
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN
(
mod_re_match_obj
,
2
,
4
,
mod_re_match
);
STATIC
mp_obj_t
mod_re_search
(
uint
n_args
,
const
mp_obj_t
*
args
)
{
STATIC
mp_obj_t
mod_re_search
(
mp_
uint
_t
n_args
,
const
mp_obj_t
*
args
)
{
return
mod_re_exec
(
false
,
n_args
,
args
);
}
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN
(
mod_re_search_obj
,
2
,
4
,
mod_re_search
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment