SOURCES: CodeEditor-pass-arguments.patch (NEW) - fix start with pa...
qboosh
qboosh at pld-linux.org
Sat Oct 22 15:49:05 CEST 2005
Author: qboosh Date: Sat Oct 22 13:49:05 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- fix start with pass-arguments
---- Files affected:
SOURCES:
CodeEditor-pass-arguments.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/CodeEditor-pass-arguments.patch
diff -u /dev/null SOURCES/CodeEditor-pass-arguments.patch:1.1
--- /dev/null Sat Oct 22 15:49:05 2005
+++ SOURCES/CodeEditor-pass-arguments.patch Sat Oct 22 15:49:00 2005
@@ -0,0 +1,19 @@
+--- CodeEditor/CodeEditor/main.m.orig 2003-10-09 17:06:06.000000000 +0200
++++ CodeEditor/CodeEditor/main.m 2005-10-22 15:37:45.238113904 +0200
+@@ -21,10 +21,15 @@
+ */
+
+ #include <AppKit/AppKit.h>
++#include <Foundation/NSProcessInfo.h>
+ #include "DocumentController.h"
+
+-int main(int argc, const char *argv[])
++int main(int argc, const char *argv[], char *env[])
+ {
++#ifdef GS_PASS_ARGUMENTS
++ [NSProcessInfo initializeWithArguments: (char**)argv count: argc environment: env];
++#endif
++
+ NSAutoreleasePool *pool = [NSAutoreleasePool new];
+ DocumentController *controller = [DocumentController sharedDocumentController];
+ [NSApplication sharedApplication];
================================================================
More information about the pld-cvs-commit
mailing list