mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 23:08:31 +00:00
Avoid linker conflicts on DescribeFoo symbols
These symbols belong to the user. It caused a confusing error for Blink.
This commit is contained in:
parent
38cc4b3c68
commit
bb06230f1e
120 changed files with 346 additions and 347 deletions
|
@ -33,8 +33,8 @@ static const struct DescribeFlags kNtMemState[] = {
|
|||
};
|
||||
|
||||
static const char *DescribeNtMemState(char buf[64], uint32_t x) {
|
||||
return DescribeFlags(buf, 64, kNtMemState, ARRAYLEN(kNtMemState), "kNtMem",
|
||||
x);
|
||||
return _DescribeFlags(buf, 64, kNtMemState, ARRAYLEN(kNtMemState), "kNtMem",
|
||||
x);
|
||||
}
|
||||
|
||||
static const struct DescribeFlags kNtMemType[] = {
|
||||
|
@ -44,7 +44,7 @@ static const struct DescribeFlags kNtMemType[] = {
|
|||
};
|
||||
|
||||
static const char *DescribeNtMemType(char buf[64], uint32_t x) {
|
||||
return DescribeFlags(buf, 64, kNtMemType, ARRAYLEN(kNtMemType), "kNtMem", x);
|
||||
return _DescribeFlags(buf, 64, kNtMemType, ARRAYLEN(kNtMemType), "kNtMem", x);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -77,7 +77,7 @@ void PrintWindowsMemory(const char *high, size_t size) {
|
|||
mi.AllocationBase, mi.BaseAddress, b[0],
|
||||
DescribeNtMemState(b[1], mi.State),
|
||||
DescribeNtMemType(b[2], mi.Type),
|
||||
(DescribeNtPageFlags)(b[3], mi.AllocationProtect),
|
||||
(DescribeNtPageFlags)(b[4], mi.Protect), stop);
|
||||
_DescribeNtPageFlags(b[3], mi.AllocationProtect),
|
||||
_DescribeNtPageFlags(b[4], mi.Protect), stop);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue