pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/time/devtodo Just use extern declarations of tgetent()...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c85d2e9a3852
branches:  trunk
changeset: 539437:c85d2e9a3852
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Wed Mar 05 18:30:59 2008 +0000

description:
Just use extern declarations of tgetent() and tgetnum() instead of
figuring out whether to include <termcap.h> or <curses.h> and <term.h>.

diffstat:

 time/devtodo/distinfo         |   4 ++--
 time/devtodo/patches/patch-ab |  20 ++++++++++----------
 2 files changed, 12 insertions(+), 12 deletions(-)

diffs (43 lines):

diff -r a76295f708f1 -r c85d2e9a3852 time/devtodo/distinfo
--- a/time/devtodo/distinfo     Wed Mar 05 18:01:50 2008 +0000
+++ b/time/devtodo/distinfo     Wed Mar 05 18:30:59 2008 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.11 2008/03/05 16:51:40 jlam Exp $
+$NetBSD: distinfo,v 1.12 2008/03/05 18:30:59 jlam Exp $
 
 SHA1 (devtodo-0.1.20.tar.gz) = 003067a12139d712dbb3706069e0950a93ecaaf4
 RMD160 (devtodo-0.1.20.tar.gz) = 389201318faa5ff6d302bd5f8c8f8b094664b45c
 Size (devtodo-0.1.20.tar.gz) = 390935 bytes
-SHA1 (patch-ab) = 32844dec69a473020103c9fd3425c60042dadf35
+SHA1 (patch-ab) = 88507dd1f88d13e3882f9a3a2d815172c132d0b5
 SHA1 (patch-ae) = 5f5ffb9571e73656eecdd3cb6cf72e26c193847e
diff -r a76295f708f1 -r c85d2e9a3852 time/devtodo/patches/patch-ab
--- a/time/devtodo/patches/patch-ab     Wed Mar 05 18:01:50 2008 +0000
+++ b/time/devtodo/patches/patch-ab     Wed Mar 05 18:30:59 2008 +0000
@@ -1,16 +1,16 @@
-$NetBSD: patch-ab,v 1.3 2005/06/01 02:40:43 snj Exp $
+$NetBSD: patch-ab,v 1.4 2008/03/05 18:30:59 jlam Exp $
 
---- src/todoterm.cc.orig       2005-05-31 19:12:33.000000000 -0700
-+++ src/todoterm.cc    2005-05-31 19:13:02.000000000 -0700
-@@ -6,7 +6,11 @@
+--- src/todoterm.cc.orig       2007-06-28 09:04:36.000000000 -0400
++++ src/todoterm.cc
+@@ -5,8 +5,9 @@
+ #include <iostream>
  #include <string>
  #include <stdexcept>
- #include <curses.h>
-+#ifdef __NetBSD__
-+#include <termcap.h>
-+#else
- #include <term.h>
-+#endif
+-#include <curses.h>
+-#include <term.h>
++
++extern "C" int tgetent(char *, const char *);
++extern "C" int tgetnum(const char *);
  
  static char info[2048];
  static bool term_initialized;



Home | Main Index | Thread Index | Old Index