cvs: functable / funcimp.awk

[email protected] ("Rasmus Lerdorf")
Newsgroups php.doc.web
Message-ID <cvsrasmus1141695072@cvsserver>
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";";
 }
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.