Article View: comp.os.msdos.programmer
Article #1218BC3 Nested switches in interrupt fns problem
From: cej
Date: Wed, 02 Sep 1992 20:21
Date: Wed, 02 Sep 1992 20:21
19 lines
1349 bytes
1349 bytes
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
Technical Details
Message-ID:
<1992Sep2.142153.164441@dstos3.dsto.gov.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!yoyo.aarnet.edu.au!dstos3.dsto.gov.au!cejShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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