]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Use putc_unlocked instead of putc when possible, for speed.
authorBruno Haible <bruno@clisp.org>
Fri, 26 Oct 2001 09:14:36 +0000 (09:14 +0000)
committerBruno Haible <bruno@clisp.org>
Fri, 26 Oct 2001 09:14:36 +0000 (09:14 +0000)
ChangeLog
configure.in
src/ChangeLog
src/write-po.c

index c503761ec8ff5a6a67ac7592221413568d853fa9..be1d0b993ee8e64be16df92dd90f1c1af72ff3a6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-10-09  Bruno Haible  <haible@clisp.cons.org>
+
+       * configure.in: Also check for putc_unlocked.
+
 2001-10-21  Bruno Haible  <haible@clisp.cons.org>
 
        * Makefile.am (SUBDIRS): Add projects.
index 82a40b17caec16cbaebd9377ea8d445bc1d45e26..d6740bcfa21cd24c551fa39fe60b9702f4ff52e7 100644 (file)
@@ -66,8 +66,8 @@ AC_TYPE_PID_T
 dnl Checks for library functions.
 AC_FUNC_ALLOCA
 AC_FUNC_VPRINTF
-AC_CHECK_FUNCS([getcwd mblen memcpy posix_spawn raise select strerror uname \
-utime utimes])
+AC_CHECK_FUNCS([getcwd mblen memcpy posix_spawn putc_unlocked raise select \
+strerror uname utime utimes])
 AC_REPLACE_FUNCS([memset stpcpy stpncpy strcspn \
 strcasecmp strncasecmp strpbrk strstr strtoul vasprintf])
 AM_FUNC_GETLINE
index ed9665c5230e403d79ffd3011b65589b40aeb53e..8cb3200ee586a2ac7b9ca9804525fe3ff39538dd 100644 (file)
@@ -1,3 +1,7 @@
+2001-10-09  Bruno Haible  <haible@clisp.cons.org>
+
+       * write-po.c (putc): Define as putc_unlocked if available.
+
 2001-10-09  Bruno Haible  <haible@clisp.cons.org>
 
        * po-lex.c (getc): Define as getc_unlocked if available.
index f3cec17b0e1b5b9e84bb7bd53caab56d4e9e5ff9..7e94a458fb4bacd779994365427ed6018d0edeb0 100644 (file)
@@ -44,10 +44,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #include "xerror.h"
 #include "libgettext.h"
 
-
 /* Our regular abbreviation.  */
 #define _(str) gettext (str)
 
+#ifdef HAVE_PUTC_UNLOCKED
+# undef putc
+# define putc putc_unlocked
+#endif
+
 
 /* Prototypes for local functions.  Needed to ensure compiler checking of
    function argument counts despite of K&R C function definition syntax.  */