home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 184.lha / Edimap / edimap.h < prev    next >
C/C++ Source or Header  |  1988-04-28  |  1KB  |  73 lines

  1. #include "ctype.h"
  2. #include "exec/types.h"
  3. #include "exec/exec.h"
  4. #include "exec/execbase.h"
  5. #include "intuition/intuition.h"
  6. #include "intuition/intuitionbase.h"
  7. #include "libraries/dos.h"
  8. #include "libraries/dosextens.h"
  9. #include "devices/keymap.h"
  10. #include "stdio.h"
  11. #if AZTEC_C
  12. #include "functions.h"
  13. #else
  14. #include "proto/exec.h"
  15. #include "proto/intuition.h"
  16. #include "proto/dos.h"
  17. #endif
  18.  
  19. #define BUFSIZE 2048L
  20.  
  21. #define OFF    0
  22. #define ON    1
  23. #define FAUX    0
  24. #define VRAI    1
  25. #define BON    0
  26. #define ERROR    -1
  27.  
  28. #define MAX_TAB 0x280
  29. #define P_SIZE 128L
  30.  
  31. /*struct KeyMap {
  32. UBYTE *km_LoKeyMapTypes;
  33. ULONG *km_LoKeyMap;
  34. UBYTE *km_LoCapsable;
  35. UBYTE *km_LoRepeatable;
  36. UBYTE *km_HiKeyMapTypes;
  37. ULONG *km_HiKeyMap;
  38. UBYTE *km_HiCapsable;
  39. UBYTE *km_HiRepeatable;
  40. };
  41. */
  42. struct KeyMap keymap;
  43.  
  44. struct P_String {
  45.     UBYTE l;
  46.     UBYTE *p;
  47.     } *buf_p;
  48.  
  49. UBYTE    *alstrflag;
  50. UBYTE    *filebuf;
  51. UBYTE nom[32];
  52. struct P_String *tri();
  53.  
  54. #define WIDTH    640L
  55. #define HEIGHT    200L
  56.  
  57. struct Window   *window;      /* window pointer */
  58. struct IntuitionBase *IntuitionBase;
  59. struct GfxBase *GfxBase;
  60. struct IntuiMessage *Message;
  61. struct RastPort *wRPort;
  62. union U_Key { UBYTE *str; UBYTE trad[4]; ULONG longtrad;} Tkey;
  63.  
  64. USHORT key_rel, key_abs;
  65. UBYTE qual, strdead;
  66. BOOL LoType, repet, caps;
  67. UBYTE *pbase;
  68. UBYTE *pnom;
  69. struct P_String *buffer;
  70.  
  71. int invalide, etape;
  72.  
  73.