GScheme-20020806.tar
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <AppKit/AppKit.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
void *state;
|
||||
Class cl;
|
||||
|
||||
while((cl = objc_next_class(&state))){
|
||||
NSLog(@"%@\n", NSStringFromClass(cl));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <AppKit/AppKit.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
NSMutableSet *strset = [NSMutableSet setWithCapacity:1];
|
||||
NSString
|
||||
*str1 = [NSString stringWithCString:"abcd"],
|
||||
*str2 = [NSString stringWithCString:"abcd"];
|
||||
|
||||
[strset addObject:str1];
|
||||
|
||||
NSLog(@"%@ %@ %@\n", str1, str2,
|
||||
[strset member:@"abcd"]);
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
flex scheme.flex
|
||||
Executable
+26
@@ -0,0 +1,26 @@
|
||||
gcc classes.m \
|
||||
-DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 \
|
||||
-DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -fPIC -g -DGSWARN \
|
||||
-DGSDIAGNOSE -O2 -fgnu-runtime -I. -fgnu-runtime \
|
||||
-I/usr/GNUstep/System/Headers \
|
||||
-I/home/gnustep/GNUstep/Headers/gnustep \
|
||||
-I/usr/GNUstep/Local/Headers/gnustep \
|
||||
-I/usr/GNUstep/Network/Headers/gnustep \
|
||||
-I/usr/GNUstep/System/Headers/gnustep \
|
||||
-I/home/gnustep/GNUstep/Headers/ix86/linux-gnu \
|
||||
-I/home/gnustep/GNUstep/Headers \
|
||||
-I/usr/GNUstep/Local/Headers/ix86/linux-gnu \
|
||||
-I/usr/GNUstep/Local/Headers \
|
||||
-I/usr/GNUstep/Network/Headers/ix86/linux-gnu \
|
||||
-I/usr/GNUstep/Network/Headers \
|
||||
-I/usr/GNUstep/System/Headers/ix86/linux-gnu \
|
||||
-I/usr/GNUstep/System/Headers \
|
||||
-L/home/gnustep/GNUstep/Libraries/ix86/linux-gnu/gnu-gnu-gnu \
|
||||
-L/home/gnustep/GNUstep/Libraries/ix86/linux-gnu \
|
||||
-L/usr/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu \
|
||||
-L/usr/GNUstep/Local/Libraries/ix86/linux-gnu \
|
||||
-L/usr/GNUstep/Network/Libraries/ix86/linux-gnu/gnu-gnu-gnu \
|
||||
-L/usr/GNUstep/Network/Libraries/ix86/linux-gnu \
|
||||
-L/usr/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu \
|
||||
-L/usr/GNUstep/System/Libraries/ix86/linux-gnu -lgnustep-gui \
|
||||
-lgnustep-base -lobjc -lpthread -lz -lgmp -ldl -lm -lfl
|
||||
Executable
+26
@@ -0,0 +1,26 @@
|
||||
gcc testscheme.m SchemeTypes.m scheme.tab.m scheme.lex.m \
|
||||
-DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 \
|
||||
-DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -fPIC -g -DGSWARN \
|
||||
-DGSDIAGNOSE -O2 -fgnu-runtime -I. -fgnu-runtime \
|
||||
-I/usr/GNUstep/System/Headers \
|
||||
-I/home/gnustep/GNUstep/Headers/gnustep \
|
||||
-I/usr/GNUstep/Local/Headers/gnustep \
|
||||
-I/usr/GNUstep/Network/Headers/gnustep \
|
||||
-I/usr/GNUstep/System/Headers/gnustep \
|
||||
-I/home/gnustep/GNUstep/Headers/ix86/linux-gnu \
|
||||
-I/home/gnustep/GNUstep/Headers \
|
||||
-I/usr/GNUstep/Local/Headers/ix86/linux-gnu \
|
||||
-I/usr/GNUstep/Local/Headers \
|
||||
-I/usr/GNUstep/Network/Headers/ix86/linux-gnu \
|
||||
-I/usr/GNUstep/Network/Headers \
|
||||
-I/usr/GNUstep/System/Headers/ix86/linux-gnu \
|
||||
-I/usr/GNUstep/System/Headers \
|
||||
-L/home/gnustep/GNUstep/Libraries/ix86/linux-gnu/gnu-gnu-gnu \
|
||||
-L/home/gnustep/GNUstep/Libraries/ix86/linux-gnu \
|
||||
-L/usr/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu \
|
||||
-L/usr/GNUstep/Local/Libraries/ix86/linux-gnu \
|
||||
-L/usr/GNUstep/Network/Libraries/ix86/linux-gnu/gnu-gnu-gnu \
|
||||
-L/usr/GNUstep/Network/Libraries/ix86/linux-gnu \
|
||||
-L/usr/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu \
|
||||
-L/usr/GNUstep/System/Libraries/ix86/linux-gnu -lgnustep-gui \
|
||||
-lgnustep-base -lobjc -lpthread -lz -lgmp -ldl -lm -lfl
|
||||
Executable
BIN
Binary file not shown.
@@ -0,0 +1,13 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
char buf[128];
|
||||
|
||||
while(gets(buf)!=NULL){
|
||||
double val;
|
||||
sscanf(buf, "%le", &val);
|
||||
printf("got %le\n", val);
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <AppKit/AppKit.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
NSMutableSet *strset = [NSMutableSet setWithCapacity:1];
|
||||
NSString
|
||||
*str1 = [NSString stringWithCString:"abcd"],
|
||||
*str2 = [NSString stringWithCString:"abcd"];
|
||||
|
||||
[strset addObject:str1];
|
||||
|
||||
NSLog(@"%@ %@ %@\n", str1, str2,
|
||||
[strset member:@"abcd"]);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <AppKit/AppKit.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
NSMutableSet *strset = [NSMutableSet setWithCapacity:1];
|
||||
NSString
|
||||
*str1 = [NSString stringWithCString:"abcd"],
|
||||
*str2 = [NSString stringWithCString:"abcd"];
|
||||
|
||||
[strset addObject:str1];
|
||||
|
||||
NSLog(@"%@ %@ %@\n", str1, str2,
|
||||
[strset member:str2]);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
|
||||
/*
|
||||
test scheme parser
|
||||
by marko riedel, mriedel@neuearbeit.de
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "schemenode.h"
|
||||
|
||||
extern scmnodeptr yylval;
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
yyparse();
|
||||
print(yylval);
|
||||
}
|
||||
Reference in New Issue
Block a user