cvs: functable / php5protos.awk

[email protected] ("Rasmus Lerdorf")
Newsgroups php.doc.web
Message-ID <cvsrasmus1141688751@cvsserver>
rasmus		Mon Mar  6 23:45:51 2006 UTC

  Modified files:              
    /functable	php5protos.awk 
  Log:
  Support multiple return types
  
  
http://cvs.php.net/viewcvs.cgi/functable/php5protos.awk?r1=1.3&r2=1.4&diff_format=u
Index: functable/php5protos.awk
diff -u functable/php5protos.awk:1.3 functable/php5protos.awk:1.4
--- functable/php5protos.awk:1.3	Tue Nov 15 15:53:37 2005
+++ functable/php5protos.awk	Mon Mar  6 23:45:51 2006
@@ -14,10 +14,11 @@
 			split($0,temp,"\\*/[[:space:]]*$");
 			lines = sprintf("%s %s ",lines,temp[1]);
 		}
-		split(proto[2],p2," |\\(");
+                split(proto[2],p1,"\\(");
+                n = split(p1[1],p2," ");
 		gsub("'","''",proto[2]);
 		gsub("'","''",lines);
-		printf("insert into proto5 set function ='%s',proto='%s',proto_desc='%s';\n",p2[2],proto[2],lines);
+		printf("insert into proto5 set function ='%s',proto='%s',proto_desc='%s';\n",p2[n],proto[2],lines);
 		parse=0;
 	}
 	next;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.