ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/makeextprotos-sed
Revision: 1.2
Committed: Mon Nov 24 17:31:27 2003 UTC (20 years, 6 months ago) by pcg
Branch: MAIN
CVS Tags: rel-2_1_0, rxvt-2-0, rel-3_6, rel-3_5, rel-3_4, rel-3_3, rel-3_2, rel-2_8, rel-3_0, rel-2_7, rel-2_4, rel-2_5, rel-2_2, rel-2_3, rel-2_0, rel-1-9, stable, rel-1-3, rel-1-2, rel-1_9, before_astyle, after_astyle
Changes since 1.1: +0 -0 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 # Get prototypes from a .c file
2 # $Id: makeextprotos-sed,v 1.1 2003/11/18 14:22:17 root Exp $
3 # /* EXTPROTO */ must be above return type which are above function.
4 # Args are on one line
5 # eg.
6 # /* EXTPROTO */
7 # void ------> void main(int argc, char **argv);
8 # main(int argc, char **argv)
9 # {
10 # }
11 #
12 /^[/][*] EXTPROTO [*][/]$/{
13 n
14 N
15 s/\n\([_a-zA-Z][_a-zA-Z0-9]* *\)(/ \1 __PROTO((/
16 s/$/);/
17 p
18 }