File: funcsummary.awk

package info (click to toggle)
php-doc 20061001-1
  • links: PTS
  • area: non-free
  • in suites: etch, etch-m68k
  • size: 45,764 kB
  • ctags: 1,611
  • sloc: xml: 502,485; php: 7,645; cpp: 500; makefile: 297; perl: 161; sh: 141; awk: 28
file content (29 lines) | stat: -rwxr-xr-x 515 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/^[[:space:]]*\/\*[[:space:]]*\{\{\{[[:space:]]*proto/ { 
	split($0,proto,"proto[[:space:]]+|\\*/[[:space:]]*$");
	parse=1; 
	same=1;
	lc=0;
}
/\*\// {
	if(parse) {
		lines="";
		for(i=0;i<lc;i++) {
			lines = sprintf("%s %s ",lines,line[i]);
		}
		if(!same) {
			split($0,temp,"\\*/[[:space:]]*$");
			lines = sprintf("%s %s ",lines,temp[1]);
		}
		printf("%s --- %s\n",proto[2],lines);
		parse=0;
	}
	next;
}
{	
	if(parse && !same) { 
		split($0,temp,"\\*/[[:space:]]*$");
		line[lc++]=temp[1];
		
	} 
	same=0;
}