closes #17: own headers are not system headers

This was stupid as it prevented the compiler from doing code analysis
and discovering the bug leading to a segmentation fault when using
compiler optimization (see christian/shellipt#44).

Long overdue update of `README.md`.
master
Christian Burger 2022-05-28 12:39:03 +02:00
parent 6fe1a7c5fb
commit 01b90fe0ef
9 changed files with 20 additions and 17 deletions

View File

@ -20,8 +20,8 @@ add_library(kNCurses Window.cpp PtyWindow.cpp SingleUserInput.cpp Debug.cpp
### let's be annoyingly pedantic ### let's be annoyingly pedantic
target_compile_options(kNCurses PRIVATE "-Wall" "-Wextra" "-Werror" "-pedantic") target_compile_options(kNCurses PRIVATE "-Wall" "-Wextra" "-Werror" "-pedantic")
### path to own system includes ### path to own includes
include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/include") include_directories("${CMAKE_SOURCE_DIR}/include")
### libraries ### libraries

View File

@ -3,11 +3,11 @@
*/ */
#include "DemoApp.hpp" #include "DemoApp.hpp"
#include "kNCurses/VerticalTilingWindowManager.hpp"
#include "kNCurses/HorizontalTilingWindowManager.hpp"
#include "kNCurses/Window.hpp"
#include "kNCurses/PtyWindow.hpp"
#include "Debug.hpp" #include "Debug.hpp"
#include <kNCurses/VerticalTilingWindowManager.hpp>
#include <kNCurses/HorizontalTilingWindowManager.hpp>
#include <kNCurses/Window.hpp>
#include <kNCurses/PtyWindow.hpp>
#include <unistd.h> #include <unistd.h>
#include <utmp.h> #include <utmp.h>

View File

@ -2,9 +2,10 @@
* @author Christian Burger (christian@krikkel.de) * @author Christian Burger (christian@krikkel.de)
*/ */
#include "kNCurses/HorizontalTilingWindowManager.hpp"
#include "kNCurses/Window.hpp"
#include "Debug.hpp" #include "Debug.hpp"
#include <kNCurses/HorizontalTilingWindowManager.hpp>
#include <kNCurses/Window.hpp>
#include <ncursesw/ncurses.h> #include <ncursesw/ncurses.h>
#include <algorithm> #include <algorithm>

View File

@ -2,7 +2,7 @@
* @author Christian Burger (christian@krikkel.de) * @author Christian Burger (christian@krikkel.de)
*/ */
#include <kNCurses/PtyWindow.hpp> #include "kNCurses/PtyWindow.hpp"
#include "Debug.hpp" #include "Debug.hpp"
#include <cstdio> #include <cstdio>

View File

@ -3,7 +3,8 @@
**WARNING**: This is a prototype. Things will probably break; in spectacular **WARNING**: This is a prototype. Things will probably break; in spectacular
ways. ways.
`NCursesPtyWindow` provides a pseudo terminal in a ncurses window. `kNCurses` extends the existing C++ library shipping with ncurses and provides a
tiling window manager and a pseudo terminal in a ncurses window.
## Building ## Building

View File

@ -2,7 +2,7 @@
* @author Christian Burger (christian@krikkel.de) * @author Christian Burger (christian@krikkel.de)
*/ */
#include <kNCurses/SingleUserInput.hpp> #include "kNCurses/SingleUserInput.hpp"
#include "Debug.hpp" #include "Debug.hpp"
#include <vterm.h> #include <vterm.h>

View File

@ -2,8 +2,8 @@
* @author Christian Burger (christian@krikkel.de) * @author Christian Burger (christian@krikkel.de)
*/ */
#include <kNCurses/TilingWindowManager.hpp> #include "kNCurses/TilingWindowManager.hpp"
#include <kNCurses/Window.hpp> #include "kNCurses/Window.hpp"
#include "Debug.hpp" #include "Debug.hpp"
#include <ncursesw/ncurses.h> #include <ncursesw/ncurses.h>

View File

@ -2,9 +2,10 @@
* @author Christian Burger (christian@krikkel.de) * @author Christian Burger (christian@krikkel.de)
*/ */
#include "kNCurses/VerticalTilingWindowManager.hpp"
#include "kNCurses/Window.hpp"
#include "Debug.hpp" #include "Debug.hpp"
#include <kNCurses/VerticalTilingWindowManager.hpp>
#include <kNCurses/Window.hpp>
#include <ncursesw/ncurses.h> #include <ncursesw/ncurses.h>
#include <algorithm> #include <algorithm>

View File

@ -2,8 +2,8 @@
* @author Christian Burger (christian@krikkel.de) * @author Christian Burger (christian@krikkel.de)
*/ */
#include <kNCurses/Window.hpp> #include "kNCurses/Window.hpp"
#include <kNCurses/VerticalTilingWindowManager.hpp> #include "kNCurses/VerticalTilingWindowManager.hpp"
namespace krikkel::NCurses namespace krikkel::NCurses
{ {