version 1.39, 2005/07/18 10:55:16 |
version 1.42, 2010/08/30 04:17:17 |
|
|
/* $OpenXM: OpenXM/src/kan96xx/Kan/ext.c,v 1.38 2005/07/03 11:08:53 ohara Exp $ */ |
/* $OpenXM: OpenXM/src/kan96xx/Kan/ext.c,v 1.41 2005/09/27 06:10:43 takayama Exp $ */ |
#include <stdio.h> |
#include <stdio.h> |
#include <string.h> |
#include <string.h> |
#include <sys/types.h> |
#include <sys/types.h> |
Line 387 struct object Kextension(struct object obj) |
|
Line 387 struct object Kextension(struct object obj) |
|
if (obj1.tag != Sdollar) errorKan1("%s\n","[(getServerEnv) serverName] extension."); |
if (obj1.tag != Sdollar) errorKan1("%s\n","[(getServerEnv) serverName] extension."); |
{ |
{ |
char **se; int ii; int nn; |
char **se; int ii; int nn; |
|
char **getServerEnv(char *); |
se = getServerEnv(KopString(obj1)); |
se = getServerEnv(KopString(obj1)); |
if (se == NULL) { |
if (se == NULL) { |
debugServerEnv(KopString(obj1)); |
debugServerEnv(KopString(obj1)); |
Line 466 struct object Kextension(struct object obj) |
|
Line 467 struct object Kextension(struct object obj) |
|
#else |
#else |
putoa(rob,0,KpoString("unix")); |
putoa(rob,0,KpoString("unix")); |
#endif |
#endif |
|
}else if (strcmp(key,"stringToArgv")==0) { |
|
if (size != 2) errorKan1("%s\n","[(stringToArgv) a ] extension b"); |
|
obj1 = getoa(obj,1); |
|
if (obj1.tag != Sdollar) errorKan1("%s\n","[(stringToArgv) a ] extension b, a must be a string."); |
|
rob = KstringToArgv(obj1); |
|
}else if (strcmp(key,"stringToArgv2")==0) { |
|
if (size != 3) errorKan1("%s\n","[(stringToArgv2) str separator] extension b"); |
|
obj1 = getoa(obj,1); |
|
obj2 = getoa(obj,2); |
|
rob = KstringToArgv2(obj1,obj2); |
}else if (strcmp(key,"traceClearStack")==0) { |
}else if (strcmp(key,"traceClearStack")==0) { |
traceClearStack(); |
traceClearStack(); |
rob = NullObject; |
rob = NullObject; |