Skip to content

Commit 15fbd65

Browse files
committed
Confirmed on Linux, bump version
1 parent b3b7579 commit 15fbd65

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SOURCES = $(SRC_DIR)/libparse_wrap.cpp $(SRC_DIR)/py_iostream.cpp $(SRC_DIR)/lib
66
OBJECTS = $(patsubst %.cpp,%.o,$(SOURCES))
77
HEADERS = $(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'))")
1010
LDFLAGS += -g -L$(shell python3 -c "import sysconfig; print(sysconfig.get_path('stdlib'))")
1111
EXT = .so
1212

libparse/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.2.2"
1+
__version__ = "0.3.0"
22

33
if __name__ == "__main__":
44
print(__version__, end="")

libparse/stdio_filebuf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}
7676
template <class _CharT> typename stdio_filebuf<_CharT>::int_type stdio_filebuf<_CharT>::underflow() { return __getchar(false); }
7777
template <class _CharT> typename stdio_filebuf<_CharT>::int_type stdio_filebuf<_CharT>::uflow() { return __getchar(true); }

shell.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)