ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/makeintprotos-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, rel-4_8, rel-5_0, rel-4_4, rel-4_6, rel-4_7, rel-4_0, rel-4_1, rel-4_2, rel-4_3, rel-3_7, 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-3_8, rel-1-9, stable, rel-1-3, rel-1-2, rxvt-2-0, rel-1_9, before_astyle, after_astyle, rel-4_9
Changes since 1.1: +0 -0 lines
Log Message:
*** empty log message ***

File Contents

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