Browse Source

alter & altermod reinstated

pre-master-46
h_vogt 17 years ago
parent
commit
7c667e0fd7
  1. 4
      ChangeLog
  2. 1343
      src/frontend/device.c
  3. 14
      src/frontend/inpcom.c

4
ChangeLog

@ -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

1343
src/frontend/device.c
File diff suppressed because it is too large
View File

14
src/frontend/inpcom.c

@ -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;
}

Loading…
Cancel
Save