substitute memory macros with standard calls

git-svn-id: svn+ssh://svn.savannah.nongnu.org/gap/trunk@2753 d25b4930-3292-e311-b074-0010c6de5da8