ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/makeextprotos-sed
Revision: 1.3
Committed: Sun Aug 15 00:37:04 2004 UTC (19 years, 9 months ago) by root
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
State: FILE REMOVED
Log Message:
*** empty log message ***

File Contents

# Content
1 # Get prototypes from a .c file
2 # $Id: makeextprotos-sed,v 1.2 2003/11/24 17:31:27 pcg 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 }