home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / msdos / programm / 8979 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  1.3 KB

  1. Path: sparky!uunet!munnari.oz.au!yoyo.aarnet.edu.au!dstos3.dsto.gov.au!cej
  2. From: cej@dstos3.dsto.gov.au
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: BC3 Nested switches in interrupt fns problem
  5. Message-ID: <1992Sep2.142153.164441@dstos3.dsto.gov.au>
  6. Date: 2 Sep 92 20:21:52 GMT
  7. Organization: Defence Science and Technology Organisation
  8. Lines: 19
  9.  
  10. Has anyone had any trouble with nested switch statements inside interrupt fns
  11. in BC++3.0 ? I had one such situation in a serial interrupt which needed to
  12. buffer incoming multibyte commands. The inner switch was executing the default:
  13. when it shouldn't have, plus what it was supposed to execute! Yes, I _did_
  14. have breaks in the right places! My solution was a number of if() statements
  15. instead of the switch. Can't tell you any more, as it is hard to debug
  16. interrupt fns !
  17.  
  18. --
  19. Chris Jones                                  E-mail: cej@dstos3.dsto.gov.au
  20. CSS/CD/ERL                                    Phone: +61 8 259 6758
  21. DSTO Salisbury, South Australia                 Fax: +61 8 259 6328
  22.  
  23. Disclaimer: The opinions expressed are purely personal and do NOT represent
  24.             the official view of DSTO.
  25.  
  26. "I'm going to put the shame file in the sludge file!  Or is that the sludge
  27.  file in the shame file? Shame, sludge, sludge, shame, ..."
  28.     Derrin Hunch, Fast Forward
  29.