fix various autogsdoc warnings and issues

This commit is contained in:
Riccardo Mottola 2023-11-14 01:29:01 +01:00
parent dfa829bf38
commit aa36664153
6 changed files with 14 additions and 9 deletions

View file

@ -36,7 +36,7 @@
#ifdef GNUSTEP_WITH_DLL
#if BUILD_libgnustep_gui_DLL
#
# if defined(__MINGW__)
/* On Mingw, the compiler will export all symbols automatically, so
* __declspec(dllexport) is not needed.

View file

@ -215,7 +215,7 @@ APPKIT_EXPORT_CLASS
- (void) setDelegate: (id)delegate;
/** Sets the duration of the animation to a specified number of seconds.
If the duration is changed while the animation is running the <i>speed</i>
If the duration is changed while the animation is running the <em>speed</em>
of the animation is not changed but the current progress value is
(see [-setCurrentprogress]). The new value takes effect at the next
frame. */

View file

@ -145,10 +145,12 @@ APPKIT_EXPORT_CLASS
* Methods Implemented by the Delegate
*/
#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
/** <ignore> */
@protocol NSToolbarDelegate <NSObject>
#if GS_PROTOCOLS_HAVE_OPTIONAL
@optional
#endif
/** </ignore> */
#else
@interface NSObject (NSToolbarDelegate)
#endif

View file

@ -325,8 +325,11 @@ Gui_AGSDOC_FLAGS = \
-VariablesTemplate TypesAndConstants \
-WordMap '{\
APPKIT_EXPORT_CLASS="";\
APPKIT_EXPORT=extern;APPKIT_DECLARE="";\
DEFINE_RINT_IF_MISSING=""; \
APPKIT_EXPORT=extern;\
APPKIT_DECLARE="";\
APPKIT_EXTERN=extern;\
DEFINE_RINT_IF_MISSING="";\
PACKAGE_SCOPE="";\
}' -Up Gui
GuiAdditions_AGSDOC_FLAGS = \

View file

@ -992,7 +992,7 @@ nsanimation_progressMarkSorter(NSAnimationProgress first, NSAnimationProgress se
_NSANIMATION_UNLOCK;
}
- (void) animatorStep: (NSTimeInterval) elapsedTime;
- (void) animatorStep: (NSTimeInterval) elapsedTime
{
NSAnimationProgress progress;
_NSANIMATION_LOCKING_SETUP;
@ -1200,7 +1200,7 @@ nsanimation_progressMarkSorter(NSAnimationProgress first, NSAnimationProgress se
_NSANIMATION_UNLOCK;
}
- (float) actualFrameRate;
- (float) actualFrameRate
{
float r;
_NSANIMATION_LOCKING_SETUP;

View file

@ -1668,7 +1668,7 @@ static NSSize _computeScale(NSSize fs, NSSize bs)
return 0.0;
}
- (void) setFrameCenterRotation:(CGFloat)rot;
- (void) setFrameCenterRotation:(CGFloat)rot
{
// FIXME this is dummy, we don't have layers yet
// we probably need a Matrix akin frame rotation.
@ -5211,14 +5211,14 @@ static NSView* findByTag(NSView *view, NSInteger aTag, NSUInteger *level)
return _contentCompressionResistancePriority;
}
- (void) setContentCompressionResistancePriority: (NSLayoutPriority)priority;
- (void) setContentCompressionResistancePriority: (NSLayoutPriority)priority
{
_contentCompressionResistancePriority = priority;
}
- (NSSize) intrinsicContentSize
{
return NSMakeSize(NSViewNoIntrinsicMetric, NSViewNoIntrinsicMetric);
return NSMakeSize(NSViewNoIntrinsicMetric, NSViewNoIntrinsicMetric)
}
- (CGFloat) baselineOffsetFromBottom