~ubuntu-branches/ubuntu/trusty/gnustep-base/trusty-proposed

« back to all changes in this revision

Viewing changes to Headers/Additions/GNUstepBase/GSFunctions.h

  • Committer: Package Import Robot
  • Author(s): Yavor Doganov
  • Date: 2011-09-15 12:31:15 UTC
  • mfrom: (1.2.11 upstream) (8.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20110915123115-rmvsia9z0211izvq
Tags: 1.22.1-1
* New upstream release:
  + Fixes implicit declaration of function (Closes: #629216).
* debian/rules (v_make): Set to 2.6.1.
  (install-common): Do not delete non-existent .swp file.
* debian/control.m4 (Build-Depends): Remove gobjc; gnustep-make now
  depends on it.
  (libgnustep-base-dev) <Depends>: Likewise.
  (Suggests): Remove; completely pointless.
* debian/control: Regenerate.
* debian/patches/avoid-nsl-linkage.patch: Refresh.
* debian/patches/autoreconf.patch: Regenerate.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/** Additional functions and macros for GNUStep
2
 
   Copyright (C) 2005 Free Software Foundation, Inc.
3
 
 
4
 
   Written by:  Richard Frith-Macdonald <rfm@gnu.org>
5
 
   Created: 2005
6
 
   
7
 
   This file is part of the GNUstep Base Library.
8
 
 
9
 
   This library is free software; you can redistribute it and/or
10
 
   modify it under the terms of the GNU Lesser General Public
11
 
   License as published by the Free Software Foundation; either
12
 
   version 2 of the License, or (at your option) any later version.
13
 
   
14
 
   This library is distributed in the hope that it will be useful,
15
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17
 
   Library General Public License for more details.
18
 
   
19
 
   You should have received a copy of the GNU Lesser General Public
20
 
   License along with this library; if not, write to the Free
21
 
   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22
 
   Boston, MA 02111 USA.
23
 
 
24
 
   AutogsdocSource:     Additions/GSFunctions.m
25
 
   */ 
26
 
 
27
 
#ifndef __GSFunctions_h_GNUSTEP_BASE_INCLUDE
28
 
#define __GSFunctions_h_GNUSTEP_BASE_INCLUDE
29
 
#import "GNUstepBase/GNUstep.h"
30
 
 
31
 
#import "GNUstepBase/preface.h"
32
 
#import "GNUstepBase/GSObjCRuntime.h"
33
 
 
34
 
#if     defined(__cplusplus)
35
 
extern "C" {
36
 
#endif
37
 
 
38
 
#define GSLocalizedStringFromTableInFramework(key, tbl, fpth, comment) \
39
 
  [[NSBundle mainBundle] localizedStringForKey:(key) value:@"" \
40
 
  table: [bundle pathForGNUstepResource:(tbl) ofType: nil inDirectory: (fpth)]
41
 
 
42
 
  /* Now Support for Quick Localization */
43
 
 
44
 
  /* The quickest possible way to localize a string:
45
 
    
46
 
     NSLog (_(@"New Game"));
47
 
    
48
 
     Please make use of the longer functions taking a comment when you
49
 
     get the time to localize seriously your code.
50
 
  */
51
 
 
52
 
#if     GS_API_VERSION(GS_API_NONE,011500)
53
 
@class  NSArray;
54
 
@class  NSString;
55
 
/** 
56
 
 * Try to locate file/directory (aName).(anExtension) in paths.
57
 
 * Will return the first found or nil if nothing is found.<br />
58
 
 * Deprecated ... may be removed in later release.
59
 
 */
60
 
GS_EXPORT NSString *GSFindNamedFile(NSArray *paths, NSString *aName,
61
 
  NSString *anExtension);
62
 
#endif
63
 
 
64
 
#if     defined(__cplusplus)
65
 
}
66
 
#endif
67
 
 
68
 
#endif /* __NSPathUtilities_h_GNUSTEP_BASE_INCLUDE */