Remove superfluous trailing white space from C files

This commit is contained in:
Douglas Clowes
2014-05-16 15:48:41 +10:00
parent 1881907e00
commit 4c65f82116
91 changed files with 1313 additions and 1313 deletions

View File

@@ -1,6 +1,6 @@
/*
@file beamstopaction.c
@brief Proof of concept action object for Quokka beamstops.
@brief Proof of concept action object for Quokka beamstops.
*/
#include <stdlib.h>
#include <stdio.h>
@@ -84,15 +84,15 @@ int ActNm2ID(char *actnm, char *actlist[], int numact) {
static void *AO_GetInterface(void *pData, int iID) {
pAction self = NULL;
self = (pAction)pData;
assert(self);
if(iID == DRIVEID){
return self->pDrivInt;
}
return NULL;
}
return NULL;
}
int AO_Wrapper(SConnection *pCon, SicsInterp *pSics, void *pData, int argc, char *argv[]) {
char msg[128]="No message", output[256];
@@ -144,7 +144,7 @@ int AO_Wrapper(SConnection *pCon, SicsInterp *pSics, void *pData, int argc, char
}
/* TODO allow plain output */
switch (msgType) {
case eValue:
case eValue:
sprintf(output, "%s = %s", argv[0], msg);
SCWrite(pCon, output, eValue);
break;
@@ -179,7 +179,7 @@ static long AO_StartAction(void *pData, SConnection *pCon, float fVal) {
if fVal == start then
get actionsequence which matches the actionID
send sequence
set currentAction = actionID, used by status
set currentAction = actionID, used by status
*/
char msg[128];
char cmd[AO_CMDLEN], reply[AO_CMDLEN];
@@ -222,14 +222,14 @@ if fVal == start then
debugmsg(pCon, self, "Start action");
self->fTarget = fVal;
return OKOK;
}
}
static int AO_CheckStatus(void *pData, SConnection *pCon) {
pAction self =(pAction) pData;
char cmd[AO_CMDLEN], reply[AO_CMDLEN]= " 0000000113 0007831721 0000000047 0000000000 0000000001\n:";
int devStatus, sicsStatus, comStatus, limswi, cmd_len;
int iSteps, iCounts, iFlags, iBG, iStopCode;
char msg[128];
sprintf(cmd, "MG {F10.0} _TD%c,_TP%c,_TS%c,_BG%c,_SC%c", self->cf_axis,self->cf_axis,self->cf_axis,self->cf_axis,self->cf_axis);
debugmsg(pCon, self, cmd);
// comStatus = 1;
@@ -272,7 +272,7 @@ cmd_len = AO_CMDLEN;
return sicsStatus;
}
/* @brief Check the device status and return the SICS status code
/* @brief Check the device status and return the SICS status code
*/
static float AO_GetValue(void *pData, SConnection *pCon) {
pAction self = (pAction) pData;
@@ -341,7 +341,7 @@ int ActionObjectFactory(SConnection *pCon, SicsInterp *pSics, void *pData, int a
return 0;
}
printf("Create the %s action object on asyncqueue %s\n", argv[1], argv[2]);
pNew = AO_Create(pCon, argv[2]);
if (pNew == NULL) {