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
a966927c
Commit
a966927c
authored
Sep 28, 2018
by
Roman Yurchak
Committed by
GitHub
Sep 28, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #197 from mdboom/faster-way-to-handle-bound-method-name
No need to copy bound method name
parents
94e935b4
5b84311d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
src/jsproxy.c
src/jsproxy.c
+2
-4
No files found.
src/jsproxy.c
View file @
a966927c
...
...
@@ -416,12 +416,10 @@ JsProxy_cnew(int idobj)
//
// A special class for bound methods
const
size_t
BOUND_METHOD_NAME_SIZE
=
256
;
typedef
struct
{
PyObject_HEAD
int
this_
;
c
har
name
[
BOUND_METHOD_NAME_SIZE
]
;
c
onst
char
*
name
;
}
JsBoundMethod
;
static
void
...
...
@@ -469,7 +467,7 @@ JsBoundMethod_cnew(int this_, const char* name)
JsBoundMethod
*
self
;
self
=
(
JsBoundMethod
*
)
JsBoundMethodType
.
tp_alloc
(
&
JsBoundMethodType
,
0
);
self
->
this_
=
hiwire_incref
(
this_
);
s
trncpy
(
self
->
name
,
name
,
BOUND_METHOD_NAME_SIZE
)
;
s
elf
->
name
=
name
;
return
(
PyObject
*
)
self
;
}
...
...
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