- Fixed a crash coming from velo.c
- Improved saving of reflection lists - The other changes are mostly whitespace
This commit is contained in:
19
reflist.c
19
reflist.c
@ -6,6 +6,10 @@
|
||||
* copyright: see file COPYRIGHT
|
||||
*
|
||||
* Mark Koennecke, July 2008
|
||||
*
|
||||
* Fixed saving of anglesheader status
|
||||
*
|
||||
* Mark Koennecke, September 2009
|
||||
*/
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
@ -26,6 +30,18 @@ typedef struct {
|
||||
int angCount;
|
||||
int count;
|
||||
} RLPriv, *pRLPriv;
|
||||
/*-----------------------------------------------------------------------*/
|
||||
int SaveRefList(void *data, char *name, FILE * fd)
|
||||
{
|
||||
pHdb node = NULL;
|
||||
pSICSOBJ self = (pSICSOBJ)data;
|
||||
|
||||
node = GetHipadabaNode(self->objectNode,"anglesheader");
|
||||
fprintf(fd,"%s anglesheader %s\n", name, node->value.v.text);
|
||||
SaveHdbTable(data,name,fd);
|
||||
|
||||
return 1;
|
||||
}
|
||||
/*----------------------------------------------------------------------
|
||||
* The point of the code below and the callback is to update the
|
||||
* configuration counts whenever the corresponding parameters
|
||||
@ -449,7 +465,8 @@ pSICSOBJ CreateReflectionList(SConnection * pCon, SicsInterp * pSics,
|
||||
SCWrite(pCon, "ERROR: failed to create reflection list", eError);
|
||||
return 0;
|
||||
}
|
||||
|
||||
pNew->pDes->SaveStatus = SaveRefList;
|
||||
|
||||
AddSICSHdbPar(pNew->objectNode, "names", usUser, MakeSICSFunc(NamesCmd));
|
||||
|
||||
cmd =
|
||||
|
Reference in New Issue
Block a user