home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / msdos / programm / 10862 < prev    next >
Encoding:
Text File  |  1992-11-23  |  1.7 KB  |  43 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!news.ccs.queensu.ca!mast.queensu.ca!dmurdoch
  3. From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
  4. Subject: Message filters in BP/BC++
  5. Message-ID: <dmurdoch.299.722532455@mast.queensu.ca>
  6. Lines: 32
  7. Sender: news@knot.ccs.queensu.ca (Netnews control)
  8. Organization: Queen's University
  9. Date: Mon, 23 Nov 1992 15:27:35 GMT
  10.  
  11. Borland Pascal 7.0 comes with a new feature in the IDE:  You can install 
  12. external programs like GREP or TASM, filter their output through a 
  13. message filter program, and then link each line of the output to a line of 
  14. source code.
  15.  
  16. I suspect that this feature isn't really new, but is just borrowed from 
  17. BC++, but I don't have a copy of that, so I'm not sure.
  18.  
  19. Anyways, here's my question:  Are the message filters in the two programs 
  20. the same?  What a message filter in BP does is the following:
  21.  
  22. Reading program output from stdin, and writing to stdout, it:
  23.  
  24. 1.  Writes the string 'BI#PIP#OK', followed by a null terminator.
  25.  
  26. 2.  The beginning of a new file is marked by a #0, the file's name, 
  27.     terminated by a #0 character.
  28.  
  29. 3.  Each message line begins with a #1, followed the line number (in low/high
  30.     order), followed by the column number (in low/high order), then 
  31.     the message text itself, terminated with a #0 character.
  32.  
  33. 4.  The end of the output stream is marked by a #127 character.
  34.  
  35. (For those of you not familiar with BP:  #n is a character with ascii value
  36.  n, written in decimal notation.)
  37.  
  38. I'm writing a filter for use with my DUMPPROG disassembler; if I follow 
  39. these rules, will it work in BC++ too?  Which versions?
  40.  
  41. Duncan Murdoch
  42. dmurdoch@mast.queensu.ca
  43.