home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / fish / misc_utils / dmake_440 / defs.h < prev    next >
C/C++ Source or Header  |  1991-01-19  |  2KB  |  81 lines

  1.  
  2. /*
  3.  *  DEFS.H
  4.  *
  5.  */
  6.  
  7. #include <exec/types.h>
  8. #include <exec/lists.h>
  9. #include <libraries/dos.h>
  10. #include <stdio.h>
  11. #include <stdlib.h>
  12. #include <string.h>
  13.  
  14. typedef unsigned char ubyte;
  15. typedef unsigned short uword;
  16. typedef unsigned long ulong;
  17.  
  18. typedef struct Node    NODE;
  19. typedef struct List    LIST;
  20. typedef struct MinNode    MNODE;
  21. typedef struct MinList    MLIST;
  22. typedef struct DateStamp    DATESTAMP;
  23. typedef struct FileInfoBlock FIB;
  24.  
  25. #define COMMON    struct _COMMON
  26. #define DEPEND    struct _DEPEND
  27. #define MACRO    struct _MACRO
  28.  
  29. #define TMPFILE "T:dmake%08lx.res"  /*  Used to get exit code   */
  30. #define SCRFILE "T:dmake%08lx.scr"  /*  script file             */
  31.  
  32. #define DF_DIDTHIS        0x01    /*    dependancy succeeded    */
  33. #define DF_ALLOWED        0x02
  34. #define DF_COLLECT        0x04
  35. #define DF_DATEDOK        0x08
  36. #define DF_OUTDATED        0x10
  37. #define DF_APPLYALL        0x20
  38. #define DF_EXPANDRIGHT        0x40
  39.  
  40. COMMON {
  41.     short   RefCnt;
  42.     uword   Flags;
  43. };
  44.  
  45. DEPEND {
  46.     MNODE   Node;
  47.     char    *Left;    /*  resolved file name    */
  48.     char    *Right;    /*  resolved file name    */
  49.     uword   Flags;
  50.     uword   Order;
  51.     COMMON  *Common;    /*  Comment structure    */
  52.     DEPEND  *ColDep;
  53.     MLIST   *CmdList;
  54. };
  55.  
  56. extern MLIST   DepList;    /*  Dependancies    */
  57.  
  58. extern char *getline();
  59. extern char **parseline();
  60. extern char *VirtuoExpand();
  61. extern DEPEND *MakeOneDepend();
  62.  
  63. extern void MacroAssign();
  64.  
  65. extern short Verbose;
  66. extern short LineNo;
  67. extern short ForceAll;
  68. extern short ListOnly;
  69. extern short XDebug;
  70. extern long  SaveLock;
  71. extern char MakeFile[128];
  72. extern char *VirtuoExpand();
  73.  
  74. extern void *GetHead();
  75. extern void *GetSucc();
  76. extern void *GetTail();
  77. extern void *GetPred();
  78. extern void *RemHead();
  79. extern void *RemTail();
  80.  
  81.