Commit 95f4206a authored by Claes Sjofors's avatar Claes Sjofors

Ssab antisway, array of pointer modification

parent 333c3122
......@@ -196,7 +196,7 @@
#define AS_OBJ_M_NLIMIT (object->mparams[1]) //Default 80. Maximum numbber of messages in queue.
#define AS_OBJ_M_ALWAIT (object->mparams[2]) //Default 20. Wait this number of cycles before taking next message from queue.
#define AS_OBJ_M_ALHOLD (object->mparams[3]) //Default 30. Hold the current message this number of cycles.
#define AS_OBJ_MESSAGEQP(i) ((AS_messageQ *) object->messageQ[(i)])
#define AS_OBJ_MESSAGEQP(i) ((AS_messageQ *) (unsigned long int)object->messageQ[(i)])
#define AS_OBJ_MESSAGEQPP(i) ((AS_messageQ **) &object->messageQ[(i)])
#define AS_ADDMESSAGE(type, charpp, messageArgs...) { \
if (asprintf(charpp, messageArgs) < 0) { /* ! a malloc() failure */ \
......
......@@ -71,8 +71,8 @@ void Ssab_AntiSway_init(object)
AS_OBJ_SETP->ph = NULL;
object->other=NULL;
for (i=0; i<2; i++) {
object->messageQ[(i)] = NULL;
// AS_OBJ_MESSAGEQP(i) = NULL;
object->messageQ[i] = 0;
// AS_OBJ_MESSAGEQP(i) = NULL;
(object->message[i])[79]='\0';
}
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment