cvs: functable / dbmodel.sql php6protos php6protos.awk update.all

[email protected] ("Rasmus Lerdorf")
Newsgroups php.doc.web
Message-ID <cvsrasmus1141691777@cvsserver>
rasmus		Tue Mar  7 00:36:17 2006 UTC

  Added files:                 
    /functable	php6protos php6protos.awk 

  Modified files:              
    /functable	dbmodel.sql update.all 
  Log:
  More functable fixes
   - fix php 5 checkout - it was actually doing php 6
   - add php 6 support
  
  
http://cvs.php.net/viewcvs.cgi/functable/dbmodel.sql?r1=1.8&r2=1.9&diff_format=u
Index: functable/dbmodel.sql
diff -u functable/dbmodel.sql:1.8 functable/dbmodel.sql:1.9
--- functable/dbmodel.sql:1.8	Wed Mar 17 12:52:11 2004
+++ functable/dbmodel.sql	Tue Mar  7 00:36:17 2006
@@ -84,6 +84,18 @@
 );
 
 #
+# Table structure for table 'proto6'
+#
+
+DROP TABLE IF EXISTS proto6;
+CREATE TABLE proto6 (
+  function varchar(100) DEFAULT '' NOT NULL,
+  proto_desc text,
+  proto text,
+	key p5_idx (function)
+);
+
+#
 # Table structure for table 'quickref'
 #
 
http://cvs.php.net/viewcvs.cgi/functable/update.all?r1=1.14&r2=1.15&diff_format=u
Index: functable/update.all
diff -u functable/update.all:1.14 functable/update.all:1.15
--- functable/update.all:1.14	Tue Nov 15 14:42:33 2005
+++ functable/update.all	Tue Mar  7 00:36:17 2006
@@ -75,7 +75,16 @@
   then
     (cd php_5_cvs; cvs update 2>&1 | grep -v "^. php_5_cvs" | grep -v Updating)
   else
-    cvs -d ":pserver:[email protected]:/repository" get -d php_5_cvs -r HEAD php-src
+    cvs -d ":pserver:[email protected]:/repository" get -d php_5_cvs -r PHP_5_1 php-src
+  fi
+
+  # getting php6 latest developement snapshot
+  echo updating php5 cvs
+  if [ -d php_6_cvs ]
+  then
+    (cd php_6_cvs; cvs update 2>&1 | grep -v "^. php_6_cvs" | grep -v Updating)
+  else
+    cvs -d ":pserver:[email protected]:/repository" get -d php_6_cvs -r HEAD php-src
   fi
 	
   # getting PECL snapshot
@@ -134,7 +143,8 @@
 echo "... protos in php 5"
 ./php5protos
 
-
+echo "... protos in php 6"
+./php6protos
 
 
 # ext_skel is not a real extension, so we remove it

http://cvs.php.net/viewcvs.cgi/functable/php6protos.awk?view=markup&rev=1.1
Index: functable/php6protos.awk
+++ functable/php6protos.awk
/^[[: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]);
		}
                split(proto[2],p1,"\\(");
                n = split(p1[1],p2," ");
		gsub("'","''",proto[2]);
		gsub("'","''",lines);
		printf("insert into proto6 set function ='%s',proto='%s',proto_desc='%s';\n",p2[n],proto[2],lines);
		parse=0;
	}
	next;
}
{	
	if(parse && !same) { 
		split($0,temp,"\\*/[[:space:]]*$");
		line[lc++]=temp[1];
		
	} 
	same=0;
}
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.