ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/makeextprotos-sed
Revision: 1.1
Committed: Mon Nov 24 17:28:08 2003 UTC (20 years, 7 months ago) by pcg
Branch: MAIN
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 pcg 1.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     }