#define BAL_LISTE_INCOMPLETE    0  /* 1=Yes  0=No                            */
#define LPMNGLIB                1  /* 1=Yes  0=No                            */
#define LPuserCURSORchange      0  /* 1=Yes  0=No                            */
#define MEMORY_CHECK            0  /* 1=Yes  0=No                            */
#define TERMINAL_CHECK          1  /* 1=Yes  0=No                            */
#define LOOPWRITE_CARTE         1  /* 1=Yes  0=No                            */
#define NOCARD_CHECK            1  /* 1=Yes  0=No                            */

/******************************* MACHVOTE ********************************/
#define  OFF '\xFC'
#define  RR  '\xFE'
#define  RG  '\xFF'
#define  GG  '\xFD'

#define _NOCARD 21845

#define N_SCR_MESSAGE 141
#define L_SCR_MESSAGE  65

#define  CURSOR_OFF 0
#define  CURSOR_ON  1
#define  CURSOR_XY  2

/* gcCardRW */
#define CARD_WRITE  0
#define CARD_READ   1

#define bool  int

/* vote */
#define _C_LISTE_MAX_BYTE     (2)

#define _C_JETON_MAX_BYTE     (5)
#define _C_TEST_MAX_BYTE      (1)
#define _C_CRC_MAX_BYTE       (4)
#define _C_PASSAGE_MAX_BYTE   (1)

#define  _C_DATA_PLACE        (0)
#define  _C_JETON_PLACE       (_C_DATA_PLACE + 0)
#define  _C_PASSAGE_PLACE     (_C_DATA_PLACE + 5)
#define  _C_CRC_PLACE         (_C_DATA_PLACE + 6)
#define  _C_TEST_PLACE        (_C_DATA_PLACE + 10)
#define  _C_VOTE_PLACE        (_C_DATA_PLACE + 11)


#define NB_MAX_SCRUT     3
#define NB_MAX_LISTS    51
#define NB_MAX_CANDID  100

#define MAV_VERSION "V. 9.03"

#define PEN_OR_ALARMBOX_DISCONNECTED \
  if(iHwdDisconnected < 0 && \
     (gucMavType >= MAV_DIGIVOTE_1 && gucMavType <= MAV_DIGIVOTE_2)) \
  { \
    switch(iHwdDisconnected) \
    { \
      case -1: /* Light Pen has been disconnected */ \
        giCodeVoteEnd = 28; \
        ptfunct = Vote_End; \
        return(0); \
    } \
  }
