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