diff options
| author | rillig <rillig@NetBSD.org> | 2020-09-25 15:54:50 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2020-09-25 15:54:50 +0000 |
| commit | ea043b6b0b2dba5d50495fd96cf7db1f4d9d5eda (patch) | |
| tree | e7cd08cac19bd9bb94aff2afe3c4aa7b30d2b888 /usr.bin/make/enum.h | |
| parent | 602a85a7eea9d257200abf5ea50add36a51730b2 (diff) | |
make(1): add tags to some of the unnamed structs
The tags prevent the structs from accidentally becoming compatible
types.
While here, remove a few typedefs for structs that are single-purpose,
since there is no point in abstracting from the actual representation of
these types.
Diffstat (limited to 'usr.bin/make/enum.h')
| -rw-r--r-- | usr.bin/make/enum.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/make/enum.h b/usr.bin/make/enum.h index 33c86b7f29b..ba7c7a826e9 100644 --- a/usr.bin/make/enum.h +++ b/usr.bin/make/enum.h @@ -1,4 +1,4 @@ -/* $NetBSD: enum.h,v 1.11 2020/09/22 06:13:38 rillig Exp $ */ +/* $NetBSD: enum.h,v 1.12 2020/09/25 15:54:50 rillig Exp $ */ /* Copyright (c) 2020 Roland Illig <rillig@NetBSD.org> @@ -34,7 +34,7 @@ #include <stddef.h> -typedef struct { +typedef struct EnumToStringSpec { int es_value; const char *es_name; } EnumToStringSpec; |
