alter & altermod reinstated

This commit is contained in:
h_vogt 2009-02-08 14:52:16 +00:00
parent 00563de621
commit 7c667e0fd7
3 changed files with 719 additions and 600 deletions

View File

@ -1,3 +1,7 @@
2009-02-07 Holger Vogt
* device.c, inpcom.c
alter and altermod commands reinstated and improved
2009-02-01 Dietmar Warning
* alloc.c, outitf.c: exclude heap usage for windows compile under __MINGW__
* resource.c: meminfo api usage not for commandline version

File diff suppressed because it is too large Load Diff

View File

@ -1338,9 +1338,9 @@ inp_readall(FILE *fp, struct line **data, int call_depth, char *dir_name)
working->li_next = tmp_ptr;
working = tmp_ptr2;
//end = working;
//working = working->li_next;
//end->li_next = NULL;
/* end = working;
* working = working->li_next;
* end->li_next = NULL; */
continue;
}
@ -1369,13 +1369,10 @@ inp_readall(FILE *fp, struct line **data, int call_depth, char *dir_name)
tmp_ptr = library_ll_ptr[i][j]->li_next;
library_ll_ptr[i][j]->li_next = working;
// renumber lines
/* renumber lines */
for ( start_lib = working; !ciprefix(".endl", start_lib->li_line); start_lib = start_lib->li_next )
start_lib->li_linenum = line_number++;
start_lib->li_linenum = line_number++;
start_lib->li_linenum = line_number++; // renumber endl line
//end->li_next = working;
break;
}
}
@ -1804,7 +1801,6 @@ inp_remove_excess_ws(struct line *deck )
struct line *c = deck;
while ( c != NULL ) {
if ( *c->li_line == '*' ) { c = c->li_next; continue; }
if ( ciprefix( "alter", c->li_line ) ) { c = c->li_next; continue; }
c->li_line = inp_remove_ws(c->li_line);
c = c->li_next;
}