mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
Fix to include config.h in all cases
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13490 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4c077389a9
commit
ea3257eefc
3 changed files with 49 additions and 8 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2002-04-17 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Tools/gdomap.c: re-order headers so config.h is used on windoze
|
||||||
|
|
||||||
2002-04-16 Richard Frith-Macdonald <rfm@gnu.org>
|
2002-04-16 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* config/config.reuseaddr.c: New test for broken SO_REUSEADDR
|
* config/config.reuseaddr.c: New test for broken SO_REUSEADDR
|
||||||
|
|
|
@ -28,11 +28,17 @@ id foo = @"NotificationTestFoo";
|
||||||
|
|
||||||
int main ()
|
int main ()
|
||||||
{
|
{
|
||||||
id o1 = [NSObject new];
|
id o1;
|
||||||
id observer1 = [Observer new];
|
id observer1;
|
||||||
id arp;
|
id arp;
|
||||||
|
|
||||||
arp = [NSAutoreleasePool new];
|
arp = [NSAutoreleasePool new];
|
||||||
|
NSLog(@"Make string object");
|
||||||
|
o1 = [NSString new];
|
||||||
|
NSLog(@"Make Observer object");
|
||||||
|
observer1 = [Observer new];
|
||||||
|
|
||||||
|
NSLog(@"Add observer to process centre");
|
||||||
|
|
||||||
[[NSNotificationCenter defaultCenter]
|
[[NSNotificationCenter defaultCenter]
|
||||||
addObserver: observer1
|
addObserver: observer1
|
||||||
|
@ -40,24 +46,54 @@ int main ()
|
||||||
name: foo
|
name: foo
|
||||||
object: o1];
|
object: o1];
|
||||||
|
|
||||||
|
NSLog(@"Add observer to distributed centre");
|
||||||
|
[[NSDistributedNotificationCenter defaultCenter]
|
||||||
|
addObserver: observer1
|
||||||
|
selector: @selector(gotNotificationFoo:)
|
||||||
|
name: foo
|
||||||
|
object: o1];
|
||||||
|
|
||||||
|
NSLog(@"Add observer to process centre");
|
||||||
[[NSNotificationCenter defaultCenter]
|
[[NSNotificationCenter defaultCenter]
|
||||||
addObserver: observer1
|
addObserver: observer1
|
||||||
selector: @selector(gotNotificationFooNoObject:)
|
selector: @selector(gotNotificationFooNoObject:)
|
||||||
name: foo
|
name: foo
|
||||||
object: nil];
|
object: nil];
|
||||||
|
|
||||||
|
NSLog(@"Add observer to distributed centre");
|
||||||
|
[[NSDistributedNotificationCenter defaultCenter]
|
||||||
|
addObserver: observer1
|
||||||
|
selector: @selector(gotNotificationFooNoObject:)
|
||||||
|
name: foo
|
||||||
|
object: nil];
|
||||||
|
|
||||||
|
|
||||||
|
NSLog(@"Post to process centre");
|
||||||
/* This will cause two messages to be printed, one for each request above. */
|
/* This will cause two messages to be printed, one for each request above. */
|
||||||
[[NSNotificationCenter defaultCenter]
|
[[NSNotificationCenter defaultCenter]
|
||||||
postNotificationName: foo
|
postNotificationName: foo
|
||||||
object: o1];
|
object: o1];
|
||||||
|
|
||||||
|
NSLog(@"Post to distributed centre");
|
||||||
|
/* This will cause two messages to be printed, one for each request above. */
|
||||||
|
[[NSDistributedNotificationCenter defaultCenter]
|
||||||
|
postNotificationName: foo
|
||||||
|
object: o1];
|
||||||
|
|
||||||
|
NSLog(@"Post to process centre");
|
||||||
/* This will cause one message to be printed. */
|
/* This will cause one message to be printed. */
|
||||||
[[NSNotificationCenter defaultCenter]
|
[[NSNotificationCenter defaultCenter]
|
||||||
postNotificationName: foo
|
postNotificationName: foo
|
||||||
object: nil];
|
object: nil];
|
||||||
|
|
||||||
|
NSLog(@"Post to distributed centre");
|
||||||
|
/* This will cause one message to be printed. */
|
||||||
|
[[NSDistributedNotificationCenter defaultCenter]
|
||||||
|
postNotificationName: foo
|
||||||
|
object: nil];
|
||||||
|
|
||||||
|
|
||||||
|
NSLog(@"Remove observer from process centre");
|
||||||
[[NSNotificationCenter defaultCenter]
|
[[NSNotificationCenter defaultCenter]
|
||||||
removeObserver: observer1
|
removeObserver: observer1
|
||||||
name: nil
|
name: nil
|
||||||
|
|
|
@ -43,6 +43,7 @@
|
||||||
#include <string.h> /* for strchr() */
|
#include <string.h> /* for strchr() */
|
||||||
#include <ctype.h> /* for strchr() */
|
#include <ctype.h> /* for strchr() */
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include "config.h"
|
||||||
#ifdef __MINGW__
|
#ifdef __MINGW__
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
|
@ -56,7 +57,6 @@
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/file.h>
|
#include <sys/file.h>
|
||||||
#include "config.h"
|
|
||||||
#ifdef HAVE_TIME_H
|
#ifdef HAVE_TIME_H
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -64,6 +64,9 @@
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if HAVE_GETOPT_H
|
||||||
|
#include <getopt.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Stuff for setting the sockets into non-blocking mode.
|
* Stuff for setting the sockets into non-blocking mode.
|
||||||
|
@ -93,10 +96,6 @@
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAVE_GETOPT_H
|
|
||||||
#include <getopt.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "gdomap.h"
|
#include "gdomap.h"
|
||||||
/*
|
/*
|
||||||
* ABOUT THIS PROGRAM
|
* ABOUT THIS PROGRAM
|
||||||
|
@ -174,8 +173,10 @@ static void queue_probe(struct in_addr* to, struct in_addr *from,
|
||||||
int num_extras, struct in_addr* extra, int is_reply);
|
int num_extras, struct in_addr* extra, int is_reply);
|
||||||
|
|
||||||
|
|
||||||
#if (defined __MINGW__)
|
#ifdef __MINGW__
|
||||||
|
|
||||||
/* A simple implementation of getopt() */
|
/* A simple implementation of getopt() */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
indexof(char c, char *string)
|
indexof(char c, char *string)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue