- Currently disabled attempts at logging commands
- Added a warning for excessive data rates on monitors - Added statistics to devser and thus to scriptcontext - Added byte concatenation to dynstring - Added aborting for reflection generation to fourmess.c - Added data checksum testing to hipadaba, use for update tests - Fixed interrupt discovery in network.c, caused invalid interrupt codes which in turn confused sicscron which had to be fixed too. - Renamed ubcalc into ubcalcint in order to reclaim the ubcalc for Jurg - Added an a3offset to tasub in order to fix what I perceive an IS problem - Added support for the newer version of the Siemens SPS, the S7 - Added a not yet fully working sinqhttpopt driver which talks to http HM without libghttp SKIPPED: psi/delcam.c psi/make_gen psi/psi.c psi/sinq.c psi/sinq.h psi/sinqhttpopt.c psi/slsvme.c psi/spss7.c
This commit is contained in:
20
dynstring.c
20
dynstring.c
@ -174,7 +174,27 @@ int DynStringConcatChar(pDynString self, char c)
|
||||
self->iTextLen++;
|
||||
return 1;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
int DynStringConcatBytes(pDynString self, char *data, int datalen)
|
||||
{
|
||||
int iRequested, iRet;
|
||||
|
||||
assert(self);
|
||||
assert(self->iMAGIC == DYNMAGIC);
|
||||
|
||||
iRequested = self->iTextLen + datalen;
|
||||
if (iRequested >= self->iBufferSize) {
|
||||
iRet = Resize(self, iRequested);
|
||||
if (!iRet) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
memcpy(self->pBuffer + self->iTextLen,data,datalen);
|
||||
self->iTextLen += datalen;
|
||||
return 1;
|
||||
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
int DynStringInsert(pDynString self, char *pText, int iPos)
|
||||
{
|
||||
|
Reference in New Issue
Block a user