~ubuntu-branches/debian/sid/bc/sid

« back to all changes in this revision

Viewing changes to bc/execute.c

  • Committer: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2009-04-16 10:23:39 UTC
  • Revision ID: james.westby@ubuntu.com-20090416102339-l7970sr667eekbvw
Tags: 1.06.94-3.1
* Non-maintainer upload with John's permission.
* Apply patch to restore the .dcrc config file (closes: #472250)
* Merge patch from Ubuntu to notice read and write errors on
  input and output (closes: #488735)
* Include the bc manual (HTML) in the bc binary package

* Bump Standards Version to 3.8.1
* Bump debhelper compatibility to 7
* debian/rules: replace "dh_clean -k" with "dh_prep"
* debian/control: Add homepage field
* Fix hyphens in the bc and dc manpages
* Add a watch file
* debian/dc.doc-base: Remove leading whitespace
* debian/dc.doc-base: Move to section Science/Mathematics

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