2003-02-01 Andrew Cagney <ac131313@redhat.com>
* gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and strlen d_name.
This commit is contained in:
parent
7ca9f392fc
commit
94bbfd30fe
|
@ -1,5 +1,8 @@
|
||||||
2003-02-01 Andrew Cagney <ac131313@redhat.com>
|
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,
|
* main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
|
||||||
ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
|
ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
|
||||||
(print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
|
(print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
|
||||||
|
|
|
@ -23,11 +23,11 @@
|
||||||
|
|
||||||
/* See description of `AC_HEADER_DIRENT' in the Autoconf manual. */
|
/* See description of `AC_HEADER_DIRENT' in the Autoconf manual. */
|
||||||
#ifdef HAVE_DIRENT_H
|
#ifdef HAVE_DIRENT_H
|
||||||
# include <dirent.h>
|
# include <dirent.h> /* OK: dirent.h */
|
||||||
# define NAMELEN(dirent) strlen((dirent)->d_name)
|
# define NAMELEN(dirent) strlen ((dirent)->d_name) /* OK: strlen d_name */
|
||||||
#else
|
#else
|
||||||
# define dirent direct
|
# define dirent direct
|
||||||
# define NAMELEN(dirent) (dirent)->d_namelen
|
# define NAMELEN(dirent) (dirent)->d_namelen /* OK: d_namelen */
|
||||||
# ifdef HAVE_SYS_NDIR_H
|
# ifdef HAVE_SYS_NDIR_H
|
||||||
# include <sys/ndir.h>
|
# include <sys/ndir.h>
|
||||||
# endif
|
# endif
|
||||||
|
|
Loading…
Reference in New Issue