~ubuntu-branches/ubuntu/saucy/bc/saucy-proposed

« back to all changes in this revision

Viewing changes to bc/execute.c

  • Committer: Package Import Robot
  • Author(s): John G. Hasler
  • Date: 2012-06-22 21:00:45 UTC
  • Revision ID: package-import@ubuntu.com-20120622210045-cpu8v54e1x1z0ep0
Tags: 1.06.95-3
* Applied patch from Pádraig Brady.
  Closes: #608255: bc uses uninitialized memory

* Applied patch from Paul Dwerryhouse.
  Closes: #472250: please return support for .dcrc file

* Applied patch from Ian Jackson.
  Closes: #488735: notice read and write errors on input and output

* Generated bc.html and dc.html but something is still wrong.

* Added homepage field to debian/control.

* I can't see the problem with hyphens.

* Fixed doc-base white space.

* Added watch file.

* I believe that the above changes deal with 558188.
  Closes: #558188: Changes made in 1.06.94-3.1 NMU have been lost

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
              }
109
109
            out_char ('\n');
110
110
          }
 
111
        checkferror_output(stdout);
111
112
      }
112
113
#endif
113
114
 
222
223
                }
223
224
            }
224
225
        fflush (stdout);
 
226
        checkferror_output(stdout);
225
227
        break;
226
228
 
227
229
      case 'R' : /* Return from function */
257
259
        if (inst == 'W') out_char ('\n');
258
260
        store_var (4);  /* Special variable "last". */
259
261
        fflush (stdout);
 
262
        checkferror_output(stdout);
260
263
        pop ();
261
264
        break;
262
265
 
338
341
      case 'w' : /* Write a string to the output. */
339
342
        while ((ch = byte(&pc)) != '"') out_schar (ch);
340
343
        fflush (stdout);
 
344
        checkferror_output(stdout);
341
345
        break;
342
346
                   
343
347
      case 'x' : /* Exchange Top of Stack with the one under the tos. */
545
549
    {
546
550
      signal (SIGINT, use_quit);
547
551
      if (had_sigint)
548
 
        printf ("\ninterrupted execution.\n");
 
552
        {
 
553
          printf ("\ninterrupted execution.\n");
 
554
          checkferror_output(stdout);
 
555
        }
549
556
    }
550
557
}
551
558
 
580
587
          out_col = 0;  /* Saw a new line */
581
588
        }
582
589
    }
 
590
  checkferror_input(stdin);
583
591
 
584
592
  /* Classify and preprocess the input character. */
585
593
  if (isdigit(in_ch))