Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
programming-languages
cse-programming-languages-fall-2024
assignment-4-memory-allocator
Commits
e4e1332f
Commit
e4e1332f
authored
1 month ago
by
Фёдор Буреев
Browse files
Options
Download
Email Patches
Plain Diff
Update src/mem.c
parent
f8ad4f06
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/mem.c
src/mem.c
+2
-2
No files found.
src/mem.c
View file @
e4e1332f
...
...
@@ -125,7 +125,7 @@ static void* block_after( struct block_header const* block )
}
static
bool
blocks_continuous
(
struct
block_header
const
*
fst
,
struct
block_header
const
*
snd
)
{
return
(
void
*
)
snd
==
block_after
(
fst
);
s
return
(
void
*
)
snd
==
block_after
(
fst
);
}
// готовая конструкция для проверки 2-х блоков на соединяемость
static
bool
mergeable
(
struct
block_header
const
*
restrict
fst
,
struct
block_header
const
*
restrict
snd
)
...
...
@@ -251,4 +251,4 @@ void _free( void* mem )
if
(
!
(
header
->
next
)
||
!
try_merge_with_next
(
header
))
break
;
}
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment