Use GS_PASS_ARGUMENTS

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6844 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2000-06-29 14:25:07 +00:00
parent 44d29da832
commit 136417828c
8 changed files with 49 additions and 8 deletions

View file

@ -1,3 +1,16 @@
2000-06-29 Adam Fedor <fedor@gnu.org>
* Source/NSText.m (-setFont:): Return if font==nil.
* Source/NSTextView.m (setAllowsUndo:, allowsUndo): Stub
implementation.
* Source/Functions.m (NSApplicationMain): Call NSProcessInfo
initialization if GS_PASS_ARGUMENTS.
* Tools/example.m: Likewise.
* Tools/gpbs.m: Likewise.
* Tools/make_services.m: Likewise.
* Tools/set_show_services.m: Likewise.
Tue Jun 27 19:35:54 2000 Nicola Pero <nicola@brainstorm.co.uk>
* Source/NSButton.m ([-allowsMixedState]): Implemented.

View file

@ -28,6 +28,7 @@
#include <Foundation/NSAutoreleasePool.h>
#include <Foundation/NSBundle.h>
#include <Foundation/NSProcessInfo.h>
#include <AppKit/NSApplication.h>
#include <AppKit/NSEvent.h>
@ -46,7 +47,7 @@ NSApplicationMain(int argc, const char **argv)
NSString *className;
Class appClass;
CREATE_AUTORELEASE_POOL(pool);
#if LIB_FOUNDATION_LIBRARY
#if defined(LIB_FOUNDATION_LIBRARY) || defined(GS_PASS_ARGUMENTS)
extern char **environ;
[NSProcessInfo initializeWithArguments: (char**)argv

View file

@ -1747,6 +1747,9 @@ scanRange(NSScanner *scanner, NSCharacterSet* aSet)
{
NSRange fullRange = NSMakeRange(0, [_textStorage length]);
if (font == nil)
return;
[self setFont: font ofRange: fullRange];
[_typingAttributes setObject: font forKey: NSFontAttributeName];
}

View file

@ -167,6 +167,15 @@
return _background_color;
}
- (void) setAllowsUndo: (BOOL)flag
{
}
- (BOOL) allowsUndo
{
return NO;
}
- (void) setDrawsBackground: (BOOL)flag
{
_tf.draws_background = flag;

View file

@ -227,11 +227,16 @@ init(int argc, char** argv)
}
int
main(int argc, char** argv)
main(int argc, char** argv, char **env)
{
NSAutoreleasePool *pool = [NSAutoreleasePool new];
ExampleServices *server = [ExampleServices new];
NSAutoreleasePool *pool;
ExampleServices *server;
#ifdef GS_PASS_ARGUMENTS
[NSProcessInfo initializeWithArguments:argv count:argc environment:env];
#endif
pool = [NSAutoreleasePool new];
server = [ExampleServices new];
init(argc, argv);
// [NSObject enableDoubleReleaseCheck: YES];

View file

@ -1030,10 +1030,14 @@ init(int argc, char** argv)
int
main(int argc, char** argv)
main(int argc, char** argv, char **env)
{
NSAutoreleasePool *pool = [NSAutoreleasePool new];
NSAutoreleasePool *pool;
#ifdef GS_PASS_ARGUMENTS
[NSProcessInfo initializeWithArguments:argv count:argc environment:env];
#endif
pool = [NSAutoreleasePool new];
init(argc, argv);
// [NSObject enableDoubleReleaseCheck: YES];

View file

@ -55,7 +55,7 @@ static Class dClass;
static Class sClass;
int
main(int argc, char** argv)
main(int argc, char** argv, char **env_c)
{
NSAutoreleasePool *pool;
NSData *data;
@ -74,6 +74,9 @@ main(int argc, char** argv)
NSMutableDictionary *fullMap;
NSDictionary *oldMap;
#ifdef GS_PASS_ARGUMENTS
[NSProcessInfo initializeWithArguments:argv count:argc environment:env_c];
#endif
pool = [NSAutoreleasePool new];
aClass = [NSArray class];

View file

@ -30,7 +30,7 @@
int
main(int argc, char** argv)
main(int argc, char** argv, char **env)
{
NSAutoreleasePool *pool;
NSProcessInfo *proc;
@ -38,6 +38,9 @@ main(int argc, char** argv)
unsigned index;
// [NSObject enableDoubleReleaseCheck: YES];
#ifdef GS_PASS_ARGUMENTS
[NSProcessInfo initializeWithArguments:argv count:argc environment:env];
#endif
pool = [NSAutoreleasePool new];