Author: bernhard
Date: Fri Nov 28 06:40:58 2008
New Revision: 33311

Modified:
   trunk/languages/pipp/src/common/php_var.pir

Log:
[Pipp] Beautify php_var.pir a little bit. jimmy++


Modified: trunk/languages/pipp/src/common/php_var.pir
==============================================================================
--- trunk/languages/pipp/src/common/php_var.pir (original)
+++ trunk/languages/pipp/src/common/php_var.pir Fri Nov 28 06:40:58 2008
@@ -89,7 +89,7 @@
     .local string type_of_pmc
     type_of_pmc = typeof a
 
-    ne type_of_pmc, 'string', not_a_string
+    unless type_of_pmc == 'string' goto L1
         .local int string_len
 
         string_len = elements a
@@ -102,9 +102,9 @@
 
        .return()
 
-not_a_string:
+L1:
 
-    ne type_of_pmc, 'array', not_a_hash
+    unless type_of_pmc == 'array' goto L2
 
         .local int num_elements
         num_elements = elements a
@@ -119,7 +119,7 @@
         indent = '  '
         it = iter a
 iter_loop:
-    unless it, iter_end
+    unless it goto iter_end
         shift key, it
         key_str = key
         key_starts_with_digit = is_cclass .CCLASS_NUMERIC, key_str, 0
@@ -144,9 +144,9 @@
         say '}'
        .return()
 
-not_a_hash:
+L2:
 
-    ne type_of_pmc, 'integer', not_a_integer
+    unless type_of_pmc == 'integer' goto L3
 
         print 'int('
         print a
@@ -154,9 +154,9 @@
 
        .return()
 
-not_a_integer:
+L3:
 
-    ne type_of_pmc, 'boolean', not_a_bool
+    unless type_of_pmc == 'boolean' goto L4
 
         print 'bool('
         if a goto a_is_true
@@ -168,7 +168,7 @@
             say ')'
            .return()
 
-not_a_bool:
+L4:
 
     _dumper(a)
 

Reply via email to