diff options
author | Bruno Haible <bruno@clisp.org> | 2001-10-26 09:14:36 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2001-10-26 09:14:36 +0000 |
commit | 588ca4f6008603338e0f537671b5f751d0f5554e (patch) | |
tree | 8e18610dbddd3d97aa70fea945c2b64641ede9a2 /src | |
parent | dc0a34c6be759f1f4fe0dbc6ce3058b572e589f3 (diff) | |
download | external_gettext-588ca4f6008603338e0f537671b5f751d0f5554e.zip external_gettext-588ca4f6008603338e0f537671b5f751d0f5554e.tar.gz external_gettext-588ca4f6008603338e0f537671b5f751d0f5554e.tar.bz2 |
Use putc_unlocked instead of putc when possible, for speed.
Diffstat (limited to 'src')
-rw-r--r-- | src/ChangeLog | 4 | ||||
-rw-r--r-- | src/write-po.c | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ed9665c..8cb3200 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,9 @@ 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. 2001-10-21 Bruno Haible <haible@clisp.cons.org> diff --git a/src/write-po.c b/src/write-po.c index f3cec17..7e94a45 100644 --- a/src/write-po.c +++ b/src/write-po.c @@ -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. */ |