Module Name:    src
Committed By:   christos
Date:           Sun Feb 17 01:26:20 UTC 2013

Modified Files:
        src/usr.bin/xlint/lint1: decl.c lint1.h

Log Message:
rename enum_t to avoid rpc/types.h lossage.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/usr.bin/xlint/lint1/decl.c
cvs rdiff -u -r1.25 -r1.26 src/usr.bin/xlint/lint1/lint1.h

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

Modified files:

Index: src/usr.bin/xlint/lint1/decl.c
diff -u src/usr.bin/xlint/lint1/decl.c:1.54 src/usr.bin/xlint/lint1/decl.c:1.55
--- src/usr.bin/xlint/lint1/decl.c:1.54	Tue Mar 27 15:24:03 2012
+++ src/usr.bin/xlint/lint1/decl.c	Sat Feb 16 20:26:19 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: decl.c,v 1.54 2012/03/27 19:24:03 christos Exp $ */
+/* $NetBSD: decl.c,v 1.55 2013/02/17 01:26:19 christos Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: decl.c,v 1.54 2012/03/27 19:24:03 christos Exp $");
+__RCSID("$NetBSD: decl.c,v 1.55 2013/02/17 01:26:19 christos Exp $");
 #endif
 
 #include <sys/param.h>
@@ -1662,7 +1662,7 @@ mktag(sym_t *tag, tspec_t kind, int decl
 			tp->t_str->stag = tag;
 		} else {
 			tp->t_isenum = 1;
-			tp->t_enum = getblk(sizeof (enum_t));
+			tp->t_enum = getblk(sizeof(*tp->t_enum));
 			tp->t_enum->etag = tag;
 		}
 		/* ist unvollstaendiger Typ */

Index: src/usr.bin/xlint/lint1/lint1.h
diff -u src/usr.bin/xlint/lint1/lint1.h:1.25 src/usr.bin/xlint/lint1/lint1.h:1.26
--- src/usr.bin/xlint/lint1/lint1.h:1.25	Thu Jun 23 21:10:31 2011
+++ src/usr.bin/xlint/lint1/lint1.h	Sat Feb 16 20:26:19 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: lint1.h,v 1.25 2011/06/24 01:10:31 christos Exp $ */
+/* $NetBSD: lint1.h,v 1.26 2013/02/17 01:26:19 christos Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -137,7 +137,7 @@ typedef	struct {
 	struct	sym *elem;	/* list of enumerators */
 	struct	sym *etag;	/* symbol table entry of tag */
 	struct	sym *etdef;	/* symbol table entry of first typename */
-} enum_t;
+} tenum_t;
 
 /*
  * Types are represented by concatenation of structures of type type_t
@@ -157,7 +157,7 @@ struct type {
 	union {
 		int	_t_dim;		/* dimension */
 		str_t	*_t_str;	/* struct/union tag */
-		enum_t	*_t_enum;	/* enum tag */
+		tenum_t	*_t_enum;	/* enum tag */
 		struct	sym *_t_args;	/* arguments (if t_proto) */
 	} t_u;
 	struct {
@@ -243,7 +243,7 @@ typedef	struct sym {
 	val_t	s_value;	/* value (if enumcon) */
 	union {
 		str_t	*_s_st;	/* tag, if it is a struct/union member */
-		enum_t	*_s_et;	/* tag, if it is a enumerator */
+		tenum_t	*_s_et;	/* tag, if it is a enumerator */
 		tspec_t	_s_tsp;	/* type (only for keywords) */
 		tqual_t	_s_tqu;	/* qualifier (only for keywords) */
 		struct	sym *_s_args; /* arguments in old style function

Reply via email to