[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/XS/parsetexi/api.c (find_locales_dir
From: |
Gavin D. Smith |
Subject: |
branch master updated: * tp/Texinfo/XS/parsetexi/api.c (find_locales_dir): Remove unused function (it is also incorrect according to the comments). |
Date: |
Sat, 25 Nov 2023 15:24:27 -0500 |
This is an automated email from the git hooks/post-receive script.
gavin pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new 8e6cbd6874 * tp/Texinfo/XS/parsetexi/api.c (find_locales_dir): Remove
unused function (it is also incorrect according to the comments).
8e6cbd6874 is described below
commit 8e6cbd6874872aad2fcfe590ae6ff3fce5e3dd20
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sat Nov 25 20:24:19 2023 +0000
* tp/Texinfo/XS/parsetexi/api.c (find_locales_dir):
Remove unused function (it is also incorrect according to
the comments).
---
ChangeLog | 6 ++++++
tp/Texinfo/XS/parsetexi/api.c | 37 -------------------------------------
2 files changed, 6 insertions(+), 37 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c255b570e3..0ea3e8f4d1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-11-25 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * tp/Texinfo/XS/parsetexi/api.c (find_locales_dir):
+ Remove unused function (it is also incorrect according to
+ the comments).
+
2023-11-24 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/XS/main/manipulate_tree.c (increase_ref_counter)
diff --git a/tp/Texinfo/XS/parsetexi/api.c b/tp/Texinfo/XS/parsetexi/api.c
index b3fd1a1b78..0e7c927c0d 100644
--- a/tp/Texinfo/XS/parsetexi/api.c
+++ b/tp/Texinfo/XS/parsetexi/api.c
@@ -15,8 +15,6 @@
#include <config.h>
-#include <libintl.h>
-
#include <stdlib.h>
#include <stdio.h>
#include <dirent.h>
@@ -52,41 +50,6 @@
#include "conf.h"
#include "api.h"
-#ifdef ENABLE_NLS
-
-/* Use the uninstalled locales dir for translated strings. Currently unused.
- Note that if this code is used to find LocaleData, it should better be
- for the texinfo_document domain and not for the texinfo/PACKAGE text
domain..
- Note that the LocaleData directory is passed to XS code and and used for
- bindtextdomain in the main/translations.c configure function.
- This code may still be relevant for some future C only code */
-static void
-find_locales_dir (char *builddir)
-{
- DIR *dir;
- char *s;
-
- s = malloc (strlen (builddir) + strlen ("/LocaleData") + 1);
- sprintf (s, "%s/LocaleData", builddir);
- dir = opendir (s);
- if (!dir)
- {
- free (s);
- fprintf (stderr, "Locales dir for document strings not found: %s\n",
- strerror (errno));
- }
- else
- { /* FIXME LocaleData does not contain the texinfo/PACKAGE text domain
- translations, but the texinfo_document domain */
- bindtextdomain (PACKAGE, s);
- free (s);
- closedir (dir);
- }
-}
-
-#endif
-
-
/* When reset_parser_except_conf is called in parse_*, store_document will
be called afterwards.
When reset_parser_except_conf is called by reset_parser in parser
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/XS/parsetexi/api.c (find_locales_dir): Remove unused function (it is also incorrect according to the comments).,
Gavin D. Smith <=