Removed unused files.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2532 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 1997-10-20 15:28:45 +00:00
parent e7936968ff
commit ef7432ca4a
11 changed files with 15 additions and 152 deletions

View file

@ -1,6 +1,15 @@
Mon Oct 20 09:51:53 1997 Adam Fedor <fedor@doc.com>
* Version: Update ftp sites.
* checks/Philosopher.h: Removed.
* checks/Philosopher.m: Likewise.
* checks/basic-old.m: Likewise.
* checks/nsarchiving.m: Likewise.
* src/Foundation/NSUser.h: Likewise.
* src/Foundation/x-basics.h.in: Likewise.
* src/Foundation/x-callbacks.h.in: Likewise.
* checks/Makefile (HDRS): Add oldserver.h.
* doc/Makefile: Add other texi files.
* NSCharacterSets/Makefile (DIST_FILES): Remove Makefile.preamble.
* NSTimeZones/Makefile (DIST_FILES): Likewise.
* NSCharacterSets/Makefile.postamble (copy-dist): Correct copy.

View file

@ -41,7 +41,9 @@ readme.texi \
todo.texi \
machines.texi \
gnustep-faq.texi \
faq.texi
faq.texi \
version.texi \
NSZone.texi
TEXT_FILES = \
TODO INSTALL NEWS CODING-STANDARDS README ANNOUNCE ADVERTISEMENT

View file

@ -1,36 +0,0 @@
/* Interface to NSUser functions for GNUStep
Copyright (C) 1995, 1996 Free Software Foundation, Inc.
Written by: Martin Michlmayer
Date: 1995
This file is part of the GNUstep Base Library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
See NSUser.c for additional information. */
#ifndef __NSUser_h_GNUSTEP_BASE_INCLUDE
#define __NSUser_h_GNUSTEP_BASE_INCLUDE
#include <Foundation/NSString.h>
NSString* NSUserName (void);
NSString* NSHomeDirectory (void);
NSString* NSDirectoryForUser (char * userName);
#endif /* __NSUser_h_GNUSTEP_BASE_INCLUDE */

View file

@ -30,7 +30,7 @@ resourcedir = $(GNUSTEP_RESOURCES)/gnustep
TIMEZONE_ARCHIVE = \
NSTimeZones.tar
DIST_FILES = Makefile $(TIMEZONE_ARCHIVE)
DIST_FILES = Makefile Makefile.postamble $(TIMEZONE_ARCHIVE)
-include Makefile.preamble

View file

@ -136,7 +136,8 @@ LoadMe_RESOURCE_DIRS = English.lproj
SRCS = $(TOOL_NAME:=.m)
HDRS = \
server.h
server.h \
oldserver.h
DYNAMIC_MFILES = \
LoadMe.m \

View file

@ -1,24 +0,0 @@
//
// Philosopher.h
//
// A class of hungry philosophers
//
#include <Foundation/NSLock.h>
#include <Foundation/NSThread.h>
// Conditions
#define NO_FOOD 1
#define FOOD_SERVED 2
@interface Philosopher : NSObject
{
int chair;
}
// Instance methods
- (void)sitAtChair:(int)position;
- (int)chair;
@end

View file

@ -1,61 +0,0 @@
//
// Philosopher.h
//
// A class of hungry philosophers
//
#include "Philosopher.h"
extern id forks[5];
@implementation Philosopher
// Instance methods
- (void)sitAtChair:(int)position
{
int i;
// Sit down
chair = position;
// Its a constant battle to feed yourself
while (1)
{
// Get the fork to our left
[forks[chair] lockWhenCondition:FOOD_SERVED];
// Get the fork to our right
[forks[(chair + 1) % 5] lockWhenCondition:FOOD_SERVED];
// Start eating!
printf("Philosopher %d can start eating.\n", chair);
for (i = 0;i < 100000; ++i)
{
if ((i % 10000) == 0)
printf("Philosopher %d is eating.\n", chair);
}
// Done eating
printf("Philosopher %d is done eating.\n", chair);
// Drop the fork to our left
[forks[chair] unlock];
// Drop the fork to our right
[forks[(chair + 1) % 5] unlock];
// Wait until we are hungry again
for (i = 0;i < 1000000 * (chair + 1); ++i) ;
}
// We never get here, but this is what we should do
[NSThread exit];
}
- (int)chair
{
return chair;
}
@end

View file

@ -1,10 +0,0 @@
#include <objc/objc-api.h>
#include <objc/Object.h>
#include <stdio.h>
int main ()
{
id o = [Object new];
printf ("Hello from object at 0x%x\n", (unsigned)[o self]);
exit (0);
}

View file

@ -1,18 +0,0 @@
#include <Foundation/NSArchiver.h>
#include <Foundation/NSArray.h>
#include <Foundation/NSString.h>
int
main ()
{
id a = [NSArray arrayWithObjects:
[NSObject class],
[NSArray class],
nil];
[NSArchiver archiveRootObject:a toFile:@"./nsarchiving.data"];
[a release];
/* NSUnarchiver not available yet. */
exit (0);
}