- Reworked mesure for four circle to new specifications
* reworked table * added psd mode - exe now allows absolute paths - added getRS232Timeout to rs232controller - Fixed a couple of "guessed" return values
This commit is contained in:
17
exeman.c
17
exeman.c
@ -139,6 +139,18 @@ static pDynString locateBatchBuffer(pExeMan self, char *name){
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
do not try to convert absolute paths
|
||||
*/
|
||||
if(name[0] == '/'){
|
||||
DynStringCopy(result,name);
|
||||
if(fileExists(GetCharArray(result))){
|
||||
return result;
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
pPtr = self->batchPath;
|
||||
while((pPtr = stptok(pPtr,pPath,131,":")) != NULL){
|
||||
DynStringCopy(result,pPath);
|
||||
@ -540,7 +552,8 @@ static int infoHandler(pExeMan self, SConnection *pCon,
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
return 1; /* statement inserted, guessed return value M.Z. */
|
||||
SCWrite(pCon,"Nothing to execute",eValue);
|
||||
return 1;
|
||||
} else {
|
||||
strtolower(argv[2]);
|
||||
if(strcmp(argv[2],"stack") == 0){
|
||||
@ -554,7 +567,7 @@ static int infoHandler(pExeMan self, SConnection *pCon,
|
||||
return 1;
|
||||
} else {
|
||||
SCWrite(pCon,"ERROR: subcommand to info unknown",eError);
|
||||
return 0; /* statement inserted, guessed return value M.Z. */
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user