cvs: functable / funcimp.awk

From: Date: Tue, 07 Mar 2006 01:31:12 +0000
Subject: cvs: functable / funcimp.awk
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-865@lists.php.net to get a copy of this message
rasmus Tue Mar 7 01:31:12 2006 UTC Modified files: /functable funcimp.awk Log: Generate correct insert http://cvs.php.net/viewcvs.cgi/functable/funcimp.awk?r1=1.2&r2=1.3&diff_format=u Index: functable/funcimp.awk diff -u functable/funcimp.awk:1.2 functable/funcimp.awk:1.3 --- functable/funcimp.awk:1.2 Tue Mar 7 01:13:29 2006 +++ functable/funcimp.awk Tue Mar 7 01:31:12 2006 @@ -2,6 +2,6 @@ /^[[:space:]]*PHP_FUNCTION/ { print "INSERT INTO funcimp SET function='"$2"',version='-v-',file='-f-',lineno="NR";"; } /^[[:space:]]*ZEND_FUNCTION/ { print "INSERT INTO funcimp SET function='"$2"',version='-v-',file='-f-',lineno="NR";"; } /^[[:space:]]*ZEND_METHOD/ { - class_name = sprintf("%s%s",toupper(substr($2,1,1)),substr($2,2,length($2)-1)); - print class_name,"::",$3; + class_name = sprintf("%s%s::%s",toupper(substr($2,1,1)),substr($2,2,length($2)-1),$3); + print "INSERT INTO funcimp SET function='"class_name"',version='-v-',file='-f-',lineno="NR";"; }

« previous php.doc.web (#865) next »