aboutsummaryrefslogtreecommitdiffstats
path: root/common/pybindings.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-06-21 16:16:58 +0200
committerClifford Wolf <clifford@clifford.at>2018-06-21 16:16:58 +0200
commit4fefdbd57c52d6373456bd379e3e54df770e1945 (patch)
tree668c93671338f4482b163c2e8f40298cbedcb2c0 /common/pybindings.cc
parent417e67938c12be20a1c314d42386ede0ad8993a7 (diff)
downloadnextpnr-4fefdbd57c52d6373456bd379e3e54df770e1945.tar.gz
nextpnr-4fefdbd57c52d6373456bd379e3e54df770e1945.tar.bz2
nextpnr-4fefdbd57c52d6373456bd379e3e54df770e1945.zip
Cleanup parse_json_file API, some other cleanups
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'common/pybindings.cc')
-rw-r--r--common/pybindings.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/pybindings.cc b/common/pybindings.cc
index 26e8bf69..02dc2395 100644
--- a/common/pybindings.cc
+++ b/common/pybindings.cc
@@ -52,8 +52,7 @@ void parse_json_shim(std::string filename, Context &d)
std::ifstream inf(filename);
if (!inf)
throw std::runtime_error("failed to open file " + filename);
- std::istream *ifp = &inf;
- parse_json_file(ifp, filename, &d);
+ parse_json_file(inf, filename, &d);
}
// Create a new Chip and load design from json file