25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
free)
if ! echo " ${alloclist} " | grep " ${addr} " >/dev/null; then
if [ -z "${alloclist}" ]; then
alloclist="!${addr}"
else
alloclist="${alloclist} !${addr}"
fi
continue
fi
alloclist="$(echo " ${alloclist} " | sed "s@ ${addr} @ @;s@^ *@@;s@ *\$@@")"
;;
realloc)
alloclist="$(echo " ${alloclist} " | sed "s@ ${addr} @ ${newaddr} @;s@^ *@@;s@ *\$@@")"
;;
esac
echo "${alloclist}"
|
|
|
<
|
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
free)
if ! echo " ${alloclist} " | grep " ${addr} " >/dev/null; then
if [ -z "${alloclist}" ]; then
alloclist="!${addr}"
else
alloclist="${alloclist} !${addr}"
fi
else
alloclist="$(echo " ${alloclist} " | sed "s@ ${addr} @ @;s@^ *@@;s@ *\$@@")"
fi
;;
realloc)
alloclist="$(echo " ${alloclist} " | sed "s@ ${addr} @ ${newaddr} @;s@^ *@@;s@ *\$@@")"
;;
esac
echo "${alloclist}"
|