inpcom.c, cleanup

This commit is contained in:
rlar 2013-05-19 21:48:49 +02:00
parent 4e9102daaa
commit b6eab8029b
1 changed files with 6 additions and 6 deletions

View File

@ -958,7 +958,7 @@ create_new_card(char *card_str, int *line_number) {
newcard->li_error = NULL;
newcard->li_actual = NULL;
*line_number = *line_number + 1;
*line_number += 1;
return newcard;
}
@ -1383,7 +1383,7 @@ get_subckts_for_subckt(struct line *start_card, char *subckt_name,
have_subckt = TRUE;
if (!have_subckt) {
new_names[tmp_cnt++] = used_subckt_names[*num_used_subckt_names] = inst_subckt_name;
*num_used_subckt_names = *num_used_subckt_names + 1;
*num_used_subckt_names += 1;
} else {
tfree(inst_subckt_name);
}
@ -1395,7 +1395,7 @@ get_subckts_for_subckt(struct line *start_card, char *subckt_name,
found_model = TRUE;
if (!found_model) {
used_model_names[*num_used_model_names] = model_name;
*num_used_model_names = *num_used_model_names + 1;
*num_used_model_names += 1;
} else {
tfree(model_name);
}
@ -1420,7 +1420,7 @@ get_subckts_for_subckt(struct line *start_card, char *subckt_name,
if (strcmp(used_model_names[i], model_name) == 0) found_model = TRUE;
if (!found_model) {
used_model_names[*num_used_model_names] = model_name;
*num_used_model_names = *num_used_model_names + 1;
*num_used_model_names += 1;
} else {
tfree(model_name);
}
@ -2568,7 +2568,7 @@ inp_fix_subckt_multiplier(struct line *subckt_card,
subckt_param_names[num_subckt_params] = strdup("m");
subckt_param_values[num_subckt_params] = strdup("1");
num_subckt_params = num_subckt_params + 1;
num_subckt_params ++;
if (!strstr(subckt_card->li_line, "params:")) {
new_str = TMALLOC(char, strlen(subckt_card->li_line) + 13);
@ -3739,7 +3739,7 @@ inp_sort_params(struct line *start_card, struct line *end_card, struct line *car
char after = *(str_ptr+strlen(param_names[i]));
if (!(is_arith_char(before) || isspace(before) || (str_ptr-1) < curr_line) ||
!(is_arith_char(after) || isspace(after) || after == '\0')) {
str_ptr = str_ptr + 1;
str_ptr ++;
continue;
}
beg = str_ptr - 1;