talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit bc439aecd313e323fbc7d66f3a0325efccac503d
parent aaba0f7a16e095357470350ef6335a3a3b16a0a3
Author: Ricardo Mones <ricardo@mones.org>
Date:   Fri, 16 Feb 2024 17:24:41 +0100

Remove remaining references to dirent

which has become unused now.

Diffstat:
Mconfigure.ac | 13-------------
Msrc/addressbook.c | 3+--
Msrc/addrharvest.c | 4+---
Msrc/common/utils.c | 15+--------------
Msrc/common/utils.h | 4+---
Msrc/exporthtml.c | 2--
Msrc/exportldif.c | 2--
Msrc/gtk/gtkaspell.c | 1-
Msrc/imap.c | 3+--
Msrc/mh.c | 4+---
Msrc/news.c | 4+---
Msrc/plugins/mailmbox/mailmbox_folder.c | 7++-----
Msrc/plugins/vcalendar/vcal_folder.c | 3+--
Msrc/prefs_template.c | 3+--
Msrc/ssl_manager.c | 3+--
Msrc/stock_pixmap.c | 3+--
Msrc/toolbar.c | 3+--
Msrc/uri_opener.c | 3+--
18 files changed, 15 insertions(+), 65 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -412,20 +412,7 @@ if test "$ac_cv_va_opt" = yes; then AC_DEFINE([HAVE_VA_OPT], [1], [Define if __VA_OPT__ macro works]) fi -dnl Check for d_type member in struct dirent -AC_MSG_CHECKING([whether struct dirent has d_type member]) -AC_CACHE_VAL(ac_cv_dirent_d_type,[ - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <dirent.h>]], [[struct dirent d; d.d_type = DT_REG;]])],[ac_cv_dirent_d_type=yes],[ac_cv_dirent_d_type=no]) -]) -AC_MSG_RESULT($ac_cv_dirent_d_type) -if test $ac_cv_dirent_d_type = yes; then - AC_DEFINE(HAVE_DIRENT_D_TYPE, 1, - Define if `struct dirent' has `d_type' member.) -fi - dnl Checks for header files. -AC_HEADER_DIRENT - AC_HEADER_SYS_WAIT AC_CHECK_HEADERS(fcntl.h sys/file.h unistd.h paths.h \ sys/param.h sys/utsname.h sys/select.h \ diff --git a/src/addressbook.c b/src/addressbook.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto + * Copyright (C) 1999-2024 the Claws Mail team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -30,7 +30,6 @@ #include <string.h> #include <setjmp.h> #include <sys/types.h> -#include <dirent.h> #include "main.h" #include "addressbook.h" diff --git a/src/addrharvest.c b/src/addrharvest.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 2002-2022 Match Grun and the Claws Mail team + * Copyright (C) 2002-2024 Match Grun and the Claws Mail team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -14,7 +14,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * */ /* @@ -27,7 +26,6 @@ #endif #include <sys/stat.h> -#include <dirent.h> #include <glib.h> #include <string.h> diff --git a/src/common/utils.c b/src/common/utils.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2021 The Claws Mail Team and Hiroyuki Yamamoto + * Copyright (C) 1999-2024 The Claws Mail Team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -67,7 +67,6 @@ #if HAVE_SYS_WAIT_H # include <sys/wait.h> #endif -#include <dirent.h> #include <time.h> #include <regex.h> @@ -2094,18 +2093,6 @@ gboolean is_file_entry_regular(const gchar *file) return g_file_test(file, G_FILE_TEST_IS_REGULAR); } -gboolean dirent_is_regular_file(struct dirent *d) -{ -#if !defined(G_OS_WIN32) && defined(HAVE_DIRENT_D_TYPE) - if (d->d_type == DT_REG) - return TRUE; - else if (d->d_type != DT_UNKNOWN) - return FALSE; -#endif - - return g_file_test(d->d_name, G_FILE_TEST_IS_REGULAR); -} - gint change_dir(const gchar *dir) { gchar *prevdir = NULL; diff --git a/src/common/utils.h b/src/common/utils.h @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2022 The Claws Mail Team and Hiroyuki Yamamoto + * Copyright (C) 1999-2024 The Claws Mail Team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -38,7 +38,6 @@ #include <stdlib.h> #include <unistd.h> #include <sys/types.h> -#include <dirent.h> #include <time.h> #if HAVE_ALLOCA_H # include <alloca.h> @@ -428,7 +427,6 @@ gboolean is_relative_filename (const gchar *file); gboolean is_dir_exist (const gchar *dir); gboolean is_file_entry_exist (const gchar *file); gboolean is_file_entry_regular(const gchar *file); -gboolean dirent_is_regular_file (struct dirent *d); #define is_file_exist(file) file_exist(file, FALSE) #define is_file_or_fifo_exist(file) file_exist(file, TRUE) diff --git a/src/exporthtml.c b/src/exporthtml.c @@ -14,7 +14,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * */ /* @@ -31,7 +30,6 @@ #endif #include <sys/stat.h> -#include <dirent.h> #include <errno.h> #include <time.h> #include <string.h> diff --git a/src/exportldif.c b/src/exportldif.c @@ -14,7 +14,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * */ /* @@ -26,7 +25,6 @@ #endif #include <sys/stat.h> -#include <dirent.h> #include <errno.h> #include <time.h> #include <string.h> diff --git a/src/gtk/gtkaspell.c b/src/gtk/gtkaspell.c @@ -45,7 +45,6 @@ #include <sys/time.h> #include <fcntl.h> #include <time.h> -#include <dirent.h> #include <glib.h> #include <glib/gi18n.h> diff --git a/src/imap.c b/src/imap.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2023 the Claws Mail team and Hiroyuki Yamamoto + * Copyright (C) 1999-2024 the Claws Mail team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -36,7 +36,6 @@ #ifdef HAVE_LIBETPAN #include <stdlib.h> -#include <dirent.h> #include <unistd.h> #include <ctype.h> #include <time.h> diff --git a/src/mh.c b/src/mh.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2013 Hiroyuki Yamamoto and the Claws Mail team + * Copyright (C) 1999-2024 Hiroyuki Yamamoto and the Claws Mail team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -14,7 +14,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * */ #ifdef HAVE_CONFIG_H @@ -26,7 +25,6 @@ #include <glib.h> #include <glib/gi18n.h> -#include <dirent.h> #include <sys/stat.h> #include <unistd.h> #include <string.h> diff --git a/src/news.c b/src/news.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto + * Copyright (C) 1999-2024 the Claws Mail team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -14,7 +14,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * */ #ifdef HAVE_CONFIG_H @@ -31,7 +30,6 @@ #include <stdio.h> #include <string.h> #include <stdlib.h> -#include <dirent.h> #include <unistd.h> #include <time.h> #include <libetpan/libetpan.h> diff --git a/src/plugins/mailmbox/mailmbox_folder.c b/src/plugins/mailmbox/mailmbox_folder.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2003 Hiroyuki Yamamoto + * Copyright (C) 1999-2024 Hiroyuki Yamamoto and the Claws Mail team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -13,11 +13,9 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * along with this program. If not, see <http://www.gnu.org/licenses/>. */ - #ifdef HAVE_CONFIG_H # include "config.h" # include "claws-features.h" @@ -28,7 +26,6 @@ #include "defs.h" -#include <dirent.h> #include <sys/stat.h> #include <unistd.h> #include <string.h> diff --git a/src/plugins/vcalendar/vcal_folder.c b/src/plugins/vcalendar/vcal_folder.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2023 the Claws Mail team and Colin Leroy <colin@colino.net> + * Copyright (C) 1999-2024 the Claws Mail team and Colin Leroy <colin@colino.net> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -66,7 +66,6 @@ #include "messageview.h" #include <gtk/gtk.h> -#include <dirent.h> #ifdef USE_PTHREAD #include <pthread.h> diff --git a/src/prefs_template.c b/src/prefs_template.c @@ -1,7 +1,7 @@ /* * Claws Mail templates subsystem * Copyright (C) 2001 Alexander Barinov - * Copyright (C) 2001-2022 The Claws Mail team + * Copyright (C) 2001-2024 The Claws Mail team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -25,7 +25,6 @@ #include <gtk/gtk.h> #include <gdk/gdkkeysyms.h> #include <string.h> -#include <dirent.h> #include <sys/stat.h> #include "template.h" diff --git a/src/ssl_manager.c b/src/ssl_manager.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2022 the Claws Mail team and Colin Leroy + * Copyright (C) 1999-2024 the Claws Mail team and Colin Leroy * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,7 +26,6 @@ #include <glib/gi18n.h> #include <gdk/gdkkeysyms.h> #include <sys/types.h> -#include <dirent.h> #include "ssl_manager.h" #include "ssl_certificate.h" diff --git a/src/stock_pixmap.c b/src/stock_pixmap.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2023 the Claws Mail team and Hiroyuki Yamamoto + * Copyright (C) 1999-2024 the Claws Mail team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,7 +24,6 @@ #include <glib.h> #include <gtk/gtk.h> #include <string.h> -#include <dirent.h> #ifdef HAVE_SVG #include <librsvg/rsvg.h> #include <math.h> diff --git a/src/toolbar.c b/src/toolbar.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 2001-2022 the Claws Mail team and Hiroyuki Yamamoto + * Copyright (C) 2001-2024 the Claws Mail team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -27,7 +27,6 @@ #include <glib/gi18n.h> #include <stdio.h> #include <stdlib.h> -#include <dirent.h> #include <sys/stat.h> #include <math.h> #include <setjmp.h> diff --git a/src/uri_opener.c b/src/uri_opener.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2022 the Claws Mail team and Colin Leroy + * Copyright (C) 1999-2024 the Claws Mail team and Colin Leroy * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -25,7 +25,6 @@ #include <glib/gi18n.h> #include <gdk/gdkkeysyms.h> #include <sys/types.h> -#include <dirent.h> #include "manage_window.h" #include "utils.h"