File tree Expand file tree Collapse file tree 4 files changed +7
-5
lines changed
Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ SOURCES = $(SRC_DIR)/libparse_wrap.cpp $(SRC_DIR)/py_iostream.cpp $(SRC_DIR)/lib
66OBJECTS = $(patsubst % .cpp,% .o,$(SOURCES ) )
77HEADERS = $(SRC_DIR ) /libparse.h $(SRC_DIR ) /py_iostream.h $(SRC_DIR ) /stdio_filebuf.h
88
9- CXXFLAGS += -g -std=c++11 -I$(shell python3 -c "import sysconfig; print(sysconfig.get_path('include') )")
9+ CXXFLAGS += -Wpedantic - g -std=c++11 -I$(shell python3 -c "import sysconfig; print(sysconfig.get_path('include') )")
1010LDFLAGS += -g -L$(shell python3 -c "import sysconfig; print(sysconfig.get_path('stdlib') )")
1111EXT = .so
1212
Original file line number Diff line number Diff line change 1- __version__ = "0.2.2 "
1+ __version__ = "0.3.0 "
22
33if __name__ == "__main__" :
44 print (__version__ , end = "" )
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ template <class _CharT> void stdio_filebuf<_CharT>::imbue(const std::locale &__l
7171 __encoding_ = __cv_->encoding ();
7272 __always_noconv_ = __cv_->always_noconv ();
7373 if (__encoding_ > __limit)
74- std::__throw_runtime_error (" unsupported locale for standard io" );
74+ throw std::runtime_error (" unsupported locale for standard io" );
7575}
7676template <class _CharT > typename stdio_filebuf<_CharT>::int_type stdio_filebuf<_CharT>::underflow() { return __getchar (false ); }
7777template <class _CharT > typename stdio_filebuf<_CharT>::int_type stdio_filebuf<_CharT>::uflow() { return __getchar (true ); }
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ with pkgs; mkShell {
1010 twine
1111 ] ;
1212
13- CC = "clang" ;
14- CXX = "clang++" ;
13+ shellHook = ''
14+ export CC=${ clang_14 } /bin/clang
15+ export CXX=${ clang_14 } /bin/clang++
16+ '' ;
1517}
You can’t perform that action at this time.
0 commit comments