Update/improve version/deprecation reporting.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23797 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2006-10-09 15:13:44 +00:00
parent a0a6c9d7a7
commit 8f865db684
13 changed files with 43 additions and 143 deletions

View file

@ -1,3 +1,20 @@
2006-10-09 Richard Frith-Macdonald <rfm@gnu.org>
* Source/Additions/GSObjCRuntime.m:
* Headers/Additions/GNUstepBase/GSObjCRuntime.h:
Remove previously deprecated functionality.
* Documentation/TypesAndConstants.gsdoc:
* Documentation/ReleaseNotes.gsdoc:
* Documentation/Functions.gsdoc:
* Documentation/BaseAdditions.gsdoc:
* Documentation/Base.gsdoc:
* ChangeLog:
* Tools/AGSHtml.m:
* Tools/AGSParser.m:
* Tools/autogsdoc.m:
* Tools/AGSOutput.m:
Update/improve version/deprecation reporting.
2006-10-09 Richard Frith-Macdonald <rfm@gnu.org>
* Headers/Additions/GNUstepBase/unicode:

View file

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.1//EN" "http://www.gnustep.org/gsdoc-1_0_1.xml">
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.3//EN" "http://www.gnustep.org/gsdoc-1_0_3.xml">
<!--
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright

View file

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.1//EN" "http://www.gnustep.org/gsdoc-1_0_1.xml">
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.3//EN" "http://www.gnustep.org/gsdoc-1_0_3.xml">
<!--
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright

View file

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.1//EN" "http://www.gnustep.org/gsdoc-1_0_1.xml">
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.3//EN" "http://www.gnustep.org/gsdoc-1_0_3.xml">
<!--
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright

View file

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.1//EN" "http://www.gnustep.org/gsdoc-1_0_1.xml">
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.3//EN" "http://www.gnustep.org/gsdoc-1_0_3.xml">
<!--
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright

View file

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.1//EN" "http://www.gnustep.org/gsdoc-1_0_1.xml">
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.3//EN" "http://www.gnustep.org/gsdoc-1_0_3.xml">
<!--
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright

View file

@ -39,13 +39,14 @@ extern "C" {
@class NSArray;
@class NSString;
#if GS_API_VERSION(GS_API_NONE,011500)
/**
* Try to locate file/directory (aName).(anExtension) in paths.
* Will return the first found or nil if nothing is found.
*/
GS_EXPORT NSString *GSFindNamedFile(NSArray *paths, NSString *aName,
NSString *anExtension);
#endif
#if defined(__cplusplus)
}

View file

@ -692,108 +692,16 @@ GSPrintf (FILE *fptr, NSString *format, ...);
#ifndef NO_DEPRECATED
GS_EXPORT const char *
GSLastErrorStr(long error_id) GS_ATTRIB_DEPRECATED;
GS_EXPORT BOOL
GSFindInstanceVariable(id obj, const char *name,
const char **type,
unsigned int *size,
int *offset) GS_ATTRIB_DEPRECATED;
GS_EXPORT void
GSGetVariable(id obj, int offset, unsigned int size,
void *data) GS_ATTRIB_DEPRECATED;
GS_EXPORT void
GSSetVariable(id obj, int offset, unsigned int size,
const void *data) GS_ATTRIB_DEPRECATED;
GS_EXPORT id
GSGetValue(NSObject *self, NSString *key, SEL sel,
const char *type,
unsigned size,
int offset) GS_ATTRIB_DEPRECATED;
GS_EXPORT void
GSSetValue(NSObject *self, NSString *key, id val, SEL sel,
const char *type,
unsigned size,
int offset) GS_ATTRIB_DEPRECATED;
GS_EXPORT NSArray *
GSObjCAllSubclassesOfClass(Class cls);
GS_EXPORT NSArray *
GSObjCDirectSubclassesOfClass(Class cls);
/** ## deprecated ##
*/
GS_STATIC_INLINE const char*
GSObjCName(Class cls) GS_ATTRIB_DEPRECATED;
GS_STATIC_INLINE const char*
GSObjCName(Class cls)
{
return class_get_class_name(cls);
}
/** ## deprecated ##
*/
GS_STATIC_INLINE const char*
GSObjCSelectorName(SEL sel) GS_ATTRIB_DEPRECATED;
GS_STATIC_INLINE const char*
GSObjCSelectorName(SEL sel)
{
if (sel == 0)
return 0;
return sel_get_name(sel);
}
/** ## deprecated ##
*/
GS_STATIC_INLINE const char*
GSObjCSelectorTypes(SEL sel) GS_ATTRIB_DEPRECATED;
GS_STATIC_INLINE const char*
GSObjCSelectorTypes(SEL sel)
{
return sel_get_type(sel);
}
GS_STATIC_INLINE GSMethod
GSGetInstanceMethod(Class cls, SEL sel) GS_ATTRIB_DEPRECATED;
GS_STATIC_INLINE GSMethod
GSGetInstanceMethod(Class cls, SEL sel)
{
return GSGetMethod(cls, sel, YES, YES);
}
GS_STATIC_INLINE GSMethod
GSGetClassMethod(Class cls, SEL sel) GS_ATTRIB_DEPRECATED;
GS_STATIC_INLINE GSMethod
GSGetClassMethod(Class cls, SEL sel)
{
return GSGetMethod(cls, sel, NO, YES);
}
GS_STATIC_INLINE GSMethod
GSGetInstanceMethodNotInherited(Class cls,
SEL sel) GS_ATTRIB_DEPRECATED;
GS_STATIC_INLINE GSMethod
GSGetInstanceMethodNotInherited(Class cls, SEL sel)
{
return GSGetMethod(cls, sel, YES, NO);
}
GS_STATIC_INLINE GSMethod
GSGetClassMethodNotInherited(Class cls, SEL sel) GS_ATTRIB_DEPRECATED;
GS_STATIC_INLINE GSMethod
GSGetClassMethodNotInherited(Class cls, SEL sel)
{
return GSGetMethod(cls, sel, NO, NO);
}
#ifndef NO_DEPRECATED
GS_EXPORT const char *
GSLastErrorStr(long error_id) GS_ATTRIB_DEPRECATED;
#endif /* NO_DEPRECATED */

View file

@ -117,14 +117,6 @@ GSAllocateMutexAt(objc_mutex_t *request)
objc_mutex_unlock(local_lock);
}
/** Deprecated ... use GSObjCFindVariable() */
BOOL
GSFindInstanceVariable(id obj, const char *name,
const char **type, unsigned int *size, int *offset)
{
return GSObjCFindVariable(obj, name, type, size, offset);
}
/**
* This function is used to locate information about the instance
* variable of obj called name. It returns YES if the variable
@ -274,12 +266,6 @@ GSObjCVariableNames(id obj)
return array;
}
/** Deprecated ... use GSObjCGetVariable() */
void
GSGetVariable(id obj, int offset, unsigned int size, void *data)
{
GSObjCGetVariable(obj, offset, size, data);
}
/**
* Gets the value from an instance variable in obj<br />
* This function performs no checking ... you should use it only where
@ -292,12 +278,6 @@ GSObjCGetVariable(id obj, int offset, unsigned int size, void *data)
memcpy(data, ((void*)obj) + offset, size);
}
/** Deprecated ... use GSObjCSetVariable() */
void
GSSetVariable(id obj, int offset, unsigned int size, const void *data)
{
GSObjCSetVariable(obj, offset, size, data);
}
/**
* Sets the value in an instance variable in obj<br />
* This function performs no checking ... you should use it only where
@ -1475,13 +1455,6 @@ GSObjCAddClassBehavior(Class receiver, Class behavior)
#endif
/** Deprecated ... use GSObjCGetVal() */
id
GSGetValue(NSObject *self, NSString *key, SEL sel,
const char *type, unsigned size, int offset)
{
return GSObjCGetVal(self, [key UTF8String], sel, type, size, offset);
}
/**
* This is used internally by the key-value coding methods, to get a
* value from an object either via an accessor method (if sel is
@ -1801,13 +1774,6 @@ GSObjCGetValue(NSObject *self, NSString *key, SEL sel,
return GSObjCGetVal(self, [key UTF8String], sel, type, size, offset);
}
/** Deprecated ... use GSObjCSetVal() */
void
GSSetValue(NSObject *self, NSString *key, id val, SEL sel,
const char *type, unsigned size, int offset)
{
GSObjCSetVal(self, [key UTF8String], val, sel, type, size, offset);
}
/**
* This is used internally by the key-value coding methods, to set a
* value in an object either via an accessor method (if sel is

View file

@ -2493,8 +2493,11 @@ static NSString *mainFont = nil;
{
[buf appendString: @", "];
[buf appendString: project];
[buf appendString: @" "];
[buf appendString: gvadd];
if ([gvadd isEqualToString: @"0.0.0"] == NO)
{
[buf appendString: @" "];
[buf appendString: gvadd];
}
if ([gvdep length] > 0)
{
[buf appendString: @" deprecated at "];
@ -2515,8 +2518,11 @@ static NSString *mainFont = nil;
[buf appendString: @"<div class=\"availability\">\n"];
[buf appendString: @"<b>Availability:</b> "];
[buf appendString: project];
[buf appendString: @" "];
[buf appendString: gvadd];
if ([gvadd isEqualToString: @"0.0.0"] == NO)
{
[buf appendString: @" "];
[buf appendString: gvadd];
}
if ([gvdep length] > 0)
{
[buf appendString: @" deprecated at "];

View file

@ -2335,7 +2335,7 @@ static BOOL snuggleStart(NSString *t)
[str appendString: @"<?xml version=\"1.0\"?>\n"];
[str appendString: @"<!DOCTYPE gsdoc PUBLIC "];
[str appendString: @"\"-//GNUstep//DTD gsdoc 1.0.1//EN\" "];
[str appendString: @"\"http://www.gnustep.org/gsdoc-1_0_1.xml\">\n"];
[str appendString: @"\"http://www.gnustep.org/gsdoc-1_0_3.xml\">\n"];
[str appendString: @"<gsdoc base=\""];
[str appendString: [name lastPathComponent]];
/*

View file

@ -1549,6 +1549,7 @@
return nil;
}
}
[self setStandards: d];
return d;
}
else
@ -2314,6 +2315,7 @@ fail:
DESTROY(dict);
}
RELEASE(a);
[self setStandards: dict];
return AUTORELEASE(dict);
}

View file

@ -547,7 +547,7 @@
<example>
&lt;?xml version="1.0"?&gt;
&lt;!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.1//EN"
"http://www.gnustep.org/gsdoc-1_0_1.xml"&gt;
"http://www.gnustep.org/gsdoc-1_0_3.xml"&gt;
&lt;gsdoc base="index"&gt;
&lt;head&gt;
&lt;title&gt;My project reference&lt;/title&gt;
@ -1774,7 +1774,7 @@ main(int argc, char **argv, char **env)
// skeleton for table of contents files
[tocSkel setString: @"<?xml version=\"1.0\"?>\n"
@"<!DOCTYPE gsdoc PUBLIC \"-//GNUstep//DTD gsdoc 1.0.1//EN\" \"http://www.gnustep.org/gsdoc-1_0_1.xml\">\n"
@"<!DOCTYPE gsdoc PUBLIC \"-//GNUstep//DTD gsdoc 1.0.1//EN\" \"http://www.gnustep.org/gsdoc-1_0_3.xml\">\n"
@"<gsdoc base=\"[typeU]\" stylesheeturl=\"gsdoc_contents\">\n"
@" <head>\n"
@" <title>[typeU]</title>\n"
@ -1880,7 +1880,7 @@ main(int argc, char **argv, char **env)
@"named %@ in the documentation output directory.\n"
@"Then include this file in the arguments to autogsdoc.\n\n", prjFile);
[prjFileContents setString: @"<?xml version=\"1.0\"?>\n"
@"<!DOCTYPE gsdoc PUBLIC \"-//GNUstep//DTD gsdoc 1.0.1//EN\" \"http://www.gnustep.org/gsdoc-1_0_1.xml\">\n"
@"<!DOCTYPE gsdoc PUBLIC \"-//GNUstep//DTD gsdoc 1.0.1//EN\" \"http://www.gnustep.org/gsdoc-1_0_3.xml\">\n"
@"<gsdoc base=\"[prjName]\">\n"
@" <head>\n"
@" <title>The [prjName] Project</title>\n"