Source-Changes-HG archive

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

[src/trunk]: src/lib/libterm Split private data structure into separate file.



details:   https://anonhg.NetBSD.org/src/rev/4ad7d9597e29
branches:  trunk
changeset: 485072:4ad7d9597e29
user:      blymn <blymn%NetBSD.org@localhost>
date:      Tue Apr 18 14:42:42 2000 +0000

description:
Split private data structure into separate file.

diffstat:

 lib/libterm/termcap.c         |  13 +++----------
 lib/libterm/termcap_private.h |  41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+), 10 deletions(-)

diffs (79 lines):

diff -r 7cf82a27cdb8 -r 4ad7d9597e29 lib/libterm/termcap.c
--- a/lib/libterm/termcap.c     Tue Apr 18 12:23:01 2000 +0000
+++ b/lib/libterm/termcap.c     Tue Apr 18 14:42:42 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: termcap.c,v 1.22 1999/09/20 04:48:05 lukem Exp $       */
+/*     $NetBSD: termcap.c,v 1.23 2000/04/18 14:42:42 blymn Exp $       */
 
 /*
  * Copyright (c) 1980, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)termcap.c  8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: termcap.c,v 1.22 1999/09/20 04:48:05 lukem Exp $");
+__RCSID("$NetBSD: termcap.c,v 1.23 2000/04/18 14:42:42 blymn Exp $");
 #endif
 #endif /* not lint */
 
@@ -53,14 +53,7 @@
 #include <termcap.h>
 #include <errno.h>
 #include "pathnames.h"
-
-/* internal definition of tinfo structure - just a pointer to the malloc'ed
- * buffer for now.
- */
-struct tinfo
-{
-       char *info;
-};
+#include "termcap_private.h"
 
 /*
  * termcap - routines for dealing with the terminal capability data base
diff -r 7cf82a27cdb8 -r 4ad7d9597e29 lib/libterm/termcap_private.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libterm/termcap_private.h     Tue Apr 18 14:42:42 2000 +0000
@@ -0,0 +1,41 @@
+/*     $NetBSD: termcap_private.h,v 1.1 2000/04/18 14:42:42 blymn Exp $        */
+
+/*-
+ * Copyright (c) 1998-1999 Brett Lymn
+ *                         (blymn%baea.com.au@localhost, brett_lymn%yahoo.com.au@localhost)
+ * All rights reserved.
+ *
+ * This code has been donated to The NetBSD Foundation by the Author.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. The name of the author may not be used to endorse or promote products
+ *    derived from this software withough specific prior written permission
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ *
+ */
+
+/* internal definition of tinfo structure - just a pointer to the malloc'ed
+ * buffer for now.
+ */
+struct tinfo
+{
+       char *info;
+};
+
+
+



Home | Main Index | Thread Index | Old Index