Browse Source

inp_readall(): local scope for `tmp_ptr1'

pre-master-46
rlar 13 years ago
parent
commit
3877e2d0d6
  1. 1
      src/frontend/inpcom.c

1
src/frontend/inpcom.c

@ -826,6 +826,7 @@ inp_readall(FILE *fp, struct line **data, int call_depth, char *dir_name, bool c
if (ft_ngdebug) { if (ft_ngdebug) {
/*debug: print into file*/ /*debug: print into file*/
FILE *fdo = fopen("debug-out.txt", "w"); FILE *fdo = fopen("debug-out.txt", "w");
struct line *tmp_ptr1;
for (tmp_ptr1 = cc; tmp_ptr1 != NULL; tmp_ptr1 = tmp_ptr1->li_next) for (tmp_ptr1 = cc; tmp_ptr1 != NULL; tmp_ptr1 = tmp_ptr1->li_next)
fprintf(fdo, "%d %d %s\n", tmp_ptr1->li_linenum_orig, tmp_ptr1->li_linenum, tmp_ptr1->li_line); fprintf(fdo, "%d %d %s\n", tmp_ptr1->li_linenum_orig, tmp_ptr1->li_linenum, tmp_ptr1->li_line);

Loading…
Cancel
Save