mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-04 18:28:30 +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
|
@ -40,8 +40,8 @@ static const struct DescribeFlags kNtMemState[] = {
|
|||
};
|
||||
|
||||
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[] = {
|
||||
|
@ -51,7 +51,7 @@ static const struct DescribeFlags kNtMemType[] = {
|
|||
};
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
|
@ -72,8 +72,8 @@ int main(int argc, char *argv[]) {
|
|||
printf("%.12lx %.12lx %10s %16s %16s %32s %32s\n", 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));
|
||||
_DescribeNtPageFlags(b[3], mi.AllocationProtect),
|
||||
_DescribeNtPageFlags(b[4], mi.Protect));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue