[tin-dev] [PATCH] misc.c: strings moved to lang.c

Dennis Preiser dennis at d--p.de
Mon Nov 13 21:38:49 CET 2023


On Mon, Nov 13, 2023 at 06:50:50PM +0100, Dennis Preiser wrote:
> I've moved strings from misc.c to lang.c.

--- a/include/extern.h
+++ b/include/extern.h
@@ -623,11 +623,11 @@ extern constext txt_conninfo_saved_news[];
 	extern constext txt_conninfo_spooldir[];
 	extern constext txt_conninfo_subscriptions_file[];
 #endif /* !NNTP_ONLY */
-#if defined(NNTP_ABLE)
+#ifdef NNTP_ABLE
 	extern constext txt_conninfo_nntp[];
 	extern constext txt_conninfo_ro[];
 	extern constext txt_conninfo_rw[];
-#	if defined(NNTPS_ABLE)
+#	ifdef NNTPS_ABLE
 	extern constext txt_conninfo_nntps[];
 	extern constext txt_conninfo_trusted[];
 	extern constext txt_conninfo_untrusted[];
--- a/src/lang.c
+++ b/src/lang.c
@@ -182,11 +182,11 @@ constext txt_conninfo_saved_news[] = N_("Reading saved news.\n");
 	constext txt_conninfo_spooldir[] = "SPOOLDIR          : %s\n";
 	constext txt_conninfo_subscriptions_file[] = "SUBSCRIPTIONS_FILE: %s\n";
 #endif /* !NNTP_ONLY */
-#if defined(NNTP_ABLE)
+#ifdef NNTP_ABLE
 	constext txt_conninfo_nntp[] = N_("Reading via NNTP (%s).\n");
 	constext txt_conninfo_ro[] = N_("read only");
 	constext txt_conninfo_rw[] = N_("read/write");
-#	if defined(NNTPS_ABLE)
+#	ifdef NNTPS_ABLE
 	constext txt_conninfo_nntps[] = N_("Reading %s via NNTPS (%s; ");
 	constext txt_conninfo_trusted[] = N_("trusted");
 	constext txt_conninfo_untrusted[] = N_("untrusted");




More information about the tin-dev mailing list