version 1.40, 2005/09/27 05:46:50 |
version 1.42, 2010/08/30 04:17:17 |
|
|
/* $OpenXM: OpenXM/src/kan96xx/Kan/ext.c,v 1.39 2005/07/18 10:55:16 takayama 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 471 struct object Kextension(struct object obj) |
|
Line 472 struct object Kextension(struct object obj) |
|
obj1 = getoa(obj,1); |
obj1 = getoa(obj,1); |
if (obj1.tag != Sdollar) errorKan1("%s\n","[(stringToArgv) a ] extension b, a must be a string."); |
if (obj1.tag != Sdollar) errorKan1("%s\n","[(stringToArgv) a ] extension b, a must be a string."); |
rob = KstringToArgv(obj1); |
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; |