- Removed -fwritable-string
SKIPPED: psi/dornier2.c psi/ecbdriv.c psi/el734hp.c psi/libpsi.a psi/make_gen psi/makefile_linux psi/pimotor.c psi/pipiezo.c psi/sinqhttp.c psi/tcpdornier.c psi/velodornier.c
This commit is contained in:
32
ubcalc.c
32
ubcalc.c
@ -17,17 +17,6 @@
|
||||
#include "ubcalc.h"
|
||||
#include "motor.h"
|
||||
#include "hkl.h"
|
||||
/*---------------------------------------------------------------------*/
|
||||
typedef struct {
|
||||
pObjectDescriptor pDes;
|
||||
pHKL hkl;
|
||||
lattice direct;
|
||||
reflection r1, r2, r3;
|
||||
MATRIX UB;
|
||||
double allowedDeviation;
|
||||
int indexSearchLimit;
|
||||
int maxSuggestions;
|
||||
} UBCALC, *pUBCALC;
|
||||
/*----------------------------------------------------------------------*/
|
||||
static void killUBCALC(void *pData){
|
||||
pUBCALC self = (pUBCALC)pData;
|
||||
@ -610,3 +599,24 @@ int UBCalcWrapper(SConnection *pCon, SicsInterp *pSics, void *pData,
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
/*------------------------------------------------------------------------*/
|
||||
reflection getReflection(void *ubcalc, int no){
|
||||
pUBCALC self = (pUBCALC)ubcalc;
|
||||
|
||||
assert(self != NULL);
|
||||
|
||||
switch(no){
|
||||
case 0:
|
||||
return self->r1;
|
||||
break;
|
||||
case 1:
|
||||
return self->r2;
|
||||
break;
|
||||
case 2:
|
||||
return self->r3;
|
||||
break;
|
||||
default:
|
||||
assert(0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user