spec.allocated = spec.unnumbered_arg_count;
spec.unnumbered = (struct unnumbered_arg *) xmalloc (spec.allocated * sizeof (struct unnumbered_arg));
for (i = 0; i < spec.unnumbered_arg_count; i++)
- spec.unnumbered[i].type = numbered[i].type;
+ spec.unnumbered[i].type = numbered[i].type;
free (numbered);
numbered_arg_count = 0;
}
n = list->initial.count;
for (i = j = 0; i < n; i++)
if (j > 0
- && equal_element (&list->initial.element[i],
+ && equal_element (&list->initial.element[i],
&list->initial.element[j-1]))
{
list->initial.element[j-1].repcount +=
n = list->repeated.count;
for (i = j = 0; i < n; i++)
if (j > 0
- && equal_element (&list->repeated.element[i],
+ && equal_element (&list->repeated.element[i],
&list->repeated.element[j-1]))
{
list->repeated.element[j-1].repcount +=
unsigned int paramcount = 0;
struct param *params = NULL;
- /* Count number of directives. */
+ /* Count number of directives. */
spec->directives++;
/* Parse parameters. */
This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
- "2001-2003");
+ "2001-2003");
printf (_("Written by %s.\n"), "Bruno Haible");
exit (EXIT_SUCCESS);
}
mdp = mdlp->item[j];
mp = message_list_search (mdp->messages, msgid);
if (mp)
- return mp;
+ return mp;
}
return NULL;
}
case 'F':
sort_by_filepos = true;
- break;
+ break;
case 'h':
do_help = true;
case 'F':
sort_by_filepos = true;
- break;
+ break;
case 'h':
do_help = true;
break;
case 'u':
- less_than = 2;
- break;
+ less_than = 2;
+ break;
case 'V':
do_version = true;
/* Check the message selection criteria for sanity. */
if (more_than >= less_than || less_than < 2)
error (EXIT_FAILURE, 0,
- _("impossible selection criteria specified (%d < n < %d)"),
- more_than, less_than);
+ _("impossible selection criteria specified (%d < n < %d)"),
+ more_than, less_than);
/* Determine list of files we have to process. */
if (files_from != NULL)
case 'F':
sort_by_filepos = true;
- break;
+ break;
case 'h':
do_help = true;
break;
case 'u':
- less_than = 2;
- break;
+ less_than = 2;
+ break;
case 'V':
do_version = true;
less_than = INT_MAX;
if (more_than >= less_than || less_than < 2)
error (EXIT_FAILURE, 0,
- _("impossible selection criteria specified (%d < n < %d)"),
- more_than, less_than);
+ _("impossible selection criteria specified (%d < n < %d)"),
+ more_than, less_than);
/* Read input files, then filter, convert and merge messages. */
allow_duplicates = true;
break;
case 'F':
- sort_by_filepos = true;
- break;
+ sort_by_filepos = true;
+ break;
case 'h':
do_help = true;
break;
case 's':
- sort_by_msgid = true;
- break;
+ sort_by_msgid = true;
+ break;
case 'U':
update_mode = true;
break;
case 'd':
- more_than = 1;
+ more_than = 1;
less_than = INT_MAX;
break;
case 'F':
sort_by_filepos = true;
- break;
+ break;
case 'h':
do_help = true;
break;
case 'u':
- more_than = 0;
+ more_than = 0;
less_than = 2;
- break;
+ break;
case 'V':
do_version = true;
*q = *p;
if (--n > 0)
- do *++q = *++p; while (--n > 0);
+ do *++q = *++p; while (--n > 0);
}
}
/* PO/POT file timestamps.
- Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc.
+ Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc.
Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, April 1995.
This program is free software; you can redistribute it and/or modify
int by = b->tm_year + TM_YEAR_ORIGIN - 1;
/* Some compilers cannot handle this as a single return statement. */
long days = (
- /* difference in day of year */
- a->tm_yday - b->tm_yday
- /* + intervening leap days */
- + ((ay >> 2) - (by >> 2))
- - (ay / 100 - by / 100)
- + ((ay / 100 >> 2) - (by / 100 >> 2))
- /* + difference in years * 365 */
- + (long) (ay - by) * 365l);
+ /* difference in day of year */
+ a->tm_yday - b->tm_yday
+ /* + intervening leap days */
+ + ((ay >> 2) - (by >> 2))
+ - (ay / 100 - by / 100)
+ + ((ay / 100 >> 2) - (by / 100 >> 2))
+ /* + difference in years * 365 */
+ + (long) (ay - by) * 365l);
return 60l * (60l * (24l * days + (a->tm_hour - b->tm_hour))
- + (a->tm_min - b->tm_min))
- + (a->tm_sec - b->tm_sec);
+ + (a->tm_min - b->tm_min))
+ + (a->tm_sec - b->tm_sec);
}
This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
- "2001-2003");
+ "2001-2003");
printf (_("Written by %s.\n"), "Bruno Haible");
exit (EXIT_SUCCESS);
}
*q = *p;
if (--n > 0)
- do *++q = *++p; while (--n > 0);
+ do *++q = *++p; while (--n > 0);
}
}
do
{
/* The \a and \v escapes were added by the ANSI C Standard.
- Prior to the Standard, most compilers did not have them.
- Because we need the same program on all platforms we don't provide
- support for them here. Thus we only support \b\f\n\r\t. */
+ Prior to the Standard, most compilers did not have them.
+ Because we need the same program on all platforms we don't provide
+ support for them here. Thus we only support \b\f\n\r\t. */
# define is_escape(c) \
((c) == '\b' || (c) == '\f' || (c) == '\n' || (c) == '\r' || (c) == '\t')
this is the first line, and if the indented style is being
used. INDENT-F. */
if (line_prefix != NULL)
- fputs (line_prefix, fp);
+ fputs (line_prefix, fp);
if (first_line)
{
fputs (name, fp);
if (extract_all)
continue;
if (state
- ? extract_parenthesized (mlp, next_commas_to_skip,
- next_plural_commas)
+ ? extract_parenthesized (mlp, next_commas_to_skip,
+ next_plural_commas)
: extract_parenthesized (mlp, -1, 0))
return true;
state = 0;
return '\b';
/* The \e escape is preculiar to gcc, and assumes an ASCII
- character set (or superset). We don't provide support for it
- here. */
+ character set (or superset). We don't provide support for it
+ here. */
case 'f':
return '\f';
default:
/* We could carefully recognize each of the 2 and 3 character
- operators, but it is not necessary, as we only need to recognize
- gettext invocations. Don't bother. */
+ operators, but it is not necessary, as we only need to recognize
+ gettext invocations. Don't bother. */
tp->type = token_type_symbol;
return;
}
if (extract_all)
continue;
if (state
- ? extract_parenthesized (mlp, next_commas_to_skip,
- next_plural_commas)
+ ? extract_parenthesized (mlp, next_commas_to_skip,
+ next_plural_commas)
: extract_parenthesized (mlp, -1, 0))
return true;
state = 0;
case '^':
c = do_getc ();
if (c == EOF)
- return EOF;
+ return EOF;
if (c == '\\')
{
c = do_getc ();
case '^':
c = do_getc ();
if (c == EOF)
- return EOF;
+ return EOF;
return c & 0x1f;
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7':
if (extract_all)
continue;
if (state
- ? extract_parenthesized (mlp, next_commas_to_skip,
- next_plural_commas)
+ ? extract_parenthesized (mlp, next_commas_to_skip,
+ next_plural_commas)
: extract_parenthesized (mlp, -1, 0))
return true;
state = 0;
if (extract_all)
continue;
if (state
- ? extract_parenthesized (mlp, next_commas_to_skip,
- next_plural_commas)
+ ? extract_parenthesized (mlp, next_commas_to_skip,
+ next_plural_commas)
: extract_parenthesized (mlp, -1, 0))
return true;
state = 0;
{
int n = c - '0';
- c = phase1_getc ();
+ c = phase1_getc ();
if (c != EOF)
{
if (c >= '0' && c <= '7')
break;
case 'F':
sort_by_filepos = true;
- break;
+ break;
case 'h':
do_help = true;
break;
fname = file_list->item[cnt];
if (extractor)
- this_file_extractor = extractor;
+ this_file_extractor = extractor;
else
{
const char *extension;
if (msgid_bugs_address != NULL && msgid_bugs_address[0] == '\0')
multiline_warning (xasprintf (_("warning: ")),
- xstrdup (_("\
+ xstrdup (_("\
The option --msgid-bugs-address was not specified.\n\
If you are using a `Makevars' file, please specify\n\
the MSGID_BUGS_ADDRESS variable there; otherwise please\n\