mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Improve documentation of versioning and tidy a little
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23233 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
97c0b7bf3f
commit
d3035b6718
6 changed files with 79 additions and 15 deletions
|
@ -1,3 +1,12 @@
|
|||
2006-08-09 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Documentation/Base.gsdoc: Improve links to macros.
|
||||
* Headers/Foundation/NSObject.h: Improve versioning documentation
|
||||
* Headers/Foundation/NSNotificationQueue.h: tidied
|
||||
* Headers/Foundation/NSUndoManager.h: ditto
|
||||
* Headers/Foundation/NSAutoreleasePool.h: ditto
|
||||
Documentation improvements and header tidyups.
|
||||
|
||||
2006-08-08 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/GSStream.h:
|
||||
|
|
|
@ -69,7 +69,9 @@ notice and this notice are preserved.
|
|||
a major number (0-99) followed by a minor number (00-99) and
|
||||
a subminor number (00-00).<br />
|
||||
Features in the header file are marked as belonging to different
|
||||
version ranges using the GS_API_VERSION macro.<br />
|
||||
version ranges using the
|
||||
<ref type="macro" id="GS_API_VERSION">GS_API_VERSION</ref>
|
||||
macro.<br />
|
||||
NB. This is the <em>native</em> versioning of the library being
|
||||
used via the header file. You can use this mechanism in your
|
||||
own libraries and frameworks.
|
||||
|
@ -93,7 +95,9 @@ notice and this notice are preserved.
|
|||
A major number of 10 indicates the MacOS-X implementation ...
|
||||
available as the GS_API_MACOSX preprocessor constant.<br />
|
||||
Features in the header file are marked as belonging to different
|
||||
version ranges using the OS_API_VERSION macro.<br />
|
||||
version ranges using the
|
||||
<ref type="macro" id="GS_API_VERSION">GS_API_VERSION</ref>
|
||||
macro.<br />
|
||||
</desc>
|
||||
<term>NO_GNUSTEP</term>
|
||||
<desc>
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
||||
#ifndef __NSAutoreleasePool_h_GNUSTEP_BASE_INCLUDE
|
||||
|
|
|
@ -40,7 +40,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.
|
||||
*/
|
||||
|
||||
#ifndef __NSNotificationQueue_h__
|
||||
|
|
|
@ -53,17 +53,49 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* Macro to check a defined GNUstep version number (GS_GNUSTEP_V) against the
|
||||
* supplied arguments. Returns true if no GNUstep version is specified,
|
||||
* or if ADD <= VER < REM
|
||||
* <p>Macro to check a defined GNUstep version number (GS_GNUSTEP_V) against
|
||||
* the supplied arguments. Returns true if no GNUstep version is specified,
|
||||
* or if ADD <= version < REM, where ADD is the version
|
||||
* number at which a feature guarded by the macro was introduced and
|
||||
* REM is the version number at which it was removed.
|
||||
* </p>
|
||||
* <p>The version number arguments are six digit integers where the first
|
||||
* two digits are the major version number, the second two are the minor
|
||||
* version number and the last two are the subminor number (all left padded
|
||||
* with a zero where necessary). However, for convenience you can also
|
||||
* use any of several predefined constants ...
|
||||
* <ref type="macro" id="GS_API_NONE">GS_API_NONE</ref>,
|
||||
* <ref type="macro" id="GS_API_LATEST">GS_API_LATEST</ref>,
|
||||
* <ref type="macro" id="GS_API_OSSPEC">GS_API_OSSPEC</ref>,
|
||||
* <ref type="macro" id="GS_API_OPENSTEP">GS_API_OPENSTEP</ref>,
|
||||
* <ref type="macro" id="GS_API_MACOSX">GS_API_MACOSX</ref>
|
||||
* </p>
|
||||
* <p>Also see <ref type="macro" id="OS_API_VERSION">OS_API_VERSION</ref>
|
||||
* </p>
|
||||
*/
|
||||
#define GS_API_VERSION(ADD,REM) \
|
||||
(!defined(GS_GNUSTEP_V) || (GS_GNUSTEP_V >= ADD && GS_GNUSTEP_V < REM))
|
||||
|
||||
/**
|
||||
* Macro to check a defined OpenStep/OPENSTEP/MacOS-X version against the
|
||||
* <p>Macro to check a defined OpenStep/OPENSTEP/MacOS-X version against the
|
||||
* supplied arguments. Returns true if no version is specified, or if
|
||||
* ADD <= VER < REM
|
||||
* ADD <= version < REM, where ADD is the version
|
||||
* number at which a feature guarded by the macro was introduced and
|
||||
* REM is the version number at which it was removed.
|
||||
* </p>
|
||||
* <p>The version number arguments are six digit integers where the first
|
||||
* two digits are the major version number, the second two are the minor
|
||||
* version number and the last two are the subminor number (all left padded
|
||||
* with a zero where necessary). However, for convenience you can also
|
||||
* use any of several predefined constants ...
|
||||
* <ref type="macro" id="GS_API_NONE">GS_API_NONE</ref>,
|
||||
* <ref type="macro" id="GS_API_LATEST">GS_API_LATEST</ref>,
|
||||
* <ref type="macro" id="GS_API_OSSPEC">GS_API_OSSPEC</ref>,
|
||||
* <ref type="macro" id="GS_API_OPENSTEP">GS_API_OPENSTEP</ref>,
|
||||
* <ref type="macro" id="GS_API_MACOSX">GS_API_MACOSX</ref>
|
||||
* </p>
|
||||
* <p>Also see <ref type="macro" id="GS_API_VERSION">GS_API_VERSION</ref>
|
||||
* </p>
|
||||
*/
|
||||
#define OS_API_VERSION(ADD,REM) \
|
||||
(!defined(GS_OPENSTEP_V) || (GS_OPENSTEP_V >= ADD && GS_OPENSTEP_V < REM))
|
||||
|
@ -72,29 +104,46 @@
|
|||
* A constant to represent a feature which is not present in any version.
|
||||
* Use this to say a feature is not present in an API.<br />
|
||||
* eg.<br />
|
||||
* #if OS_API_VERSION(GS_API_NONE, GS_API_NONE)<br />
|
||||
* #if <ref type="macro" id="OS_API_VERSION">OS_API_VERSION</ref>
|
||||
* (GS_API_NONE, GS_API_NONE)<br />
|
||||
* denotes code not present in OpenStep/OPENSTEP/MacOS-X
|
||||
*/
|
||||
#define GS_API_NONE 0
|
||||
|
||||
/**
|
||||
* A constant to represent a feature which is still present in the latest
|
||||
* version. This is the highest possible version number.
|
||||
* version. This is the highest possible version number.<br />
|
||||
* eg.<br />
|
||||
* #if <ref type="macro" id="OS_API_VERSION">OS_API_VERSION</ref>
|
||||
* (GS_API_MACOSX, GS_API_LATEST)<br />
|
||||
* denotes code present from the initial MacOS-X version onwards.
|
||||
*/
|
||||
#define GS_API_LATEST 999999
|
||||
|
||||
/**
|
||||
* The version number of the initial OpenStep specification
|
||||
* The version number of the initial OpenStep specification.<br />
|
||||
* eg.<br />
|
||||
* #if <ref type="macro" id="OS_API_VERSION">OS_API_VERSION</ref>
|
||||
* (GS_API_OSSPEC, GS_API_LATEST)<br />
|
||||
* denotes code present from the OpenStep specification onwards.
|
||||
*/
|
||||
#define GS_API_OSSPEC 10000
|
||||
|
||||
/**
|
||||
* The version number of the first OPENSTEP implementation
|
||||
* The version number of the first OPENSTEP implementation.<br />
|
||||
* eg.<br />
|
||||
* #if <ref type="macro" id="OS_API_VERSION">OS_API_VERSION</ref>
|
||||
* (GS_API_OPENSTEP, GS_API_LATEST)<br />
|
||||
* denotes code present from the initial OPENSTEP version onwards.
|
||||
*/
|
||||
#define GS_API_OPENSTEP 40000
|
||||
|
||||
/**
|
||||
* The version number of the first MacOS-X implementation
|
||||
* The version number of the first MacOS-X implementation.<br />
|
||||
* eg.<br />
|
||||
* #if <ref type="macro" id="OS_API_VERSION">OS_API_VERSION</ref>
|
||||
* (GS_API_MACOSX, GS_API_LATEST)<br />
|
||||
* denotes code present from the initial MacOS-X version onwards.
|
||||
*/
|
||||
#define GS_API_MACOSX 100000
|
||||
|
||||
|
|
|
@ -25,9 +25,9 @@
|
|||
#define __NSUndoManager_h_OBJECTS_INCLUDE
|
||||
|
||||
#include <Foundation/NSObject.h>
|
||||
#include <Foundation/NSString.h>
|
||||
|
||||
@class NSArray;
|
||||
@class NSString;
|
||||
@class NSMutableArray;
|
||||
@class NSInvocation;
|
||||
|
||||
|
|
Loading…
Reference in a new issue