home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume29 / parseargs / part01 / exit_codes.h next >
Encoding:
C/C++ Source or Header  |  1992-05-19  |  1.1 KB  |  35 lines

  1. /*************************************************************************
  2. ** ^FILE: exit_codes.h - define exit codes used by the parseargs library
  3. **
  4. ** ^DESCRIPTION:
  5. **    When we call exit(3C), we want to use a value that is appropriate
  6. **    for the operating system that we are on.  Here are the values
  7. **    that we need to define:
  8. **
  9. **       exit_NORMAL  -- no errors everything is fine
  10. **       exit_USAGE   -- no errors but we didnt parse the command-line
  11. **                       because we say an argUsage argument
  12. **       exit_SYNTAX  -- a syntax error occurred
  13. **       exit_SYSTEM  -- a system error occurred
  14. **
  15. ** ^HISTORY:
  16. **    04/13/92    Brad Appleton    <brad@ssd.csd.harris.com>    Created
  17. ***^^********************************************************************/
  18.  
  19. #ifndef exit_NORMAL
  20.  
  21. #ifdef vms
  22. # include <ssdef.h>
  23. # define  exit_NORMAL  SS$_NORMAL
  24. # define  exit_USAGE   SS$_NOTMODIFIED
  25. # define  exit_SYNTAX  SS$_BADPARAM
  26. # define  exit_SYSTEM  SS$_CANCEL
  27. #else
  28. # define  exit_NORMAL  0
  29. # define  exit_USAGE   1
  30. # define  exit_SYNTAX  2
  31. # define  exit_SYSTEM  127
  32. #endif
  33.  
  34. #endif
  35.