Shave 8 bytes off the size of "struct fileinfo".
authorJim Meyering <jim@meyering.net>
Mon, 29 Jan 2007 11:25:01 +0000 (12:25 +0100)
committerJim Meyering <jim@meyering.net>
Mon, 29 Jan 2007 11:25:01 +0000 (12:25 +0100)
* src/ls.c (fileinfo): Put all members of type "bool" together.

ChangeLog
src/ls.c

index 412250b..981f91b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-01-29  Jim Meyering  <jim@meyering.net>
+
+       Shave 8 bytes off the size of "struct fileinfo".
+       * src/ls.c (fileinfo): Put all members of type "bool" together.
+
 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
 
        Modify "ls" to sort its data faster, using the new gnulib mpsort
index 6e610c4..fa9a2fa 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -156,22 +156,23 @@ struct fileinfo
     /* The file name.  */
     char *name;
 
-    struct stat stat;
-    bool stat_ok;
-
     /* For symbolic link, name of the file linked to, otherwise zero.  */
     char *linkname;
 
+    struct stat stat;
+
+    enum filetype filetype;
+
     /* For symbolic link and long listing, st_mode of file linked to, otherwise
        zero.  */
     mode_t linkmode;
 
+    bool stat_ok;
+
     /* For symbolic link and color printing, true if linked-to file
        exists, otherwise false.  */
     bool linkok;
 
-    enum filetype filetype;
-
 #if USE_ACL
     /* For long listings, true if the file has an access control list.  */
     bool have_acl;