home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / dev / misc / FetchRefs1.3.lha / FetchRefs1.3 / Source.lha / Source / FetchRefs / FetchRefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-07-04  |  1.5 KB  |  60 lines

  1. #define VERSION "1.3"
  2. #define RELEASE "1"
  3. #define DATE " 27 juin 1999"
  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_TRITON, 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.  
  46. /* FindRef() related */
  47. struct FindRefOptions {
  48.     STRPTR  Reference;
  49.     STRPTR  DestFile;
  50.     STRPTR  PubScreen;
  51.     BOOL    FileRef;
  52.     BOOL    Case;
  53. };
  54.  
  55. struct FindRefReturnStruct {
  56.     LONG Result;    /* The result of FindRef() [see below] */
  57.     LONG Number;    /* 2nd return code; line to go to or DOS fault code */
  58. };
  59. enum FindRefResults { RET_OKAY, RET_MATCH, RET_NO_MATCH, RET_ABORT, RET_FAULT };
  60.