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`.
This commit is contained in:
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
target_compile_options(kNCurses PRIVATE "-Wall" "-Wextra" "-Werror" "-pedantic")
### path to own system includes
include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/include")
### path to own includes
include_directories("${CMAKE_SOURCE_DIR}/include")
### libraries

View file

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

View file

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

View file

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

View file

@ -3,7 +3,8 @@
**WARNING**: This is a prototype. Things will probably break; in spectacular
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

View file

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

View file

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

View file

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

View file

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