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

« back to all changes in this revision

Viewing changes to Tools/gspath.m

Tags: upstream-1.20.0
ImportĀ upstreamĀ versionĀ 1.20.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
   */
20
20
 
21
 
#include "config.h"
22
 
#include <Foundation/Foundation.h>
 
21
#import "common.h"
 
22
 
 
23
#import "Foundation/NSArray.h"
 
24
#import "Foundation/NSAutoreleasePool.h"
 
25
#import "Foundation/NSPathUtilities.h"
 
26
#import "Foundation/NSProcessInfo.h"
 
27
#import "Foundation/NSUserDefaults.h"
23
28
 
24
29
 
25
30
/**
52
57
  NSArray               *args;
53
58
 
54
59
#ifdef GS_PASS_ARGUMENTS
55
 
  [NSProcessInfo initializeWithArguments:argv count:argc environment:env];
 
60
  GSInitializeProcess(argc, argv, env);
56
61
#endif
57
62
  pool = [NSAutoreleasePool new];
58
63
  proc = [NSProcessInfo processInfo];
71
76
      NSString  *name = [[args objectAtIndex: 1] lowercaseString];
72
77
      NSString  *sep;
73
78
 
74
 
#ifdef  __MINGW32__
 
79
#ifdef  __MINGW__
75
80
      sep = @";";
76
81
#else
77
82
      sep = @":";