Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
c2ccf238
Commit
c2ccf238
authored
Oct 28, 2014
by
Baruch Sterin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pyabc: handle a few corner cases
parent
4edc0234
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/python/pyabc.i
+8
-2
No files found.
src/python/pyabc.i
View file @
c2ccf238
...
@@ -744,15 +744,21 @@ void _set_death_signal();
...
@@ -744,15 +744,21 @@ void _set_death_signal();
class _Cex(object):
class _Cex(object):
def __new__(cls, pCex):
def __new__(cls, pCex):
if not pCex:
if not pCex:
return None
return None
if int(pCex)==1:
return True
return object.__new__(cls)
return object.__new__(cls)
def __init__(self, pCex):
def __init__(self, pCex):
self.pCex = pCex
self.pCex = pCex
def __del__(self):
def __del__(self):
_cex_free(self.pCex)
if _cex_free:
_cex_free(self.pCex)
def n_regs(self):
def n_regs(self):
return _cex_n_regs(self.pCex)
return _cex_n_regs(self.pCex)
...
...
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