vlp-10 Using coding style in genint.h and comm.h
[vlp.git] / src / global / comm.h
index 4ebc08b850be8f1a23119e971741f791b1ea023b..b5c7f304b9e4783f256c8ea576d1e876dca5bf25 100644 (file)
@@ -7,46 +7,36 @@
 typedef char string20[20];
 
 typedef struct {
-    int node;
-    int pix;
-    int mark;
+       int node;
+       int pix;
+       int mark;
 } paddr;
 
-typedef struct 
-{
-    paddr sender;       /* address of the sender and */
-    paddr receiver;   /* receiver of the message */
-    int type;      /* message type */
-    int par;         /* prototype or error signal number */
+typedef struct {
+       paddr sender;     /* address of the sender and */
+       paddr receiver;   /* receiver of the message */
+       int type;         /* message type */
+       int par;          /* prototype or error signal number */
 } ctrl_msg;
 
-
-
-typedef struct
-{
-    ctrl_msg control;
-    char params[ 256-sizeof(ctrl_msg) ];
+typedef struct {
+       ctrl_msg control;
+       char params[256 - sizeof(ctrl_msg)];
 } messg;
 
-
-typedef struct
-{
- int pword[15];
- char pstr[255];
- char pchar;
+typedef struct {
+       int pword[15];
+       char pstr[255];
+       char pchar;
 } param_struct;
 
-
-
-typedef struct
-{
- int node;
- int program_id;
+typedef struct {
+       int node;
+       int program_id;
 } ctx_struct;
 
 /* Commm struct for GRAPH element */
 
-
 #define GRAPH_ALLOCATE 1
 #define GRAPH_EXIT     2 
 #define GRAPH_FREE     3
@@ -91,8 +81,6 @@ typedef struct
 
 /* INT element */
 
-
-
 #define INT_CONNECTED  1
 #define INT_EXITING    2
 #define INT_CTX                3
@@ -110,7 +98,8 @@ typedef struct
 
 #define NET_PROPAGATE  0
 #define NET_PROPAGATE_OUT              1
-/*  msg_type = MSG_NET, param.pword[0] = NET_PROPAGATE
+/*
+   msg_type = MSG_NET, param.pword[0] = NET_PROPAGATE
    param.pword[1] = MSG_INT or MSG_VLP
    param.pword[2,3] = sender context or node,0
    param.pword[4,5] = receiver context or node,0
@@ -154,7 +143,6 @@ typedef struct
 #define NET_NODES_NUM          26
 #define NET_NODES_NUM_RESPONSE 27
 
-
 /* VLP message */
 
 #define VLP_WRITE              0
@@ -169,80 +157,22 @@ typedef struct
 /*                Message structure                            */
 /*------------------------------------------------------------*/
 
-
 #define MSG_VLP                0
 #define MSG_NET                1
 #define MSG_GRAPH      2
 #define MSG_INT                3
 
-typedef struct
-{
- short msg_type;
- param_struct param;
- messg int_msg;
+typedef struct {
+       short msg_type;
+       param_struct param;
+       messg int_msg;
 } MESSAGE;
 
 
-typedef struct
-{
- short msg_type;
- param_struct param;
+typedef struct {
+       short msg_type;
+       param_struct param;
 } G_MESSAGE;
 
-
-
-
 #define TCP_BUFFER_SIZE        30*sizeof(MESSAGE);
 
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-