home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / Xconq 7.0d37 / source / test / symbol-diff < prev    next >
Encoding:
Text File  |  1995-01-31  |  547 b   |  12 lines  |  [TEXT/R*ch]

  1. # This script extracts and compares the symbols defined in the manual
  2. # to those defined in the source code.
  3.  
  4. grep DEF_ $1/../kernel/*.def | grep -v DEF_CMD | sed -e 's/^[^"]*"\([^ ]*\)".*$/\1/' | sort | uniq >src.syms
  5.  
  6. grep '@deffn' $1/../doc/refman.texi | grep '@code' | sed -e 's/^.*@code{\([^{ }]*\)}.*$/\1/' | sed -e 's/@@/@/' | sort | uniq >doc.syms
  7.  
  8. echo "Differences between symbols in reference manual and in source code:"
  9. echo "('<' - in documentation,  '>' - in sources)"
  10.  
  11. diff -w doc.syms  src.syms | grep -v '^[0-9]' | grep -v '^---'
  12.