home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / CHK_ER.ZIP / README.TXT < prev   
Text File  |  1992-11-24  |  3KB  |  86 lines

  1. ======================================================================
  2. Read Me file for CHK_ERR.EXE                                  11/24/92
  3. ======================================================================
  4.  
  5. CHK_ERR.EXE is an OS/2 utility that helps a programmer using the IBM C
  6. compiler to make better use of the informational, warning, and error
  7. messages printed out by the compiler.  It allows the programmer to
  8. specify which messages are meaningful and which are to be ignored
  9. according to his or her own programming style.
  10.  
  11. To use this program, first create a data file called CHK_ERR.DAT in
  12. the directory where you are compiling your programs.  Any lines that
  13. are blank or contain a semi-colon (';') in the first character of
  14. the line are ignored.  All other lines should contain a message
  15. number (for instance, EDC0851), one message number per line.  The
  16. message numbers listed in this file are the ones that you consider
  17. are to be ignored.
  18.  
  19. The usage for the CHK_ERR program is as follows:
  20.  
  21.     CHK_ERR <input_file> <output_file>
  22.  
  23. where:
  24.  
  25.     <input_file>        - This is the name of the file that contains
  26.                           all of the messages from the program compile.
  27.  
  28.     <output_file>       - This file will contain only the messages
  29.                           that had message numbers that were not
  30.                           listed in the CHK_ERR.DAT file.
  31.                           (I personally use this file as an
  32.                           error file for the Brief editor so that I
  33.                           can quickly edit any errors.)
  34.  
  35. The CHK_ERR program will read from the input file and write to the
  36. output file specified.  Any error, warning, or informational message
  37. numbers that were not found in the CHK_ERR.DAT file will be written
  38. to the output file.  If any records are written to the output file,
  39. CHK_ERR will return an error status.
  40.  
  41. A possible way to set up your makefile could be as follows:
  42.  
  43. ▒▒ 
  44. ▒▒ c_opts = /W3 /Kf+ /C+ ...(and other C compiler options)
  45. ▒▒ 
  46. ▒▒ .c.obj:
  47. ▒▒     @Echo ▒▒ Building $@
  48. ▒▒     @-icc $(c_opts) $*.c >$*.msg
  49. ▒▒     @chk_err $*.msg $*.err
  50. ▒▒     @erase $*.err
  51. ▒▒ 
  52. ▒▒ .obj.exe:
  53. ▒▒     @Echo ▒▒ Building $@
  54. ▒▒     @link386 /nologo /noi $**,$@; >$*.log
  55. ▒▒ 
  56.  
  57. Notice that the options "/W3" and "/Kf+" are used to generate the
  58. most messages from the compiler.
  59.  
  60. Also notice that the error value returned from ICC is ignored. CHK_ERR
  61. will return an error status (thus ending the make) if any errors are
  62. copied to the output file.
  63.  
  64. CHK_ERR is released as free-ware.  You may use the program as you see
  65. fit though it may not be sold.  Please direct questions or comments
  66. to:
  67.  
  68.     Dave F. Baskin
  69.     Compuserve ID:  73340,3533
  70.  
  71. The source code to this program (written in C and compiled by the IBM
  72. C compiler), can be obtained for $10 by writing to:
  73.  
  74.     Dave F. Baskin
  75.     P.O. Box 616
  76.     Hahira, GA  31632
  77.  
  78. If you have one, please include a Compuserve ID to which I can mail the
  79. source code.  Thanks and enjoy!
  80.  
  81.  
  82. ======================================================================
  83.                        End of README.TXT
  84. ======================================================================
  85.  
  86.