Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
06bc6875
Commit
06bc6875
authored
Jun 27, 2019
by
gsamain
Committed by
Xavier Thompson
Aug 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Const-ness of state getters in acthon interface
parent
353defdc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
Cython/Compiler/Builtin.py
Cython/Compiler/Builtin.py
+4
-0
Cython/Utility/CyObjects.cpp
Cython/Utility/CyObjects.cpp
+4
-4
No files found.
Cython/Compiler/Builtin.py
View file @
06bc6875
...
...
@@ -412,6 +412,7 @@ def inject_acthon_interfaces(self):
result_scope
.
var_entries
.
append
(
result_pushVoidStar_entry
)
result_getVoidStar_type
=
PyrexTypes
.
CFuncType
(
PyrexTypes
.
c_void_ptr_type
,
[],
nogil
=
1
)
result_getVoidStar_type
.
is_const_method
=
1
result_getVoidStar_entry
=
result_scope
.
declare
(
"getVoidStarResult"
,
"getVoidStarResult"
,
result_getVoidStar_type
,
None
,
"extern"
)
result_getVoidStar_entry
.
is_cfunction
=
1
...
...
@@ -427,6 +428,7 @@ def inject_acthon_interfaces(self):
result_scope
.
var_entries
.
append
(
result_pushInt_entry
)
result_getInt_type
=
PyrexTypes
.
CFuncType
(
PyrexTypes
.
c_int_type
,
[],
nogil
=
1
)
result_getInt_type
.
is_const_method
=
1
result_getInt_entry
=
result_scope
.
declare
(
"getIntResult"
,
"getIntResult"
,
result_getInt_type
,
None
,
"extern"
)
result_getInt_entry
.
is_cfunction
=
1
...
...
@@ -472,6 +474,7 @@ def inject_acthon_interfaces(self):
sync_entry
.
is_type
=
1
sync_isActivable_type
=
PyrexTypes
.
CFuncType
(
PyrexTypes
.
c_bint_type
,
[],
nogil
=
1
)
sync_isActivable_type
.
is_const_method
=
1
sync_isActivable_entry
=
sync_scope
.
declare
(
"isActivable"
,
"isActivable"
,
sync_isActivable_type
,
None
,
"extern"
)
sync_isActivable_entry
.
is_cfunction
=
1
...
...
@@ -479,6 +482,7 @@ def inject_acthon_interfaces(self):
sync_scope
.
var_entries
.
append
(
sync_isActivable_entry
)
sync_isCompleted_type
=
PyrexTypes
.
CFuncType
(
PyrexTypes
.
c_bint_type
,
[],
nogil
=
1
)
sync_isCompleted_type
.
is_const_method
=
1
sync_isCompleted_entry
=
sync_scope
.
declare
(
"isCompleted"
,
"isCompleted"
,
sync_isCompleted_type
,
None
,
"extern"
)
sync_isCompleted_entry
.
is_cfunction
=
1
...
...
Cython/Utility/CyObjects.cpp
View file @
06bc6875
...
...
@@ -77,9 +77,9 @@
struct
ActhonResultInterface
:
public
CyObject
{
virtual
void
pushVoidStarResult
(
void
*
result
)
=
0
;
virtual
void
*
getVoidStarResult
()
=
0
;
virtual
void
*
getVoidStarResult
()
const
=
0
;
virtual
void
pushIntResult
(
int
result
)
=
0
;
virtual
int
getIntResult
()
=
0
;
virtual
int
getIntResult
()
const
=
0
;
operator
int
()
{
return
this
->
getIntResult
();
}
operator
void
*
()
{
return
this
->
getVoidStarResult
();
}
};
...
...
@@ -87,8 +87,8 @@
struct
ActhonMessageInterface
;
struct
ActhonSyncInterface
:
public
CyObject
{
virtual
int
isActivable
()
=
0
;
virtual
int
isCompleted
()
=
0
;
virtual
int
isActivable
()
const
=
0
;
virtual
int
isCompleted
()
const
=
0
;
virtual
void
insertActivity
(
ActhonMessageInterface
*
msg
)
=
0
;
virtual
void
removeActivity
(
ActhonMessageInterface
*
msg
)
=
0
;
};
...
...
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