mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-03 08:20:28 +00:00
Comment
This commit is contained in:
parent
0e413aec3c
commit
2063a800ca
1 changed files with 9 additions and 0 deletions
|
@ -50,6 +50,15 @@ void* ctl_ret(size_t, void* p)
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* The ISO says that these should be replaceable by user code. It also says
|
||||||
|
that the declarations for the first four (i.e. non–placement-) operators
|
||||||
|
new are implicitly available in each translation unit, including the std
|
||||||
|
align_val_t parameter. (?) However, <new> also _defines_ the align_val_t
|
||||||
|
type so you can’t just write your own. Our way through this morass is to
|
||||||
|
supply ours as ctl::align_val_t and not implicitly declare anything, for
|
||||||
|
now. If you have any brain cells left after reading this comment then go
|
||||||
|
look at the ten operator delete weak references to free in the below. */
|
||||||
|
|
||||||
// operator new(size_t, align_val_t)
|
// operator new(size_t, align_val_t)
|
||||||
__weak_reference(ctl_alloc, _ZnwmN3ctl11align_val_tE);
|
__weak_reference(ctl_alloc, _ZnwmN3ctl11align_val_tE);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue