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
af51bdaf
Commit
af51bdaf
authored
Feb 23, 2012
by
Baruch Sterin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pyabc: silenced warnings in gcc
parent
a87a3b4e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
7 deletions
+23
-7
src/python/pyabc.i
+4
-6
src/python/setup.py
+19
-1
No files found.
src/python/pyabc.i
View file @
af51bdaf
...
...
@@ -137,28 +137,28 @@ int n_cex_pis()
{
Abc_Frame_t* pAbc = Abc_FrameGetGlobalFrame();
return Abc_FrameReadCex(pAbc) ? Abc_FrameReadCexPiNum(
Abc_FrameReadCex(pAbc)
) : -1;
return Abc_FrameReadCex(pAbc) ? Abc_FrameReadCexPiNum(
pAbc
) : -1;
}
int n_cex_regs()
{
Abc_Frame_t* pAbc = Abc_FrameGetGlobalFrame();
return Abc_FrameReadCex(pAbc) ? Abc_FrameReadCexRegNum(
Abc_FrameReadCex(pAbc)
) : -1;
return Abc_FrameReadCex(pAbc) ? Abc_FrameReadCexRegNum(
pAbc
) : -1;
}
int cex_po()
{
Abc_Frame_t* pAbc = Abc_FrameGetGlobalFrame();
return Abc_FrameReadCex(pAbc) ? Abc_FrameReadCexPo(
Abc_FrameReadCex(pAbc)
) : -1;
return Abc_FrameReadCex(pAbc) ? Abc_FrameReadCexPo(
pAbc
) : -1;
}
int cex_frame()
{
Abc_Frame_t* pAbc = Abc_FrameGetGlobalFrame();
return Abc_FrameReadCex(pAbc) ? Abc_FrameReadCexFrame(
Abc_FrameReadCex(pAbc)
) : -1;
return Abc_FrameReadCex(pAbc) ? Abc_FrameReadCexFrame(
pAbc
) : -1;
}
int n_phases()
...
...
@@ -217,8 +217,6 @@ Abc_Cex_t* _cex_get_vec(int i)
void _cex_put(Abc_Cex_t* pCex)
{
Abc_Frame_t* pAbc = Abc_FrameGetGlobalFrame();
if ( pCex )
{
pCex = Abc_CexDup(pCex, -1);
...
...
src/python/setup.py
View file @
af51bdaf
import
sys
import
sysconfig
from
distutils.core
import
setup
,
Extension
from
distutils.sysconfig
import
get_config_vars
from
distutils
import
util
from
distutils.command.build_ext
import
build_ext
define_macros
=
[]
libraries
=
[]
...
...
@@ -31,6 +33,21 @@ else:
libraries
.
append
(
'readline'
)
library_dirs
.
append
(
'./../../'
)
# ugly hack to silence strict-prototype warnings
class
build_ext_subclass
(
build_ext
):
def
build_extensions
(
self
):
CC
=
sysconfig
.
get_config_var
(
"CC"
)
if
self
.
compiler
.
compiler_type
==
'unix'
and
(
'gcc'
in
CC
or
'g++'
in
CC
):
for
e
in
self
.
extensions
:
e
.
extra_compile_args
.
append
(
'-Wno-strict-prototypes'
)
build_ext
.
build_extensions
(
self
)
ext
=
Extension
(
'_pyabc'
,
src_file
,
...
...
@@ -44,5 +61,6 @@ setup(
name
=
'pyabc'
,
version
=
'1.0'
,
ext_modules
=
[
ext
],
py_modules
=
[
'pyabc'
,
'getch'
,
'pyabc_split'
,
'redirect'
,
'reachx_cmd'
]
py_modules
=
[
'pyabc'
,
'getch'
,
'pyabc_split'
,
'redirect'
,
'reachx_cmd'
],
cmdclass
=
{
'build_ext'
:
build_ext_subclass
}
)
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