Put NSPage declarations in NSZone.h for compatibility with MacOS-X

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@5236 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-11-18 15:18:47 +00:00
parent 7fe9cf7400
commit ccccb5ac7f
7 changed files with 27 additions and 47 deletions

View file

@ -1,3 +1,10 @@
Thu Nov 18 15:23:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Headers/Foundation/NSPage.h: removed
* Headers/Foundation/NSZone.h: incorporated NSPage.h
* Source/GNUmakefile: Remove reference to NSPage.h
* Source/NSZone.m: Remove reference to NSPage.h
Sun Nov 7 14:04:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/o_vscanf.c Reverted to earlier version - the last fix was

View file

@ -61,7 +61,6 @@
#include <Foundation/NSMethodSignature.h>
#include <Foundation/NSNotification.h>
#include <Foundation/NSNotificationQueue.h>
#include <Foundation/NSPage.h>
#include <Foundation/NSPathUtilities.h>
#include <Foundation/NSPortCoder.h>
#include <Foundation/NSPortMessage.h>

View file

@ -1,44 +0,0 @@
/* Page memory management. -*- Mode: ObjC -*-
Copyright (C) 1996 Free Software Foundation, Inc.
Written by: Yoo C. Chung <wacko@laplace.snu.ac.kr>
Date: November 1996
This file is part of the GNUstep Base Library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
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., 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
#ifndef __NSPage_h_GNUSTEP_BASE_INCLUDE
#define __NSPage_h_GNUSTEP_BASE_INCLUDE
extern unsigned NSPageSize (void) __attribute__ ((const));
extern unsigned NSLogPageSize (void) __attribute__ ((const));
extern unsigned NSRoundDownToMultipleOfPageSize (unsigned bytes)
__attribute__ ((const));
extern unsigned NSRoundUpToMultipleOfPageSize (unsigned bytes)
__attribute__ ((const));
extern unsigned NSRealMemoryAvailable (void);
extern void* NSAllocateMemoryPages (unsigned bytes);
extern void NSDeallocateMemoryPages (void *ptr, unsigned bytes);
extern void NSCopyMemoryPages (const void *src, void *dest, unsigned bytes);
#endif /* not __NSPage_h_GNUSTEP_BASE_INCLUDE */

View file

@ -238,4 +238,23 @@ extern inline struct NSZoneStats NSZoneStats (NSZone *zone)
#endif /* GS_WITH_GC */
extern unsigned NSPageSize (void) __attribute__ ((const));
extern unsigned NSLogPageSize (void) __attribute__ ((const));
extern unsigned NSRoundDownToMultipleOfPageSize (unsigned bytes)
__attribute__ ((const));
extern unsigned NSRoundUpToMultipleOfPageSize (unsigned bytes)
__attribute__ ((const));
extern unsigned NSRealMemoryAvailable (void);
extern void* NSAllocateMemoryPages (unsigned bytes);
extern void NSDeallocateMemoryPages (void *ptr, unsigned bytes);
extern void NSCopyMemoryPages (const void *src, void *dest, unsigned bytes);
#endif /* not __NSZone_h_GNUSTEP_BASE_INCLUDE */

View file

@ -407,7 +407,6 @@ Foundation/NSNotification.h \
Foundation/NSNotificationQueue.h \
Foundation/NSObjCRuntime.h \
Foundation/NSObject.h \
Foundation/NSPage.h \
Foundation/NSPathUtilities.h \
Foundation/NSPort.h \
Foundation/NSPortCoder.h \

View file

@ -23,6 +23,7 @@
#include <config.h>
#include <base/preface.h>
#include <Foundation/NSZone.h>
#include <string.h>
#ifndef __WIN32__
#include <unistd.h>

View file

@ -86,7 +86,6 @@
#include <string.h>
#include <objc/objc-api.h>
#include <Foundation/NSException.h>
#include <Foundation/NSPage.h>
#include <Foundation/NSString.h>
#include <Foundation/NSZone.h>
#include <Foundation/NSLock.h>