bonsaiviking

indent(1) return values

Jul 16th, 2013
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.11 KB | None | 0 0
  1. /** Values that `indent' can return for exit status.
  2.  *
  3.  *  `total_success' means no errors or warnings were found during a successful
  4.  *    invocation of the program.
  5.  *
  6.  *  `invocation_error' is returned if an invocation problem (like an incorrect
  7.  *    option) prevents any formatting to occur.
  8.  *
  9.  *  `indent_error' is returned if errors occur during formatting which
  10.  *    do not prevent completion of the formatting, but which appear to be
  11.  *    manifested by incorrect code (i.e, code which wouldn't compile).
  12.  *
  13.  *  `indent_punt' is returned if formatting of a file is halted because of
  14.  *    an error with the file which prevents completion of formatting.  If more
  15.  *    than one input file was specified, indent continues to the next file.
  16.  *
  17.  *  `indent_fatal' is returned if a serious internal problem occurs and
  18.  *    the entire indent process is terminated, even if all specified files
  19.  *    have not been processed. */
  20.  
  21. typedef enum exit_values
  22. {
  23.   total_success = 0,
  24.   invocation_error = 1,
  25.   indent_error = 2,
  26.   indent_punt = 3,
  27.   indent_fatal = 4,
  28.   system_error = 5
  29. } exit_values_ty;
Advertisement
Add Comment
Please, Sign In to add comment