repo.or.cz
/
zpugcc
/
jano.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fixed more binutils issues (newer gcc/libc)
[zpugcc/jano.git]
/
toolchain
/
gcc
/
libgloss
/
libnosys
/
sbrk.c
blob
8c1c971aa5fb0877e459ea9fa87565a47dbaf598
1
/* Version of sbrk for no operating system. */
2
3
void
*
4
_sbrk
(
incr
)
5
int
incr
;
6
{
7
extern
char
end
;
/* Set by linker. */
8
static char
*
heap_end
;
9
char
*
prev_heap_end
;
10
11
if
(
heap_end
==
0
)
12
heap_end
= &
end
;
13
14
prev_heap_end
=
heap_end
;
15
heap_end
+=
incr
;
16
17
return
(
void
*)
prev_heap_end
;
18
}