ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/makeintprotos-sed
Revision: 1.4
Committed: Wed Feb 16 20:32:05 2005 UTC (19 years, 3 months ago) by root
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +0 -0 lines
State: FILE REMOVED
Log Message:
*** empty log message ***

File Contents

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