home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / i / iritsm3s.zip / misc_lib / getarg.h < prev    next >
C/C++ Source or Header  |  1991-12-25  |  1KB  |  37 lines

  1. /***************************************************************************
  2. * Error    numbers    as returned by GAGetArg    routine:               *
  3. *                                       *
  4. *                     Gershon Elber         Mar 88       *
  5. ****************************************************************************
  6. * History:                                   *
  7. * 11 Mar 88 - Version 1.0 by Gershon Elber.                   *
  8. ***************************************************************************/
  9.  
  10. #ifndef GET_ARG_H
  11. #define GET_ARG_H
  12.  
  13. #define    CMD_ERR_NotAnOpt   1                   /* None Option found. */
  14. #define    CMD_ERR_NoSuchOpt  2              /* Undefined Option Found. */
  15. #define    CMD_ERR_WildEmpty  3             /* Empty input for !*? seq. */
  16. #define    CMD_ERR_NumRead       4            /* Failed on reading number. */
  17. #define    CMD_ERR_AllSatis   5           /* Fail to satisfy (must-'!') option. */
  18.  
  19. #ifdef USE_VARARGS
  20. int
  21. #ifdef __MSDOS__
  22. cdecl        /* So we can use -rp in Borland 3.0 (parameters in registers.). */
  23. #endif /* __MSDOS__ */
  24. GAGetArgs(int va_alist, ...);
  25. #else
  26. int
  27. #ifdef __MSDOS__
  28. cdecl        /* So we can use -rp in Borland 3.0 (parameters in registers.). */
  29. #endif /* __MSDOS__ */
  30. GAGetArgs(int argc, ...);
  31. #endif /* USE_VARARGS */
  32.  
  33. void GAPrintErrMsg(int Error);
  34. void GAPrintHowTo(char *CtrlStr);
  35.  
  36. #endif /* GET_ARG_H */
  37.