* observer.sh: Move comments in sed command to first column.

This commit is contained in:
Joel Brobecker 2004-04-17 04:45:32 +00:00
parent bbde78fa2d
commit 350c2e5bea
2 changed files with 12 additions and 8 deletions

View File

@ -1,3 +1,7 @@
2004-04-16 Joel Brobecker <brobecker@gnat.com>
* observer.sh: Move comments in sed command to first column.
2004-04-16 Jason Molenda (jmolenda@apple.com) 2004-04-16 Jason Molenda (jmolenda@apple.com)
* frame.c: Minor typeo corrections in comments. * frame.c: Minor typeo corrections in comments.

View File

@ -62,22 +62,22 @@ esac
IFS=: IFS=:
sed -n ' sed -n '
/@deftypefun void/{ /@deftypefun void/{
# Save original line for later processing into the actual parameter # Save original line for later processing into the actual parameter
h h
# Convert from: @deftypefun void EVENT (TYPE @var{PARAM},...) # Convert from: @deftypefun void EVENT (TYPE @var{PARAM},...)
# to event and formals: EVENT:TYPE PARAM, ...: # to event and formals: EVENT:TYPE PARAM, ...:
s/^.* void \([a-z_][a-z_]*\) (\(.*\))$/\1:\2/ s/^.* void \([a-z_][a-z_]*\) (\(.*\))$/\1:\2/
s/@var{//g s/@var{//g
s/}//g s/}//g
# Switch to held # Switch to held
x x
# Convert from: @deftypefun void FUNC (TYPE @var{PARAM},...) # Convert from: @deftypefun void FUNC (TYPE @var{PARAM},...)
# to actuals: PARAM, ... # to actuals: PARAM, ...
s/^[^{]*[{]*// s/^[^{]*[{]*//
s/[}]*[^}]*$// s/[}]*[^}]*$//
s/}[^{]*{/, /g s/}[^{]*{/, /g
# Combine held (EVENT:TYPE PARAM, ...:) and pattern (PARAM, ...) into # Combine held (EVENT:TYPE PARAM, ...:) and pattern (PARAM, ...) into
# FUNC:TYPE PARAM, ...:PARAM, ... # FUNC:TYPE PARAM, ...:PARAM, ...
H H
x x
s/\n/:/g s/\n/:/g