Skip to main content
edited tags
Link
user3840170
  • 27.4k
  • 4
  • 110
  • 170
added 78 characters in body
Source Link
static char volatile timerCounter; for (timerCounter = 0; timerCounter < timeout;) { if (check_keybuf() == 0) { getkey(); break; } // trying to force the extra jump step, doesn't make a difference // else continue; } if (timerCounter >= timeout) { // ... } 
static char volatile timerCounter; for (timerCounter = 0; timerCounter < timeout;) { if (check_keybuf() == 0) { getkey(); break; } else continue; } if (timerCounter >= timeout) { // ... } 
static char volatile timerCounter; for (timerCounter = 0; timerCounter < timeout;) { if (check_keybuf() == 0) { getkey(); break; } // trying to force the extra jump step, doesn't make a difference // else continue; } if (timerCounter >= timeout) { // ... } 
added 119 characters in body
Source Link
static char volatile timerCounter; for (timerCounter = 0; timerCounter < timeout;) { if (check_keybuf() == 0) { getkey(); break; }  else continue; } if (timerCounter >= timeout) { // ... } 
 timerCounter = 0; waitForKey: if (timerCounter < timeout) { if (check_keybuf() == 0) { getkey(); goto keyOrTimeout; } else { // this always gets eliminated ; (void*)NULL;   goto continue; } } else goto keyOrTimeout; continue: // try to force the extra step of an intermediate continue location goto waitForKey; keyOrTimeout: if (timerCounter >= timeout) { // ... } 
static char volatile timerCounter; for (timerCounter = 0; timerCounter < timeout;) { if (check_keybuf() == 0) { getkey(); break; } } if (timerCounter >= timeout) { // ... } 
 timerCounter = 0; waitForKey: if (timerCounter < timeout) { if (check_keybuf() == 0) { getkey(); goto keyOrTimeout; } goto continue; } else goto keyOrTimeout; continue: // try to force the extra step of an intermediate continue location goto waitForKey; keyOrTimeout: if (timerCounter >= timeout) { // ... } 
static char volatile timerCounter; for (timerCounter = 0; timerCounter < timeout;) { if (check_keybuf() == 0) { getkey(); break; }  else continue; } if (timerCounter >= timeout) { // ... } 
 timerCounter = 0; waitForKey: if (timerCounter < timeout) { if (check_keybuf() == 0) { getkey(); goto keyOrTimeout; } else { // this always gets eliminated ; (void*)NULL;   goto continue; } } else goto keyOrTimeout; continue: // try to force the extra step of an intermediate continue location goto waitForKey; keyOrTimeout: if (timerCounter >= timeout) { // ... } 
added 40 characters in body
Source Link
Loading
Source Link
Loading