File: common.m

package info (click to toggle)
gnustep-make 2.9.3-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,676 kB
  • sloc: sh: 4,577; objc: 1,031; perl: 453; makefile: 56
file content (22 lines) | stat: -rw-r--r-- 367 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#import <Foundation/Foundation.h>
#ifdef APP
#import <AppKit/AppKit.h>
#endif

int
main (int argc, const char **argv)
{
  float version;

  ENTER_POOL
  version = [[NSString stringWithString: @"0.1"] floatValue];

  GSPrintf (stdout, @"version: %f\n", version);
  LEAVE_POOL

#ifndef APP
  exit (EXIT_SUCCESS);
#else
  return NSApplicationMain (argc, argv);
#endif
}