gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r1448 - GNUnet-docs/WWW


From: grothoff
Subject: [GNUnet-SVN] r1448 - GNUnet-docs/WWW
Date: Tue, 12 Jul 2005 18:54:24 -0700 (PDT)

Author: grothoff
Date: 2005-07-12 18:54:22 -0700 (Tue, 12 Jul 2005)
New Revision: 1448

Modified:
   GNUnet-docs/WWW/scripts.inc
Log:
try

Modified: GNUnet-docs/WWW/scripts.inc
===================================================================
--- GNUnet-docs/WWW/scripts.inc 2005-07-13 01:50:47 UTC (rev 1447)
+++ GNUnet-docs/WWW/scripts.inc 2005-07-13 01:54:22 UTC (rev 1448)
@@ -36,7 +36,7 @@
 // create an alement name consisting of the translation of $name
 // and possibly an NBO tag
 function N($name, $nbo="") {
-  return W_($name) . " (" . $val . (($nbo == "")?"":",$nbo") . ")";
+  return W_($name) . (($nbo == "")?"":"($nbo)");
 }
 
 // formats a struct for showStructLayout
@@ -46,7 +46,6 @@
   $offset = 0;
   $currString = "";
   foreach($elements as $name => $size) {
-    echo "<br>PROCESSING: $name => $size<br>";
     if (($offset % 4) == 0) {
       if ( ($size >= 4) || ($size == 0) ) {
         $ret[] = "<td>$offset</td><td colspan=4>$name</td>";
@@ -56,7 +55,7 @@
       }
       if ($size > 0) {
         $currString = "<td>$offset</td><td colspan=$mod>$name</td>";
-        $offset += $mod;
+        $offset += $size;
       }
     } else {
       $left = 4 - ($offset % 4);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]