Skip to content

Commit

Permalink
fmt vars
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkwork committed Jun 22, 2024
1 parent ca1bbad commit 8aa2b53
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 21 deletions.
4 changes: 4 additions & 0 deletions ux/sdk/bind_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ func TestBindMacros(t *testing.T) {
if p.Key == "DEBUGGER_OPERATION_WAS_SUCCESSFUL" || strings.HasPrefix(p.Key, "DEBUGGER_ERROR") {
p.Key += " ErrorCodes"
}
if p.Value[0] == '(' && p.Value[len(p.Value)-1] == ')' {
p.Value = p.Value[1 : len(p.Value)-1]
}

g.P(p.Key + "=" + p.Value)
macros.Delete(p.Key)
}
Expand Down
42 changes: 21 additions & 21 deletions ux/sdk/tmp/vars.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var (
COMMUNICATION_BUFFER_SIZE = PacketChunkSize + 0x100
TOP_LEVEL_DRIVERS_VMCALL_STARTING_NUMBER = 0x00000200
TOP_LEVEL_DRIVERS_VMCALL_ENDING_NUMBER = TOP_LEVEL_DRIVERS_VMCALL_STARTING_NUMBER + 0x100
OPERATION_MANDATORY_DEBUGGEE_BIT = (1 << 31)
OPERATION_MANDATORY_DEBUGGEE_BIT = 1 << 31
OPERATION_LOG_INFO_MESSAGE = 1
OPERATION_LOG_WARNING_MESSAGE = 2
OPERATION_LOG_ERROR_MESSAGE = 3
Expand Down Expand Up @@ -67,26 +67,26 @@ var (
MAXIMUM_GUID_AND_AGE_SIZE = 60
INDICATOR_OF_HYPERDBG_PACKET = 0x4859504552444247 // HYPERDBG = 0x4859504552444247
MaximumSearchResults = 0x1000
X86_FLAGS_CF = (1 << 0)
X86_FLAGS_PF = (1 << 2)
X86_FLAGS_AF = (1 << 4)
X86_FLAGS_ZF = (1 << 6)
X86_FLAGS_SF = (1 << 7)
X86_FLAGS_TF = (1 << 8)
X86_FLAGS_IF = (1 << 9)
X86_FLAGS_DF = (1 << 10)
X86_FLAGS_OF = (1 << 11)
X86_FLAGS_STATUS_MASK = (0xfff)
X86_FLAGS_IOPL_MASK = (3 << 12)
X86_FLAGS_IOPL_SHIFT = (12)
X86_FLAGS_IOPL_SHIFT_2ND_BIT = (13)
X86_FLAGS_NT = (1 << 14)
X86_FLAGS_RF = (1 << 16)
X86_FLAGS_VM = (1 << 17)
X86_FLAGS_AC = (1 << 18)
X86_FLAGS_VIF = (1 << 19)
X86_FLAGS_VIP = (1 << 20)
X86_FLAGS_ID = (1 << 21)
X86_FLAGS_CF = 1 << 0
X86_FLAGS_PF = 1 << 2
X86_FLAGS_AF = 1 << 4
X86_FLAGS_ZF = 1 << 6
X86_FLAGS_SF = 1 << 7
X86_FLAGS_TF = 1 << 8
X86_FLAGS_IF = 1 << 9
X86_FLAGS_DF = 1 << 10
X86_FLAGS_OF = 1 << 11
X86_FLAGS_STATUS_MASK = 0xfff
X86_FLAGS_IOPL_MASK = 3 << 12
X86_FLAGS_IOPL_SHIFT = 12
X86_FLAGS_IOPL_SHIFT_2ND_BIT = 13
X86_FLAGS_NT = 1 << 14
X86_FLAGS_RF = 1 << 16
X86_FLAGS_VM = 1 << 17
X86_FLAGS_AC = 1 << 18
X86_FLAGS_VIF = 1 << 19
X86_FLAGS_VIP = 1 << 20
X86_FLAGS_ID = 1 << 21
X86_FLAGS_RESERVED_ONES = 0x2
X86_FLAGS_RESERVED = 0xffc0802a
X86_FLAGS_RESERVED_BITS = 0xffc38028
Expand Down

0 comments on commit 8aa2b53

Please sign in to comment.