home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / MISC / MNLDOS.ZIP / src / makenl.h < prev    next >
C/C++ Source or Header  |  2004-07-20  |  1KB  |  37 lines

  1. /* $Id: makenl.h,v 1.7 2004/07/19 14:20:52 ozzmosis 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.  
  20. extern char ArcExt[4];
  21. extern char ArcCopyCmd[ARCCMDMAX];
  22. extern char ArcMoveCmd[ARCCMDMAX];
  23. extern char ArcOpenCmd[ARCCMDMAX];
  24.  
  25. #define Debug1(msg, arg) if (MakenlDebug) fprintf(stderr, "DEBUG: " FUNCNAME ": " msg "\n", arg)
  26. #define Debug(msg)       if (MakenlDebug) fprintf(stderr, "DEBUG: " FUNCNAME ": " msg "\n")
  27.  
  28. /* the die-Function from MAKENL.C */
  29. void die(int exitcode, int on_stderr, const char *format, ...);
  30.  
  31. #define die_if_file(f, fn, output) if(!f) die(0xFE, 1, "Unable to open \"%s\" for %s\n", fn, output?"Output":"Input");
  32.  
  33. /* the utility-Functions from STRTOOL.C */
  34. int getnumber(const char *string, int *output);
  35. char *skipspaces(char *ptr);
  36. char *cutspaces(char *string);
  37.