Ejemplo n.º 1
0
void Resume() {
        if(ControlRequests>0) {
	        ControlRequests--;
                if(ControlRequests==0) {
			UserMode();
		}
        } else {
		Halt("RESUME WITHOUT PAUSE");
	}
}
Ejemplo n.º 2
0
Archivo: empty.c Proyecto: DonCN/haiku
static int
ProcExtraFunc(uiContext d, int fnum)
{
  extraFunc *extrafunc;

  extrafunc = FindExtraFunc(fnum);
  if (extrafunc) {
    switch (extrafunc->keyword) {
      case EXTRA_FUNC_DEFMODE:
        return UserMode(d, extrafunc);
#ifndef NO_EXTEND_MENU
      case EXTRA_FUNC_DEFSELECTION:
        return UserSelect(d, extrafunc);
      case EXTRA_FUNC_DEFMENU:
        return UserMenu(d, extrafunc);
#endif
      default:
        break;
    }
  }
  return NothingChangedWithBeep(d);
}