Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyodide
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
pyodide
Commits
063600d6
Commit
063600d6
authored
Sep 05, 2018
by
Roman Yurchak
Committed by
GitHub
Sep 05, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #142 from mdboom/rename-function
MAINT: Rename python2js_int to _python2js
parents
56ee2e68
ef01fab6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/python2js.c
src/python2js.c
+5
-5
No files found.
src/python2js.c
View file @
063600d6
...
...
@@ -109,7 +109,7 @@ is_type_name(PyObject* x, const char* name)
}
static
int
python2js_int
(
PyObject
*
x
)
_python2js
(
PyObject
*
x
)
{
if
(
x
==
Py_None
)
{
return
hiwire_undefined
();
...
...
@@ -166,7 +166,7 @@ python2js_int(PyObject* x)
Py_INCREF
(
x
);
return
pyproxy_new
((
int
)
x
);
}
int
jsitem
=
python2js_int
(
pyitem
);
int
jsitem
=
_python2js
(
pyitem
);
if
(
jsitem
==
-
1
)
{
Py_DECREF
(
pyitem
);
hiwire_decref
(
jsarray
);
...
...
@@ -182,12 +182,12 @@ python2js_int(PyObject* x)
PyObject
*
pykey
,
*
pyval
;
Py_ssize_t
pos
=
0
;
while
(
PyDict_Next
(
x
,
&
pos
,
&
pykey
,
&
pyval
))
{
int
jskey
=
python2js_int
(
pykey
);
int
jskey
=
_python2js
(
pykey
);
if
(
jskey
==
-
1
)
{
hiwire_decref
(
jsdict
);
return
-
1
;
}
int
jsval
=
python2js_int
(
pyval
);
int
jsval
=
_python2js
(
pyval
);
if
(
jsval
==
-
1
)
{
hiwire_decref
(
jskey
);
hiwire_decref
(
jsdict
);
...
...
@@ -207,7 +207,7 @@ python2js_int(PyObject* x)
int
python2js
(
PyObject
*
x
)
{
int
result
=
python2js_int
(
x
);
int
result
=
_python2js
(
x
);
if
(
result
==
-
1
)
{
return
pythonexc2js
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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