Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/lint1 rename enum_t to avoid rpc/types.h lossage.
details: https://anonhg.NetBSD.org/src/rev/2189b23b0cc1
branches: trunk
changeset: 784997:2189b23b0cc1
user: christos <christos%NetBSD.org@localhost>
date: Sun Feb 17 01:26:19 2013 +0000
description:
rename enum_t to avoid rpc/types.h lossage.
diffstat:
usr.bin/xlint/lint1/decl.c | 6 +++---
usr.bin/xlint/lint1/lint1.h | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (63 lines):
diff -r 0c230b3e0497 -r 2189b23b0cc1 usr.bin/xlint/lint1/decl.c
--- a/usr.bin/xlint/lint1/decl.c Sun Feb 17 01:20:57 2013 +0000
+++ b/usr.bin/xlint/lint1/decl.c Sun Feb 17 01:26:19 2013 +0000
@@ -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 @@
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 */
diff -r 0c230b3e0497 -r 2189b23b0cc1 usr.bin/xlint/lint1/lint1.h
--- a/usr.bin/xlint/lint1/lint1.h Sun Feb 17 01:20:57 2013 +0000
+++ b/usr.bin/xlint/lint1/lint1.h Sun Feb 17 01:26:19 2013 +0000
@@ -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 @@
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 @@
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 @@
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
Home |
Main Index |
Thread Index |
Old Index