- Fixed a crash coming from velo.c

- Improved saving of reflection lists
- The other changes are mostly whitespace
This commit is contained in:
koennecke
2009-10-30 13:49:37 +00:00
parent cb0e4ea434
commit 2e873e3059
13 changed files with 79 additions and 14 deletions

View File

@ -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 =