qemacs-devel
[Top][All Lists]
Advanced

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

[Qemacs-devel] Changes to qemacs/util.c


From: Charlie Gordon
Subject: [Qemacs-devel] Changes to qemacs/util.c
Date: Sun, 08 May 2005 23:19:37 -0400

Index: qemacs/util.c
diff -u qemacs/util.c:1.7 qemacs/util.c:1.8
--- qemacs/util.c:1.7   Mon May  9 02:17:47 2005
+++ qemacs/util.c       Mon May  9 03:19:36 2005
@@ -259,7 +259,7 @@
     const char *p;
     p = strrchr(filename, '/');
     if (!p) {
-       /* should also scan for ':' */
+        /* should also scan for ':' */
         return filename;
     } else {
         p++;
@@ -354,28 +354,28 @@
     const char *p;
 
     if (casefold) {
-       pstrcpy(buf, sizeof(buf), str);
-       str = buf;
-       css_strtolower(buf, sizeof(buf));
+        pstrcpy(buf, sizeof(buf), str);
+        str = buf;
+        css_strtolower(buf, sizeof(buf));
     }
     c = *str;
     len = strlen(str);
     /* need to special case the empty string */
     if (len == 0)
-       return strstr(keytable, "||") != NULL;
+        return strstr(keytable, "||") != NULL;
 
     /* initial and trailing | are optional */
     /* they do not cause the empty string to match */
     for (p = keytable;;) {
-       if (!memcmp(p, str, len) && (p[len] == '|' || p[len] == '\0'))
-           return 1;
-       for (;;) {
-           p = strchr(p + 1, c);
-           if (!p)
-               return 0;
-           if (p[-1] == '|')
-               break;
-       }
+        if (!memcmp(p, str, len) && (p[len] == '|' || p[len] == '\0'))
+            return 1;
+        for (;;) {
+            p = strchr(p + 1, c);
+            if (!p)
+                return 0;
+            if (p[-1] == '|')
+                break;
+        }
     }
 }
 
@@ -397,7 +397,8 @@
     return c;
 }
 
-int ustristart(const unsigned int *str, const char *val, const unsigned int 
**ptr)
+int ustristart(const unsigned int *str, const char *val,
+               const unsigned int **ptr)
 {
     const unsigned int *p;
     const char *q;




reply via email to

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