home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / MISC / MN321SRC.ZIP / makenl.h < prev    next >
C/C++ Source or Header  |  2004-08-02  |  1KB  |  43 lines

  1. /* $Id: makenl.h,v 1.9 2004/08/01 13:56:14 mbroek Exp $ */
  2.  
  3. #include "os.h"
  4.  
  5. /* Variables from MAKENL.C that are needed at some places */
  6.  
  7. extern char *WorkFile;
  8. extern const char *const DOWLongnames[7];
  9. extern const char *const MonthLongnames[12];
  10. extern int MakeType;
  11. extern int MakeNum;
  12. extern int ExitCode;
  13. extern int NewExtWDay;
  14. extern int JustTest;
  15. extern int MakenlDebug;
  16.  
  17. #define linelength 512
  18. #define ARCCMDMAX 20
  19. #define ARCEXTMAX 4
  20. #define ARCUNPMAX 10
  21. /* ARCUNPMAX must be set to the same nr of archivers in unpacker() in lsttool.c */
  22.  
  23. extern char ArcCopyExt[ARCEXTMAX];
  24. extern char ArcMoveExt[ARCEXTMAX];
  25. extern char ArcOpenExt[ARCUNPMAX][ARCEXTMAX];
  26. extern char ArcCopyCmd[ARCCMDMAX];
  27. extern char ArcMoveCmd[ARCCMDMAX];
  28. extern char ArcOpenCmd[ARCUNPMAX][ARCCMDMAX];
  29. extern int  ArcOpenCnt;
  30.  
  31. #define Debug1(msg, arg) if (MakenlDebug) fprintf(stderr, "DEBUG: " FUNCNAME ": " msg "\n", arg)
  32. #define Debug(msg)       if (MakenlDebug) fprintf(stderr, "DEBUG: " FUNCNAME ": " msg "\n")
  33.  
  34. /* the die-Function from MAKENL.C */
  35. void die(int exitcode, int on_stderr, const char *format, ...);
  36.  
  37. #define die_if_file(f, fn, output) if(!f) die(0xFE, 1, "Unable to open \"%s\" for %s\n", fn, output?"Output":"Input");
  38.  
  39. /* the utility-Functions from STRTOOL.C */
  40. int getnumber(const char *string, int *output);
  41. char *skipspaces(char *ptr);
  42. char *cutspaces(char *string);
  43.