changeset 63:50c9fa99e7b4

Cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 26 Sep 2011 09:39:42 +0300
parents a23d305fd17b
children 2badfa44a37a
files src/entry.cc src/entry2.cc
diffstat 2 files changed, 3 insertions(+), 29 deletions(-) [+]
line wrap: on
line diff
--- a/src/entry.cc	Mon Sep 26 09:36:54 2011 +0300
+++ b/src/entry.cc	Mon Sep 26 09:39:42 2011 +0300
@@ -116,16 +116,14 @@
         else if (is_ordinary(key) && strlen(buf) < bufmaxlen)
         {
             if (firstkey)
+            {
                 if (key == ' ')        // Kludge : hit space to append to initial value
                     continue;
                 else
                     *buf = '\0';
+            }
             al_sapc(buf, key, bufmaxlen);
         }
-        else
-        {
-            Beep();
-        }
     }
 
     is.key = 0;                        // Shouldn't have to do that but EditorLoop() is broken
--- a/src/entry2.cc	Mon Sep 26 09:36:54 2011 +0300
+++ b/src/entry2.cc	Mon Sep 26 09:39:42 2011 +0300
@@ -482,31 +482,7 @@
                         precision = 10 * precision + dectoi(*p++);
                 }
             }
-            // Get the optional modifier (hh, h, l or Z)
-            _field_flags_t size = FF_INT;
-            if (*p == 'h')
-            {
-                if (p[1] == 'h')
-                {
-                    size = FF_CHAR;
-                    p += 2;
-                }
-                else
-                {
-                    size = FF_SHORT;
-                    p++;
-                }
-            }
-            else if (*p == 'Z')
-            {
-                size = FF_SIZE_T;
-                p++;
-            }
-            else if (*p == 'l')
-            {
-                size = FF_LONG;
-                p++;
-            }
+
             // Get the type (diousSxX)
             if (*p == 'd' || *p == 'i' || *p == 'o' || *p == 'x' || *p == 'X')
                 type = 'd';