home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Exec 5 / CD_Magazyn_EXEC_nr_5.iso / Programy / Programowanie / FetchRefs2.1.lha / FetchRefs2.1 / Source / FetchRefs / FetchRefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-28  |  1.7 KB  |  64 lines

  1. #define VERSION "2.1"
  2. #define RELEASE "1"
  3. #define DATE " 27 january 2001"
  4.  
  5. #include "defs.h"
  6. #include "protos.h"
  7.  
  8.  
  9. /* Entries for the localized strings */
  10. enum indices {
  11.     TEXTE_RECHERCHE = 0, TEXTE_GTLAYOUT, TEXTE_AREXX_PORT, TEXTE_TOOLTYPE, TEXTE_PATTERN,
  12.     TEXTE_REMOVE, TEXTE_VERSION, TEXTE_OK, TEXTE_REFERENCE, TEXTE_FIND_PATTERN, TEXTE_FETCHREF,
  13.     TEXTE_LISTE, TEXTE_CANCEL, TEXTE_GUIDE, TEXTE_AMIGAGUIDE, TEXTE_NOREF, TEXTE_ABORT
  14. };
  15.  
  16.  
  17. /* Error value passed to CloseAll() when a Fault() message in not enough */
  18. #define ERROR_CUSTOM        1    /* A custom text is passed as second argument        */
  19. #define ERROR_RUNTWICE        2    /* Detected other running FetchRefs and quit it     */
  20. #define ERROR_SPECIALMAX    2    /* To know the border */
  21.  
  22.  
  23. /* A few personal structs */
  24. struct FileEntry {
  25.     struct Node node;
  26.     struct List RefsList;
  27.     UBYTE Name[0];
  28. };
  29.  
  30.  
  31. struct RefsEntry {
  32.     struct Node node;
  33.     LONG Offset;
  34.     LONG Length;
  35.     WORD Goto;
  36.     UBYTE Name[0];
  37. };
  38.  
  39. /* Global variables */
  40. extern struct List FileList;
  41. extern struct MsgPort *CxPort, * rexxPort;
  42.  
  43. extern struct WBStartup *_WBMsg;
  44.  
  45. /* Give each of the ARexx commands we can receive an ID.
  46.  * FR_DUMMY is for illegal commands... */
  47. enum ARexxID { FR_DUMMY, FR_QUIT, FR_GET, FR_CLEAR, FR_NEW, FR_ADD, FR_FILE, FR_REQ };
  48.  
  49. /* FindRef() related */
  50. struct FindRefOptions {
  51.     STRPTR  Reference;
  52.     STRPTR  DestFile;
  53.     STRPTR  PubScreen;
  54.     long    function;
  55.     BOOL    FileRef;
  56.     BOOL    Case;
  57. };
  58.  
  59. struct FindRefReturnStruct {
  60.     LONG Result;    /* The result of FindRef() [see below] */
  61.     LONG Number;    /* 2nd return code; line to go to or DOS fault code */
  62. };
  63. enum FindRefResults { RET_OKAY, RET_MATCH, RET_NO_MATCH, RET_ABORT, RET_FAULT };
  64.