Module Name:    src
Committed By:   roy
Date:           Wed Sep 22 06:10:51 UTC 2010

Modified Files:
        src/lib/libterminfo: term.h term_private.h termcap.c termcap_map.c
            tparm.c

Log Message:
Our API just uses typedefs, so don't use the struct symbol which will avoid
any potential conflicts with userland.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libterminfo/term.h
cvs rdiff -u -r1.7 -r1.8 src/lib/libterminfo/term_private.h
cvs rdiff -u -r1.8 -r1.9 src/lib/libterminfo/termcap.c
cvs rdiff -u -r1.2 -r1.3 src/lib/libterminfo/termcap_map.c
cvs rdiff -u -r1.1 -r1.2 src/lib/libterminfo/tparm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libterminfo/term.h
diff -u src/lib/libterminfo/term.h:1.5 src/lib/libterminfo/term.h:1.6
--- src/lib/libterminfo/term.h:1.5	Fri Feb 26 00:09:00 2010
+++ src/lib/libterminfo/term.h	Wed Sep 22 06:10:51 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: term.h,v 1.5 2010/02/26 00:09:00 roy Exp $ */
+/* $NetBSD: term.h,v 1.6 2010/09/22 06:10:51 roy Exp $ */
 
 /*
  * Copyright (c) 2009, 2010 The NetBSD Foundation, Inc.
@@ -1449,7 +1449,7 @@
 #define zero_motion			 t_zero_motion(cur_term)
 
 #ifndef _TERMINFO
-typedef struct terminal {
+typedef struct {
 	int fildes;
 	/* We need to expose these so that the macros work */
 	const char *name;

Index: src/lib/libterminfo/term_private.h
diff -u src/lib/libterminfo/term_private.h:1.7 src/lib/libterminfo/term_private.h:1.8
--- src/lib/libterminfo/term_private.h:1.7	Tue Mar  2 14:11:11 2010
+++ src/lib/libterminfo/term_private.h	Wed Sep 22 06:10:51 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: term_private.h,v 1.7 2010/03/02 14:11:11 roy Exp $ */
+/* $NetBSD: term_private.h,v 1.8 2010/09/22 06:10:51 roy Exp $ */
 
 /*
  * Copyright (c) 2009, 2010 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
 #define VALID_NUMERIC(s) ((s) >= 0)
 #define VALID_STRING(s)  ((s) != CANCELLED_STRING && (s) != ABSENT_STRING)
 
-typedef struct termextra {
+typedef struct {
 	const char *id;
 	char type;
 	char flag;
@@ -79,7 +79,7 @@
 	const char *str;
 } TERMUSERDEF;
 
-typedef struct terminal {
+typedef struct {
 	int fildes;
 	/* We need to expose these so that the macros work */
 	const char *name;
@@ -125,14 +125,14 @@
 
 #define UINT16_T_MAX 0xffff
 
-typedef struct tbuf {
+typedef struct {
 	char *buf;
 	size_t buflen;
 	size_t bufpos;
 	size_t entries;
 } TBUF;
 
-typedef struct tic {
+typedef struct {
 	char *name;
 	char *alias;
 	char *desc;

Index: src/lib/libterminfo/termcap.c
diff -u src/lib/libterminfo/termcap.c:1.8 src/lib/libterminfo/termcap.c:1.9
--- src/lib/libterminfo/termcap.c:1.8	Sun Jul  4 07:30:33 2010
+++ src/lib/libterminfo/termcap.c	Wed Sep 22 06:10:51 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: termcap.c,v 1.8 2010/07/04 07:30:33 roy Exp $ */
+/* $NetBSD: termcap.c,v 1.9 2010/09/22 06:10:51 roy Exp $ */
 
 /*
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: termcap.c,v 1.8 2010/07/04 07:30:33 roy Exp $");
+__RCSID("$NetBSD: termcap.c,v 1.9 2010/09/22 06:10:51 roy Exp $");
 
 #include <assert.h>
 #include <ctype.h>
@@ -326,10 +326,12 @@
 	return NULL;
 }
 
-static struct def_info {
+typedef struct {
 	const char *name;
 	const char *cap;
-} def_infos[] = {
+} DEF_INFO;
+
+static DEF_INFO def_infos[] = {
 	{ "bel",	"^G" },
 	{ "cr",		"^M" },
 	{ "cud1",	"^J" },

Index: src/lib/libterminfo/termcap_map.c
diff -u src/lib/libterminfo/termcap_map.c:1.2 src/lib/libterminfo/termcap_map.c:1.3
--- src/lib/libterminfo/termcap_map.c:1.2	Fri Feb 12 10:18:56 2010
+++ src/lib/libterminfo/termcap_map.c	Wed Sep 22 06:10:51 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: termcap_map.c,v 1.2 2010/02/12 10:18:56 roy Exp $ */
+/* $NetBSD: termcap_map.c,v 1.3 2010/09/22 06:10:51 roy Exp $ */
 
 /*
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -28,9 +28,9 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: termcap_map.c,v 1.2 2010/02/12 10:18:56 roy Exp $");
+__RCSID("$NetBSD: termcap_map.c,v 1.3 2010/09/22 06:10:51 roy Exp $");
 
-typedef struct termcap_entry {
+typedef struct {
 	const char id[3];
 	int ti;
 } TENTRY;

Index: src/lib/libterminfo/tparm.c
diff -u src/lib/libterminfo/tparm.c:1.1 src/lib/libterminfo/tparm.c:1.2
--- src/lib/libterminfo/tparm.c:1.1	Wed Feb  3 15:16:32 2010
+++ src/lib/libterminfo/tparm.c	Wed Sep 22 06:10:51 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: tparm.c,v 1.1 2010/02/03 15:16:32 roy Exp $ */
+/* $NetBSD: tparm.c,v 1.2 2010/09/22 06:10:51 roy Exp $ */
 
 /*
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: tparm.c,v 1.1 2010/02/03 15:16:32 roy Exp $");
+__RCSID("$NetBSD: tparm.c,v 1.2 2010/09/22 06:10:51 roy Exp $");
 
 #include <assert.h>
 #include <ctype.h>
@@ -42,13 +42,13 @@
 
 static TERMINAL *dumbterm; /* For non thread safe functions */
 
-typedef struct tpstack {
+typedef struct {
 	long nums[20];
 	char *strings[20];
 	size_t offset;
 } TPSTACK;
 
-typedef struct tpvar {
+typedef struct {
 	long num;
 	char *string;
 } TPVAR;

Reply via email to