commit cf3194804e1ac5654ba4082f615d57cff776b3a9 (tree)
parent e7547eeefae5a8f095351c6ae889ee9cf82720cb
Author: Matt Knight <mattnite@protonmail.com>
Date: Mon, 7 Sep 2020 07:17:21 -0700
changed enums to lower case
Diffstat:
1 file changed, 25 insertions(+), 25 deletions(-)
diff --git a/lib/std/os/linux/bpf/btf.zig b/lib/std/os/linux/bpf/btf.zig
@@ -56,22 +56,22 @@ pub const Type = packed struct {
/// For some kinds, Type is immediately followed by extra data
pub const Kind = enum(u4) {
- Unknown,
- Int,
- Ptr,
- Array,
- Struct,
- Union,
- Enum,
- Fwd,
- Typedef,
- Volatile,
- Const,
- Restrict,
- Func,
- FuncProto,
- Var,
- DataSec,
+ unknown,
+ int,
+ ptr,
+ array,
+ structure,
+ kind_union,
+ enumeration,
+ fwd,
+ typedef,
+ kind_volatile,
+ constant,
+ restrict,
+ func,
+ funcProto,
+ variable,
+ dataSec,
};
/// Int kind is followed by this struct
@@ -80,9 +80,9 @@ pub const IntInfo = packed struct {
unused: u8,
offset: u8,
encoding: enum(u4) {
- Signed = 1 << 0,
- Char = 1 << 1,
- Bool = 1 << 2,
+ signed = 1 << 0,
+ char = 1 << 1,
+ boolean = 1 << 2,
},
};
@@ -125,15 +125,15 @@ pub const Param = packed struct {
};
pub const VarLinkage = enum {
- Static,
- GlobalAllocated,
- GlobalExtern,
+ static,
+ global_allocated,
+ global_extern,
};
pub const FuncLinkage = enum {
- Static,
- Global,
- Extern,
+ static,
+ global,
+ external,
};
/// Var kind is followd by a single Var struct to describe additional