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 8 months ago
parent 6fe1a7c5fb
commit 01b90fe0ef
  1. 4
      CMakeLists.txt
  2. 8
      DemoApp.cpp
  3. 5
      HorizontalTilingWindowManager.cpp
  4. 2
      PtyWindow.cpp
  5. 3
      README.md
  6. 2
      SingleUserInput.cpp
  7. 4
      TilingWindowManager.cpp
  8. 5
      VerticalTilingWindowManager.cpp
  9. 4
      Window.cpp

@ -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

@ -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>

@ -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>

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

@ -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

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

@ -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>

@ -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>

@ -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
{

Loading…
Cancel
Save