mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 11:28:15 +00:00
Fixed spacing
This commit is contained in:
@@ -397,9 +397,9 @@ MALLINFO_FIELD_TYPE default: size_t
|
|||||||
size_t. The value is used only if HAVE_USR_INCLUDE_MALLOC_H is not set
|
size_t. The value is used only if HAVE_USR_INCLUDE_MALLOC_H is not set
|
||||||
|
|
||||||
REALLOC_ZERO_BYTES_FREES default: not defined
|
REALLOC_ZERO_BYTES_FREES default: not defined
|
||||||
This should be set if a call to realloc with zero bytes should
|
This should be set if a call to realloc with zero bytes should
|
||||||
be the same as a call to free. Some people think it should. Otherwise,
|
be the same as a call to free. Some people think it should. Otherwise,
|
||||||
since this malloc returns a unique pointer for malloc(0), so does
|
since this malloc returns a unique pointer for malloc(0), so does
|
||||||
realloc(p, 0).
|
realloc(p, 0).
|
||||||
|
|
||||||
LACKS_UNISTD_H, LACKS_FCNTL_H, LACKS_SYS_PARAM_H, LACKS_SYS_MMAN_H
|
LACKS_UNISTD_H, LACKS_FCNTL_H, LACKS_SYS_PARAM_H, LACKS_SYS_MMAN_H
|
||||||
@@ -2534,7 +2534,7 @@ static int init_mparams(void) {
|
|||||||
if ((fd = open("/dev/urandom", O_RDONLY)) < 0) {
|
if ((fd = open("/dev/urandom", O_RDONLY)) < 0) {
|
||||||
s = 0;
|
s = 0;
|
||||||
} else {
|
} else {
|
||||||
s = read(fd, buf, sizeof(buf));
|
s = read(fd, buf, sizeof(buf));
|
||||||
close(fd);
|
close(fd);
|
||||||
}
|
}
|
||||||
if (s == sizeof(buf))
|
if (s == sizeof(buf))
|
||||||
@@ -3575,7 +3575,7 @@ static void* sys_alloc(mstate m, size_t nb) {
|
|||||||
m->seg.sflags = mmap_flag;
|
m->seg.sflags = mmap_flag;
|
||||||
m->magic = mparams.magic;
|
m->magic = mparams.magic;
|
||||||
init_bins(m);
|
init_bins(m);
|
||||||
if (is_global(m))
|
if (is_global(m))
|
||||||
init_top(m, (mchunkptr)tbase, tsize - TOP_FOOT_SIZE);
|
init_top(m, (mchunkptr)tbase, tsize - TOP_FOOT_SIZE);
|
||||||
else {
|
else {
|
||||||
/* Offset top by embedded malloc_state */
|
/* Offset top by embedded malloc_state */
|
||||||
@@ -3726,7 +3726,7 @@ static int sys_trim(mstate m, size_t pad) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Unmap any unused mmapped segments */
|
/* Unmap any unused mmapped segments */
|
||||||
if (HAVE_MMAP)
|
if (HAVE_MMAP)
|
||||||
released += release_unused_segments(m);
|
released += release_unused_segments(m);
|
||||||
|
|
||||||
/* On failure, disable autotrim to avoid repeated failed future calls */
|
/* On failure, disable autotrim to avoid repeated failed future calls */
|
||||||
@@ -3934,7 +3934,7 @@ static void* internal_memalign(mstate m, size_t alignment, size_t bytes) {
|
|||||||
while (a < alignment) a <<= 1;
|
while (a < alignment) a <<= 1;
|
||||||
alignment = a;
|
alignment = a;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bytes >= MAX_REQUEST - alignment) {
|
if (bytes >= MAX_REQUEST - alignment) {
|
||||||
if (m != 0) { /* Test isn't needed but avoids compiler warning */
|
if (m != 0) { /* Test isn't needed but avoids compiler warning */
|
||||||
MALLOC_FAILURE_ACTION;
|
MALLOC_FAILURE_ACTION;
|
||||||
@@ -5179,7 +5179,7 @@ History:
|
|||||||
Trial version Fri Aug 28 13:14:29 1992 Doug Lea (dl at g.oswego.edu)
|
Trial version Fri Aug 28 13:14:29 1992 Doug Lea (dl at g.oswego.edu)
|
||||||
* Based loosely on libg++-1.2X malloc. (It retains some of the overall
|
* Based loosely on libg++-1.2X malloc. (It retains some of the overall
|
||||||
structure of old version, but most details differ.)
|
structure of old version, but most details differ.)
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#endif /* !HAVE_MALLOC */
|
#endif /* !HAVE_MALLOC */
|
||||||
|
Reference in New Issue
Block a user