From: <da...@us...> - 2003-08-16 23:08:41
|
Update of /cvsroot/binaryphp/binaryphp In directory sc8-pr-cvs1:/tmp/cvs-serv11544 Modified Files: testfile.php tokenflow.php Log Message: _cpp() implimented. Index: testfile.php =================================================================== RCS file: /cvsroot/binaryphp/binaryphp/testfile.php,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -d -r1.48 -r1.49 *** testfile.php 14 Aug 2003 16:40:17 -0000 1.48 --- testfile.php 16 Aug 2003 22:58:03 -0000 1.49 *************** *** 2,6 **** function bleh($foo) { ! echo 'Test?'; } bleh('moo!'); --- 2,6 ---- function bleh($foo) { ! _cpp('cout << _foo << endl;'); } bleh('moo!'); Index: tokenflow.php =================================================================== RCS file: /cvsroot/binaryphp/binaryphp/tokenflow.php,v retrieving revision 1.58 retrieving revision 1.59 diff -C2 -d -r1.58 -r1.59 *** tokenflow.php 14 Aug 2003 16:40:17 -0000 1.58 --- tokenflow.php 16 Aug 2003 22:58:03 -0000 1.59 *************** *** 362,366 **** { global $funcs; ! if(isset($funcs[$function])) { if(count($funcs[$function]) == 2) --- 362,374 ---- { global $funcs; ! if($function == '_cpp') ! { ! $parameters[count($parameters) - 1] = substr($parameters[count($parameters) - 1], 0, -1); ! $code = substr($parameters[0], 1, -1); ! if($add) ! $this->AddCode($code); ! return $code; ! } ! elseif(isset($funcs[$function])) { if(count($funcs[$function]) == 2) |