2.11BSD source code browser and xref

Walter F.J. Mueller W.F.J.Mueller at gsi.de
Tue Mar 27 11:47:21 CST 2007


Gordon JC Pearce gordon at gjcp.net wrote:
>> Since none of the existing tools seemed to do what I wanted, I wrote
>> a perl script generating such a html'ized version of the source code.
>
> This is very very cool.
>
> The /bin/sh code is a bit of a horror, isn't it?  I bet someone can tell
> a funny story about that one...
>
> Gordon

Indeed there is 'C' and 'Bourne-C', used in sh and adb, see the definitions
listed after

http://www-linux.gsi.de/~mueller/test/211bsd/usr/src/bin/sh/mac.h.html#n:12
http://www-linux.gsi.de/~mueller/test/211bsd/usr/src/bin/adb/defs.h.html#n:27

Some of this is already handled in the parser, but there is clearly
room for improvement.

By the way:
  - point to a { } ( ) [ ] and a popup will tell you were
    the matching parenthesis is, it it is in a different line.
    Click on it, and you get moved to the matching end.
    In 'Bourne-C', IF and FI work this way.

  - point to a parameter-less macro, and a popup will tell
    you the definition if the string is short.

		With best regards,	Walter

-- 
Dr. Walter F.J. Müller    Mail:  W.F.J.Mueller at gsi.de
GSI,  Abteilung KP3       Phone: +49-6159-71-2766
D-64291 Darmstadt         FAX:   +49-6159-71-3762
URL: http://www-linux.gsi.de/~mueller/


More information about the cctalk mailing list