mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Merge pull request #217 from gnustep/nsbundle-format-argument
Annotate NSBundle localized string function with NS_FORMAT_ARGUMENT
This commit is contained in:
commit
73a21f4553
3 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2021-11-11 Frederik Seiffert <frederik@algoriddim.com>
|
||||||
|
|
||||||
|
* Headers/Foundation/NSBundle.h:
|
||||||
|
Annotate NSBundle localized string function with NS_FORMAT_ARGUMENT.
|
||||||
|
|
||||||
2021-09-20 Frederik Seiffert <frederik@algoriddim.com>
|
2021-09-20 Frederik Seiffert <frederik@algoriddim.com>
|
||||||
|
|
||||||
* Source/NSFileManager.m:
|
* Source/NSFileManager.m:
|
||||||
|
|
|
@ -345,7 +345,7 @@ GS_EXPORT_CLASS
|
||||||
*/
|
*/
|
||||||
- (NSString*) localizedStringForKey: (NSString*)key
|
- (NSString*) localizedStringForKey: (NSString*)key
|
||||||
value: (NSString*)value
|
value: (NSString*)value
|
||||||
table: (NSString*)tableName;
|
table: (NSString*)tableName NS_FORMAT_ARGUMENT(1);
|
||||||
|
|
||||||
/** Returns the absolute path to the resources directory of the bundle. */
|
/** Returns the absolute path to the resources directory of the bundle. */
|
||||||
- (NSString*) resourcePath;
|
- (NSString*) resourcePath;
|
||||||
|
|
|
@ -423,7 +423,7 @@ static inline void gs_consumed(id NS_CONSUMED GS_UNUSED_ARG o) { return; }
|
||||||
#if defined(__clang__) || GS_GCC_MINREQ(4,2)
|
#if defined(__clang__) || GS_GCC_MINREQ(4,2)
|
||||||
# define NS_FORMAT_ARGUMENT(A) __attribute__((format_arg(A)))
|
# define NS_FORMAT_ARGUMENT(A) __attribute__((format_arg(A)))
|
||||||
#else
|
#else
|
||||||
# define NS_FORMAT_ARGUMENT(F,A)
|
# define NS_FORMAT_ARGUMENT(A)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue