home *** CD-ROM | disk | FTP | other *** search
/ Software Recommendations - 1998 Season 1 / DNBCD4.iso / share / DOS / ipxcopy / SRC.ZIP / SRC / CMDLINE.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-20  |  929 b   |  58 lines

  1. /*
  2.  
  3.    CMDLINE.H
  4.  
  5.    (c) 1995 Oliver Kraus
  6. */
  7.  
  8. #ifndef _CMDLINE_H
  9. #define _CMDLINE_H
  10.  
  11. #ifdef _MSC_VER
  12. #pragma warning(disable:4131)
  13. #ifndef DO_PROTO
  14. #define DO_PROTO
  15. #endif
  16. #endif
  17.  
  18. #include <stdlib.h>
  19. #ifndef _MAX_PATH
  20. #define _MAX_PATH 1024
  21. #endif
  22.  
  23. #define CL_ERR_STRING "\1"
  24.  
  25. #define CL_TYP_NONE   0
  26. #define CL_TYP_ON     1
  27. #define CL_TYP_OFF    2
  28. #define CL_TYP_LONG   3
  29. #define CL_TYP_PATH   4
  30. #define CL_TYP_STRING 5
  31. #define CL_TYP_SET    6
  32.  
  33. #define CL_ENTRY_LAST { CL_TYP_NONE, NULL, NULL, 0 }
  34.  
  35. struct _cl_entry_struct
  36. {
  37.    int typ;
  38.    char *name;
  39.    void *var_ptr;
  40.    size_t var_size;
  41. };
  42. typedef struct _cl_entry_struct cl_entry_struct;
  43.  
  44. #define CL_FILE_MAX 8
  45.  
  46. extern char cl_file_list[CL_FILE_MAX][_MAX_PATH];
  47. extern int cl_file_cnt;
  48.  
  49. #ifdef DO_PROTO
  50. int cl_Do(cl_entry_struct *list, int argc, char *argv[]);
  51. int cl_String(cl_entry_struct *list, char *s);
  52. #else
  53. extern int cl_Do();
  54. extern int cl_String();
  55. #endif
  56.  
  57. #endif
  58.