From 8a93b3ce695003d07c8d8e4c71153c0130372c4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 20 Jul 2020 03:59:10 +0200 Subject: Cleanup for cpp. --- module/vulgar/termios.scm | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'module/vulgar/termios.scm') diff --git a/module/vulgar/termios.scm b/module/vulgar/termios.scm index 3fe82f92..62212122 100644 --- a/module/vulgar/termios.scm +++ b/module/vulgar/termios.scm @@ -7,6 +7,7 @@ :use-module (ice-9 format) :use-module (ice-9 rdelim) :use-module (srfi srfi-9) ; records + :use-module (c cpp) :use-module (util) :export (make-termios copy-termios @@ -14,16 +15,7 @@ -;;; Constants, TODO, auto parse these from -;; /usr/include/bits/termios.h - -(define-public ECHO 0000010) -(define-public ICANON 0000002) - -;; @var{when} values -(define-public TCSANOW 0) -(define-public TCSADRAIN 1) -(define-public TCSAFLUSH 2) +(include# "/usr/include/termios.h" define-public) -- cgit v1.2.3