mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Tidied up
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22977 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0dfcfd4814
commit
e40074f3db
19 changed files with 111 additions and 95 deletions
|
@ -18,7 +18,8 @@
|
|||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02111 USA.
|
||||
|
||||
<title>NSPage class reference</title>
|
||||
$Date$ $Revision$
|
||||
|
@ -175,11 +176,7 @@ NSAllocateMemoryPages (unsigned bytes)
|
|||
return NULL;
|
||||
return where;
|
||||
#else
|
||||
#ifdef HAVE_VALLOC
|
||||
where = valloc (bytes);
|
||||
#else
|
||||
where = malloc (bytes);
|
||||
#endif
|
||||
where = objc_valloc (bytes);
|
||||
if (where == NULL)
|
||||
return NULL;
|
||||
memset (where, 0, bytes);
|
||||
|
@ -197,7 +194,7 @@ NSDeallocateMemoryPages (void *ptr, unsigned bytes)
|
|||
#if __mach__
|
||||
vm_deallocate (mach_task_self (), ptr, bytes);
|
||||
#else
|
||||
free (ptr);
|
||||
objc_free (ptr);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue