mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 05:47:42 +02:00
formatting (not complete)
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user