formatting (not complete)

This commit is contained in:
Holger Vogt
2021-04-10 16:46:03 +02:00
parent 63b467ab91
commit 4bc3417c39
+5 -10
View File
@@ -555,20 +555,15 @@ ifs_file : {TBL->num_conn = 0;
alloced_size [TBL_PORT] = DEFAULT_SIZE_CONN; alloced_size [TBL_PORT] = DEFAULT_SIZE_CONN;
alloced_size [TBL_PARAMETER] = DEFAULT_SIZE_PARAM; alloced_size [TBL_PARAMETER] = DEFAULT_SIZE_PARAM;
alloced_size [TBL_STATIC_VAR] = alloced_size [TBL_STATIC_VAR] = DEFAULT_SIZE_INST_VAR;
DEFAULT_SIZE_INST_VAR;
TBL->conn = (Conn_Info_t*) TBL->conn = (Conn_Info_t*)
calloc (DEFAULT_SIZE_CONN, calloc(DEFAULT_SIZE_CONN, sizeof (Conn_Info_t));
sizeof (Conn_Info_t));
TBL->param = (Param_Info_t*) TBL->param = (Param_Info_t*)
calloc (DEFAULT_SIZE_PARAM, calloc (DEFAULT_SIZE_PARAM, sizeof (Param_Info_t));
sizeof (Param_Info_t));
TBL->inst_var = (Inst_Var_Info_t*) TBL->inst_var = (Inst_Var_Info_t*)
calloc (DEFAULT_SIZE_INST_VAR, calloc (DEFAULT_SIZE_INST_VAR, sizeof (Inst_Var_Info_t));
sizeof (Inst_Var_Info_t)); if (! (TBL->conn && TBL->param && TBL->inst_var) ) {
if (! (TBL->conn && TBL->param &&
TBL->inst_var) ) {
fatal ("Could not allocate enough memory"); fatal ("Could not allocate enough memory");
} }
} }