formatting (not complete)

This commit is contained in:
Holger Vogt 2021-04-10 16:46:03 +02:00
parent 545d2f9177
commit 19ddeb8fe6
1 changed files with 478 additions and 483 deletions

View File

@ -555,20 +555,15 @@ ifs_file : {TBL->num_conn = 0;
alloced_size [TBL_PORT] = DEFAULT_SIZE_CONN;
alloced_size [TBL_PARAMETER] = DEFAULT_SIZE_PARAM;
alloced_size [TBL_STATIC_VAR] =
DEFAULT_SIZE_INST_VAR;
alloced_size [TBL_STATIC_VAR] = DEFAULT_SIZE_INST_VAR;
TBL->conn = (Conn_Info_t*)
calloc (DEFAULT_SIZE_CONN,
sizeof (Conn_Info_t));
calloc(DEFAULT_SIZE_CONN, sizeof (Conn_Info_t));
TBL->param = (Param_Info_t*)
calloc (DEFAULT_SIZE_PARAM,
sizeof (Param_Info_t));
calloc (DEFAULT_SIZE_PARAM, sizeof (Param_Info_t));
TBL->inst_var = (Inst_Var_Info_t*)
calloc (DEFAULT_SIZE_INST_VAR,
sizeof (Inst_Var_Info_t));
if (! (TBL->conn && TBL->param &&
TBL->inst_var) ) {
calloc (DEFAULT_SIZE_INST_VAR, sizeof (Inst_Var_Info_t));
if (! (TBL->conn && TBL->param && TBL->inst_var) ) {
fatal ("Could not allocate enough memory");
}
}