cvs: pear /CodeGen_PECL/PECL/Element Constant.php
| From: | Hartmut Holzgraefe | Date: | Tue, 05 Sep 2006 08:32:58 +0000 |
| Subject: | cvs: pear /CodeGen_PECL/PECL/Element Constant.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-41984@lists.php.net to get a copy of this message | ||
hholzgra Tue Sep 5 08:32:58 2006 UTC
Modified files:
/pear/CodeGen_PECL/PECL/Element Constant.php
Log:
forgot to add break; lines after getting rid of the in-case returns ...
http://cvs.php.net/viewvc.cgi/pear/CodeGen_PECL/PECL/Element/Constant.php?r1=1.9&r2=1.10&diff_format=u
Index: pear/CodeGen_PECL/PECL/Element/Constant.php
diff -u pear/CodeGen_PECL/PECL/Element/Constant.php:1.9
pear/CodeGen_PECL/PECL/Element/Constant.php:1.10
--- pear/CodeGen_PECL/PECL/Element/Constant.php:1.9 Tue Aug 22 12:45:21 2006
+++ pear/CodeGen_PECL/PECL/Element/Constant.php Tue Sep 5 08:32:58 2006
@@ -15,7 +15,7 @@
* @author Hartmut Holzgraefe <hartmut@php.net>
* @copyright 2005, 2006 Hartmut Holzgraefe
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: Constant.php,v 1.9 2006/08/22 12:45:21 hholzgra Exp $
+ * @version CVS: $Id: Constant.php,v 1.10 2006/09/05 08:32:58 hholzgra Exp $
* @link http://pear.php.net/package/CodeGen
*/
@@ -242,12 +242,15 @@
switch ($this->type) {
case "int":
$code.= "REGISTER_LONG_CONSTANT(\"{$this->name}\",
{$this->value}, CONST_PERSISTENT | CONST_CS);\n";
-
+ break;
+
case "float":
$code.= "REGISTER_DOUBLE_CONSTANT(\"{$this->name}\",
{$this->value}, CONST_PERSISTENT | CONST_CS);\n";
+ break;
case "string":
$code.= "REGISTER_STRINGL_CONSTANT(\"{$this->name}\",
\"{$this->value}\", ".strlen($this->value).", CONST_PERSISTENT |
CONST_CS);\n";
+ break;
}
$code.= $this->ifConditionEnd();
@@ -274,9 +277,10 @@
case "int":
case "float":
$code.= "#define {$this->name} {$this->value}\n";
-
+ break;
case "string":
$code.= "#define {$this->name} \"$value\"\n";
+ break;
}
$this->ifConditionEnd();