diff src/entry.cc @ 107:20aa5a515896

Reformat one line /* */ comments to //
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 06 Oct 2014 12:42:55 +0300
parents 76ad709ed3c6
children
line wrap: on
line diff
--- a/src/entry.cc	Mon Oct 06 12:30:57 2014 +0300
+++ b/src/entry.cc	Mon Oct 06 12:42:55 2014 +0300
@@ -181,7 +181,7 @@
     for (l = strlen(filename) + 1; l <= maxlen; l++)
         filename[l] = '\0';
 
-    /* compute the width of the input box */
+    // compute the width of the input box
     if (maxlen > 20)
         boxlen = 20;
     else
@@ -199,7 +199,7 @@
               - 2 * WIDE_VSPACING
               - (int) (2.5 * FONTH)
               - 2 * HOLLOW_BORDER - 2 * NARROW_VSPACING) / 2;
-    /* draw the dialog box */
+    // draw the dialog box
     entry_out_x0 = x0 + BOX_BORDER + WIDE_HSPACING;
     entry_text_x0 = entry_out_x0 + HOLLOW_BORDER + NARROW_HSPACING;
     entry_text_x1 = entry_text_x0 + boxlen * FONTW - 1;
@@ -246,10 +246,10 @@
         else if (l > 0 && key == YK_BACKSPACE)
             filename[l - 1] = '\0';
         else if (key == YK_RETURN)
-            break;                /* return "filename" */
+            break;                // return "filename"
         else if (key == YK_ESC)
         {
-            filename[0] = '\0';        /* return an empty string */
+            filename[0] = '\0';        // return an empty string
             break;
         }
         else