+2006-07-30 Bruno Haible <bruno@clisp.org>
+
+ * configure.ac: Don't test for the strstr function.
+
2006-07-30 Bruno Haible <bruno@clisp.org>
* configure.ac: Update for changed location of javacomp.sh.in,
gl_ALLOCSA
AC_CHECK_FUNCS([chown getcwd posix_spawn raise select strerror strtoul uname \
utime utimes waitid])
-AC_REPLACE_FUNCS([atexit memmove memset stpcpy strcspn \
-strpbrk strstr vasprintf])
+AC_REPLACE_FUNCS([atexit memmove memset stpcpy strcspn strpbrk vasprintf])
AM_FUNC_GETLINE
if test $am_cv_func_working_getline != yes; then
AC_CHECK_FUNCS(getdelim)
+2006-07-30 Bruno Haible <bruno@clisp.org>
+
+ * c-strstr.h: Renamed from strstr.h. Don't test HAVE_STRSTR.
+ (c_strstr): Renamed from strstr.
+ * c-strstr.c: Renamed from strstr.c.
+ (c_strstr): Renamed from strstr.
+ * javacomp.c: Include c-strstr.h instead of strstr.h.
+ (is_envjavac_gcj): Use c_strstr instead of strstr.
+ * propername.c: Include c-strstr.h.
+ (proper_name_utf8): Use c_strstr instead of strstr.
+
2006-07-29 Bruno Haible <bruno@clisp.org>
* xreadlink.c: Assume <stdlib.h> exists.
#include "clean-temp.h"
#include "error.h"
#include "xvasprintf.h"
-#include "strstr.h"
+#include "c-strstr.h"
#include "gettext.h"
#define _(str) gettext (str)
fclose (fp);
goto failed;
}
- envjavac_gcj = (strstr (line, "gcj") != NULL);
+ envjavac_gcj = (c_strstr (line, "gcj") != NULL);
fclose (fp);
#include "localcharset.h"
#include "c-strcase.h"
#include "iconvstring.h"
+#include "c-strstr.h"
#include "strstr.h"
#include "xalloc.h"
#include "gettext.h"
{
/* See whether the translation contains the original name.
A multibyte-aware strstr() is not absolutely necessary here. */
- if (strstr (translation, name_ascii) != NULL
+ if (c_strstr (translation, name_ascii) != NULL
|| (name_converted != NULL
&& strstr (translation, name_converted) != NULL)
|| (name_converted_translit != NULL
+2006-07-30 Bruno Haible <bruno@clisp.org>
+
+ * msgl-cat.c: Include c-strstr.h instead of strstr.h.
+ (catenate_msgdomain_list): Use c_strstr instead of strstr.
+ * msgl-charset.c: Include c-strstr.h instead of strstr.h.
+ (compare_po_locale_charsets): Use c_strstr instead of strstr.
+ * msgl-check.c: Include c-strstr.h instead of strstr.h.
+ (plural_help, check_plural, check_header_entry): Use c_strstr instead
+ of strstr.
+ * msgl-iconv.c: Include c-strstr.h instead of strstr.h.
+ (iconv_message_list): Use c_strstr instead of strstr.
+ * po-charset.c: Include c-strstr.h instead of strstr.h.
+ (po_lex_charset_set): Use c_strstr instead of strstr.
+ * write-po.c: Include c-strstr.h instead of strstr.h.
+ (msgdomain_list_print_po): Use c_strstr instead of strstr.
+ * write-stringtable.c: Include c-strstr.h instead of strstr.h.
+ (write_message): Use c_strstr instead of strstr.
+ * msgcmp.c: Include c-strstr.h instead of strstr.h.
+ (compare): Use c_strstr instead of strstr.
+ * msginit.c: Include c-strstr.h instead of strstr.h.
+ (content_type): Use c_strstr instead of strstr.
+ * msgmerge.c: Include c-strstr.h instead of strstr.h.
+ (message_merge, merge): Use c_strstr instead of strstr.
+ * x-python.c: Include c-strstr.h instead of strstr.h.
+ (try_to_extract_coding): Use c_strstr instead of strstr.
+ * xgettext.c: Include c-strstr.h instead of strstr.h.
+ (remember_a_message, finalize_header): Use c_strstr instead of strstr.
+
2006-07-23 Bruno Haible <bruno@clisp.org>
Exploit CPUs with multiple execution units.
#include "exit.h"
#include "read-po.h"
#include "msgl-iconv.h"
-#include "strstr.h"
+#include "c-strstr.h"
#include "c-strcase.h"
#include "propername.h"
#include "gettext.h"
if (header != NULL)
{
- const char *charsetstr = strstr (header, "charset=");
+ const char *charsetstr = c_strstr (header, "charset=");
if (charsetstr != NULL)
{
#include "relocatable.h"
#include "basename.h"
#include "strpbrk.h"
-#include "strstr.h"
+#include "c-strstr.h"
#include "c-strcase.h"
#include "message.h"
#include "read-po.h"
old_field = get_field (header, "Content-Type");
if (old_field != NULL)
{
- const char *charsetstr = strstr (old_field, "charset=");
+ const char *charsetstr = c_strstr (old_field, "charset=");
if (charsetstr != NULL)
{
#include "msgl-iconv.h"
#include "xalloc.h"
#include "xallocsa.h"
-#include "strstr.h"
+#include "c-strstr.h"
#include "basename.h"
#include "exit.h"
#include "gettext.h"
if (header != NULL)
{
- const char *charsetstr = strstr (header, "charset=");
+ const char *charsetstr = c_strstr (header, "charset=");
if (charsetstr != NULL)
{
if (header != NULL)
{
- const char *cp = strstr (header, "Project-Id-Version:");
+ const char *cp = c_strstr (header, "Project-Id-Version:");
if (cp != NULL)
{
#include "xerror.h"
#include "xvasprintf.h"
#include "message.h"
-#include "strstr.h"
+#include "c-strstr.h"
#include "exit.h"
#include "gettext.h"
if (header != NULL)
{
- const char *charsetstr = strstr (header, "charset=");
+ const char *charsetstr = c_strstr (header, "charset=");
if (charsetstr != NULL)
{
#include "plural-exp.h"
#include "plural-eval.h"
#include "plural-table.h"
-#include "strstr.h"
+#include "c-strstr.h"
#include "vasprintf.h"
#include "exit.h"
#include "message.h"
const char *language;
size_t j;
- language = strstr (nullentry, "Language-Team: ");
+ language = c_strstr (nullentry, "Language-Team: ");
if (language != NULL)
{
language += 15;
nullentry = header->msgstr;
- plural = strstr (nullentry, "plural=");
- nplurals = strstr (nullentry, "nplurals=");
+ plural = c_strstr (nullentry, "plural=");
+ nplurals = c_strstr (nullentry, "nplurals=");
if (plural == NULL && has_plural != NULL)
{
const char *msg1 =
for (cnt = 0; cnt < nfields; ++cnt)
{
- char *endp = strstr (msgstr_string, required_fields[cnt]);
+ char *endp = c_strstr (msgstr_string, required_fields[cnt]);
if (endp == NULL)
{
#include "msgl-ascii.h"
#include "xalloc.h"
#include "xallocsa.h"
-#include "strstr.h"
+#include "c-strstr.h"
#include "xvasprintf.h"
#include "po-xerror.h"
#include "gettext.h"
if (header != NULL)
{
- const char *charsetstr = strstr (header, "charset=");
+ const char *charsetstr = c_strstr (header, "charset=");
if (charsetstr != NULL)
{
#include "format.h"
#include "xalloc.h"
#include "obstack.h"
-#include "strstr.h"
+#include "c-strstr.h"
#include "exit.h"
#include "c-strcase.h"
#include "stpcpy.h"
{
const char *msgid_bugs_ptr;
- msgid_bugs_ptr = strstr (ref->msgstr, "Report-Msgid-Bugs-To:");
+ msgid_bugs_ptr = c_strstr (ref->msgstr, "Report-Msgid-Bugs-To:");
if (msgid_bugs_ptr != NULL)
{
size_t msgid_bugs_len;
{
const char *pot_date_ptr;
- pot_date_ptr = strstr (ref->msgstr, "POT-Creation-Date:");
+ pot_date_ptr = c_strstr (ref->msgstr, "POT-Creation-Date:");
if (pot_date_ptr != NULL)
{
size_t pot_date_len;
if (header != NULL)
{
- const char *charsetstr = strstr (header, "charset=");
+ const char *charsetstr = c_strstr (header, "charset=");
if (charsetstr != NULL)
{
#include "po-xerror.h"
#include "basename.h"
#include "progname.h"
-#include "strstr.h"
+#include "c-strstr.h"
#include "c-strcase.h"
#include "gettext.h"
0x5C bytes in the PO lexer,
2. so that at run time, gettext() can call iconv() to convert
msgstr. */
- const char *charsetstr = strstr (header_entry, "charset=");
+ const char *charsetstr = c_strstr (header_entry, "charset=");
if (charsetstr != NULL)
{
#include "write-stringtable.h"
#include "xalloc.h"
#include "xallocsa.h"
-#include "strstr.h"
+#include "c-strstr.h"
#include "fwriteerror.h"
#include "error-progname.h"
#include "xvasprintf.h"
allocated_charset = NULL;
if (header != NULL)
{
- const char *charsetstr = strstr (header, "charset=");
+ const char *charsetstr = c_strstr (header, "charset=");
if (charsetstr != NULL)
{
/* Writing NeXTstep/GNUstep .strings files.
- Copyright (C) 2003 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2006 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software; you can redistribute it and/or modify
#include "msgl-ascii.h"
#include "msgl-iconv.h"
#include "po-charset.h"
-#include "strstr.h"
+#include "c-strstr.h"
#include "write-po.h"
/* The format of NeXTstep/GNUstep .strings files is documented in
/* Test whether it is safe to output the comment in C style, or
whether we need C++ style for it. */
- if (strstr (s, "*/") == NULL)
+ if (c_strstr (s, "*/") == NULL)
{
fputs ("/*", fp);
if (*s != '\0' && *s != '\n' && *s != ' ')
/* Test whether it is safe to output the comment in C style, or
whether we need C++ style for it. */
- if (strstr (s, "*/") == NULL)
+ if (c_strstr (s, "*/") == NULL)
{
fputs ("/* Comment: ", fp);
fputs (s, fp);
/* Output the msgstr as a comment, so that at runtime
propertyListFromStringsFileFormat ignores it. */
- if (strstr (mp->msgstr, "*/") == NULL)
+ if (c_strstr (mp->msgstr, "*/") == NULL)
{
fputs (" /* = ", fp);
write_escaped_string (fp, mp->msgstr);
#include "xvasprintf.h"
#include "xalloc.h"
#include "exit.h"
-#include "strstr.h"
+#include "c-strstr.h"
#include "c-ctype.h"
#include "po-charset.h"
#include "uniname.h"
static inline void
try_to_extract_coding (const char *comment)
{
- const char *p = strstr (comment, "coding");
+ const char *p = c_strstr (comment, "coding");
if (p != NULL)
{
#include "xvasprintf.h"
#include "xalloc.h"
#include "xallocsa.h"
-#include "strstr.h"
+#include "c-strstr.h"
#include "xerror.h"
#include "exit.h"
#include "pathname.h"
/* To reduce the possibility of unwanted matches we do a two
step match: the line must contain `xgettext:' and one of
the possible format description strings. */
- if ((t = strstr (s, "xgettext:")) != NULL)
+ if ((t = c_strstr (s, "xgettext:")) != NULL)
{
bool tmp_fuzzy;
enum is_format tmp_format[NFORMATS];
message_ty *header =
message_list_search (mdlp->item[0]->messages, NULL, "");
if (header != NULL
- && strstr (header->msgstr, "Plural-Forms:") == NULL)
+ && c_strstr (header->msgstr, "Plural-Forms:") == NULL)
{
size_t insertpos = strlen (header->msgstr);
const char *suffix;