2003-02-01 Andrew Cagney <ac131313@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Sat, 1 Feb 2003 20:56:57 +0000 (20:56 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sat, 1 Feb 2003 20:56:57 +0000 (20:56 +0000)
* gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
strlen d_name.

gdb/ChangeLog
gdb/gdb_dirent.h

index 390fa362110c3420e38eeb3cb5fd0eb98de63751..6e544a3b8bd2fd7429e9aa7838458387606b2367 100644 (file)
@@ -1,5 +1,8 @@
 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
 
+       * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
+       strlen d_name.
+
        * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
        ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
        (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
index eb1476765568835914e31a5e8140f046fee6df6b..ba28ca5561630372a2c81b979348f9b2ceea1839 100644 (file)
 
 /* See description of `AC_HEADER_DIRENT' in the Autoconf manual.  */
 #ifdef HAVE_DIRENT_H
-# include <dirent.h>
-# define NAMELEN(dirent) strlen((dirent)->d_name)
+# include <dirent.h>           /* OK: dirent.h */
+# define NAMELEN(dirent) strlen ((dirent)->d_name)     /* OK: strlen d_name */
 #else
 # define dirent direct
-# define NAMELEN(dirent) (dirent)->d_namelen
+# define NAMELEN(dirent) (dirent)->d_namelen   /* OK: d_namelen */
 # ifdef HAVE_SYS_NDIR_H
 #  include <sys/ndir.h>
 # endif