# In gettext-runtime:
GNULIB_MODULES_RUNTIME_FOR_SRC='
atexit
+ attribute
basename-lgpl
binary-io
closeout
GNULIB_MODULES_TOOLS_FOR_SRC='
alloca-opt
atexit
+ attribute
backupfile
basename-lgpl
binary-io
done` \
$GNULIB_MODULES_TOOLS_FOR_LIBGREP || exit $?
# In gettext-tools/libgettextpo:
- # This is a subset of the GNULIB_MODULES_FOR_SRC.
+ # This is a subset of the GNULIB_MODULES_TOOLS_FOR_SRC.
GNULIB_MODULES_LIBGETTEXTPO='
+ attribute
basename-lgpl
close
c-ctype
#include <stdlib.h>
#include <string.h>
#include "plural-exp.h"
+#include "attribute.h"
/* The main function generated by the parser is called __gettextparse,
but we want it to be called PLURAL_PARSE. */
{
case 3:
FREE_EXPRESSION (exp->val.args[2]);
- /* FALLTHROUGH */
+ FALLTHROUGH;
case 2:
FREE_EXPRESSION (exp->val.args[1]);
- /* FALLTHROUGH */
+ FALLTHROUGH;
case 1:
FREE_EXPRESSION (exp->val.args[0]);
- /* FALLTHROUGH */
+ FALLTHROUGH;
default:
break;
}
/* Expand escape sequences in a string.
- Copyright (C) 1995-1997, 2000-2007, 2012, 2018-2019 Free Software
+ Copyright (C) 1995-1997, 2000-2007, 2012, 2018-2020 Free Software
Foundation, Inc.
Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, May 1995.
++cp;
break;
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
default:
*rp++ = '\\';
break;
#include <string.h>
#include <locale.h>
+#include "attribute.h"
#include "noreturn.h"
#include "closeout.h"
#include "error.h"
case 2:
domain = argv[optind++];
- /* FALLTHROUGH */
+ FALLTHROUGH;
case 1:
break;
#include <locale.h>
#include <errno.h>
+#include "attribute.h"
#include "noreturn.h"
#include "closeout.h"
#include "error.h"
case 4:
domain = argv[optind++];
- /* FALLTHROUGH */
+ FALLTHROUGH;
case 3:
break;
#include <stdbool.h>
#include <stdlib.h>
+#include "attribute.h"
#include "format.h"
#include "c-ctype.h"
#include "xalloc.h"
type = FAT_ANY;
break;
}
- /*FALLTHROUGH*/
+ FALLTHROUGH;
default:
--format;
if (*format == '\0')
/* Reading NeXTstep/GNUstep .strings files.
- Copyright (C) 2003, 2005-2007, 2009, 2019 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2005-2007, 2009, 2019-2020 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 <stdlib.h>
#include <string.h>
+#include "attribute.h"
#include "error.h"
#include "error-progname.h"
#include "read-catalog-abstract.h"
&& !seen_newline);
break;
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
default:
last_was_star = false;
# define S_IXOTH (S_IXUSR >> 6)
#endif
+#include "attribute.h"
#include "c-ctype.h"
#include "relocatable.h"
#include "error.h"
fprintf (stream, ")");
return;
}
- /*FALLTHROUGH*/
+ FALLTHROUGH;
case var:
case mult:
case divide:
# define S_IXUSR 00100
#endif
+#include "attribute.h"
#include "c-ctype.h"
#include "error.h"
#include "xerror.h"
fprintf (stream, ")");
return;
}
- /*FALLTHROUGH*/
+ FALLTHROUGH;
case var:
case mult:
case divide:
/* GNU gettext - internationalization aids
- Copyright (C) 1995-1998, 2000-2010, 2012, 2014-2015, 2018-2019 Free Software
+ Copyright (C) 1995-1998, 2000-2010, 2012, 2014-2015, 2018-2020 Free Software
Foundation, Inc.
This file was written by Peter Miller <millerp@canb.auug.org.au>
#include <textstyle.h>
+#include "attribute.h"
#include "c-ctype.h"
#include "po-charset.h"
#include "format.h"
sprintf (result, "possible-%s-format", lang);
break;
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
case yes_according_to_context:
case yes:
sprintf (result, "%s-format", lang);
/* xgettext awk backend.
- Copyright (C) 2002-2003, 2005-2009, 2018-2019 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 2005-2009, 2018-2020 Free Software Foundation, Inc.
This file was written by Bruno Haible <haible@clisp.cons.org>, 2002.
#include <stdlib.h>
#include <string.h>
+#include "attribute.h"
#include "message.h"
#include "xgettext.h"
#include "xg-pos.h"
FIXME: Newlines after any of ',' '{' '?' ':' '||' '&&' 'do' 'else'
does *not* introduce a fresh statement. */
prefer_division_over_regexp = false;
- /* FALLTHROUGH */
+ FALLTHROUGH;
case '\t':
case ' ':
/* Ignore whitespace and comments. */
return;
}
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
case 'A': case 'B': case 'C': case 'D': case 'E': case 'F':
case 'G': case 'H': case 'I': case 'J': case 'K': case 'L':
case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R':
prefer_division_over_regexp = false;
return;
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
default:
/* We could carefully recognize each of the 2 and 3 character
#include <stdlib.h>
#include <string.h>
+#include "attribute.h"
#include "message.h"
#include "rc-str-list.h"
#include "xgettext.h"
case '\n':
--line_number;
- /* FALLTHROUGH */
+ FALLTHROUGH;
default:
if (phase1_pushback_length == SIZEOF (phase1_pushback))
comment_line_end (2);
break;
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
default:
last_was_star = false;
error (0, 0, _("%s:%d: warning: a double-quote in the delimiter of a raw string literal is unsupported"),
logical_file_name, starting_line_number);
error_with_progname = true;
- /* FALLTHROUGH */
+ FALLTHROUGH;
default:
valid_delimiter_char = false;
break;
tp->type = token_type_symbol;
return;
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
default:
phase4_ungetc (c);
c = '.';
break;
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
case 'P':
/* In C99 and C++17, 'p' and 'P' can be used as an exponent
marker. */
- /* FALLTHROUGH */
+ FALLTHROUGH;
case 'e':
case 'E':
if (bufpos >= bufmax)
break;
}
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
default:
phase4_ungetc (c);
break;
tp->comment = add_reference (savable_comment);
return;
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
default:
/* We could carefully recognize each of the 2 and 3 character
case token_type_objc_special:
drop_reference (token.comment);
- /* FALLTHROUGH */
+ FALLTHROUGH;
default:
last_non_comment_line = newline_count;
#include <stdlib.h>
#include <string.h>
+#include "attribute.h"
#include "message.h"
#include "rc-str-list.h"
#include "xgettext.h"
comment_line_end (2);
break;
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
default:
last_was_star = false;
case UNL:
if (last_non_comment_line > last_comment_line)
savable_comment_reset ();
- /* FALLTHROUGH */
+ FALLTHROUGH;
case ' ':
case '\t':
case '\f':
tp->type = token_type_dot;
return;
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
tp->type = token_type_string_literal;
return;
}
- /* FALLTHROUGH, so that @identifier is recognized. */
+ FALLTHROUGH; /* so that @identifier is recognized. */
default:
if (c == '\\')
#include <stdlib.h>
#include <string.h>
+#include "attribute.h"
#include "message.h"
#include "xgettext.h"
#include "xg-pos.h"
if (c != '-')
/* Invalid input. But be tolerant. */
return c;
- /*FALLTHROUGH*/
+ FALLTHROUGH;
case '^':
c = do_getc ();
if (c == EOF)
}
}
c = '.';
- /*FALLTHROUGH*/
+ FALLTHROUGH;
default:
default_label:
if (c <= ' ') /* FIXME: Assumes ASCII compatible encoding */
#include <stdlib.h>
#include <string.h>
+#include "attribute.h"
#include "message.h"
#include "rc-str-list.h"
#include "xgettext.h"
comment_line_end (2);
break;
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
default:
last_was_star = false;
case '\n':
if (last_non_comment_line > last_comment_line)
savable_comment_reset ();
- /* FALLTHROUGH */
+ FALLTHROUGH;
case ' ':
case '\t':
case '\f':
tp->type = token_type_dot;
return;
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
#include <stdlib.h>
#include <string.h>
+#include "attribute.h"
#include "message.h"
#include "rc-str-list.h"
#include "xgettext.h"
comment_line_end (2);
break;
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
default:
last_was_star = false;
case '\n':
if (last_non_comment_line > last_comment_line)
savable_comment_reset ();
- /* FALLTHROUGH */
+ FALLTHROUGH;
case ' ':
case '\t':
case '\f':
return;
}
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
case 'A': case 'B': case 'C': case 'D': case 'E': case 'F':
case 'G': case 'H': case 'I': case 'J': case 'K': case 'L':
case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R':
#include <stdlib.h>
#include <string.h>
+#include "attribute.h"
#include "c-ctype.h"
#include "message.h"
#include "xgettext.h"
radix = 0;
break;
}
- /*FALLTHROUGH*/
+ FALLTHROUGH;
default:
if (exponent && (c == '+' || c == '-'))
break;
if (c != EOF && c != '@')
do_ungetc (c);
}
- /*FALLTHROUGH*/
+ FALLTHROUGH;
case '\'':
case '`':
{
}
continue;
}
- /*FALLTHROUGH*/
+ FALLTHROUGH;
case '\'':
case ':':
{
#include <stdlib.h>
#include <string.h>
+#include "attribute.h"
#include "message.h"
#include "xgettext.h"
#include "xg-pos.h"
if (c != EOF && c != '@' && c != '.')
do_ungetc (c);
}
- /*FALLTHROUGH*/
+ FALLTHROUGH;
case '\'':
case '`':
{
case '(':
case '"':
do_ungetc (c);
- /*FALLTHROUGH*/
+ FALLTHROUGH;
case '\'':
case ':':
case '.':
#include <stdlib.h>
#include <string.h>
+#include "attribute.h"
#include "message.h"
#include "rc-str-list.h"
#include "xgettext.h"
buffer[bufpos++] = '\\';
break;
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
default:
buffer[bufpos++] = *crs++;
break;
treat incorrectly here, is a syntax error. */
phase1_ungetc (c2);
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
default:
#if DEBUG_PERL
break;
}
/* Must be right brace. */
- /* FALLTHROUGH */
+ FALLTHROUGH;
case wait_rbrace:
switch (c)
{
extract_quotelike_pass3 (&token, EXIT_FAILURE);
remember_a_message (mlp, NULL, token.string, true, false, context,
&pos, NULL, savable_comment, true);
- /* FALLTHROUGH */
+ FALLTHROUGH;
default:
context = null_context;
state = initial;
case '\n':
if (last_non_comment_line > last_comment_line)
savable_comment_reset ();
- /* FALLTHROUGH */
+ FALLTHROUGH;
case '\t':
case ' ':
/* Ignore whitespace. */
return;
}
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
case 'A': case 'B': case 'C': case 'D': case 'E': case 'F':
case 'G': case 'H': case 'I': case 'J': case 'K': case 'L':
case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R':
if (c != '/')
phase1_ungetc (c);
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
default:
/* We could carefully recognize each of the 2 and 3 character
#include <stdio.h>
#include <stdlib.h>
+#include "attribute.h"
#include "message.h"
#include "rc-str-list.h"
#include "xgettext.h"
comment_line_end (2);
break;
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
default:
last_was_star = false;
case '\n':
if (last_non_comment_line > last_comment_line)
savable_comment_reset ();
- /* FALLTHROUGH */
+ FALLTHROUGH;
case ' ':
case '\t':
case '\r':
#include <stdlib.h>
#include <string.h>
+#include "attribute.h"
#include "message.h"
#include "rc-str-list.h"
#include "xgettext.h"
return;
}
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
case 'A': case 'B': case 'C': case 'D': case 'E': case 'F':
case 'G': case 'H': case 'I': case 'J': case 'K': case 'L':
case 'M': case 'N': case 'O': case 'P': case 'Q':
#include <stdlib.h>
#include <string.h>
+#include "attribute.h"
#include "message.h"
#include "xgettext.h"
#include "xg-pos.h"
if (c != EOF && c != '@')
do_ungetc (c);
}
- /*FALLTHROUGH*/
+ FALLTHROUGH;
case '\'':
case '`':
{
while (c >= '0' && c <= '9');
/* c should be one of {'a'|'b'|'c'|'e'|'i'|'s'|'u'}.
But be tolerant. */
- /*FALLTHROUGH*/
+ FALLTHROUGH;
case '\'': /* boot-9.scm */
case '.': /* boot-9.scm */
case ',': /* srfi-10.scm */
}
seen_underscore_prefix = true;
}
- /*FALLTHROUGH*/
+ FALLTHROUGH;
case '"':
{
#include <stdlib.h>
#include <string.h>
+#include "attribute.h"
#include "message.h"
#include "xgettext.h"
#include "xg-pos.h"
case '\n':
--line_number;
- /* FALLTHROUGH */
+ FALLTHROUGH;
default:
if (phase1_pushback_length == SIZEOF (phase1_pushback))
case '\n':
--line_number;
- /* FALLTHROUGH */
+ FALLTHROUGH;
default:
if (phase2_pushback_length == SIZEOF (phase2_pushback))
#include <stdio.h>
#include <stdlib.h>
+#include "attribute.h"
#include "message.h"
#include "xgettext.h"
#include "xg-pos.h"
case '\n':
if (last_non_comment_line > last_comment_line)
savable_comment_reset ();
- /* FALLTHROUGH */
+ FALLTHROUGH;
case ' ':
case '\t':
case '\r':
#include <stdlib.h>
#include <string.h>
+#include "attribute.h"
#include "message.h"
#include "xgettext.h"
#include "xg-pos.h"
case '\n':
case BS_NL:
--line_number;
- /* FALLTHROUGH */
+ FALLTHROUGH;
default:
if (phase1_pushback_length == SIZEOF (phase1_pushback))
#include <stdlib.h>
#include <string.h>
+#include "attribute.h"
#include "message.h"
#include "rc-str-list.h"
#include "xgettext.h"
comment_line_end (2);
break;
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
default:
last_was_star = false;
case '\n':
if (last_non_comment_line > last_comment_line)
savable_comment_reset ();
- /* FALLTHROUGH */
+ FALLTHROUGH;
case ' ':
case '\f':
case '\t':
c = '.';
break;
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
return;
}
template = true;
- /* FALLTHROUGH */
+ FALLTHROUGH;
case '"':
{
struct mixed_string_buffer msb;
#include <stdio.h>
#include <stdlib.h>
+#include "attribute.h"
#include "message.h"
#include "rc-str-list.h"
#include "xgettext.h"
savable_comment_add (buffer);
break;
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
default:
last_was_star = false;
case '\n':
if (last_non_comment_line > last_comment_line)
savable_comment_reset ();
- /* FALLTHROUGH */
+ FALLTHROUGH;
case '\r':
case '\t':
case ' ':
#include <string.h>
#include <locale.h>
+#include "attribute.h"
#include "noreturn.h"
#include "closeout.h"
#include "error.h"
break;
}
}
- /*FALLTHROUGH*/
+ FALLTHROUGH;
default:
usage (EXIT_FAILURE);
}
case 2:
domain = argv[optind++];
- /* FALLTHROUGH */
+ FALLTHROUGH;
case 1:
break;
#include <locale.h>
#include <errno.h>
+#include "attribute.h"
#include "noreturn.h"
#include "closeout.h"
#include "error.h"
break;
}
}
- /*FALLTHROUGH*/
+ FALLTHROUGH;
default:
usage (EXIT_FAILURE);
}
# also regenerates all aclocal.m4, config.h.in, Makefile.in, configure files
# with new versions of autoconf or automake.
#
-# This script requires autoconf-2.63..2.71 and automake-1.11..1.16 in the PATH.
+# This script requires autoconf-2.64..2.71 and automake-1.11..1.16 in the PATH.
# If not used from a released tarball, it also requires
# - the GNULIB_SRCDIR environment variable pointing to a gnulib checkout.
html-styled-ostream
noop-styled-ostream
term-styled-ostream
+ attribute
filename
isatty
largefile
/* Substitution of parameters in strings from terminal descriptions.
- Copyright (C) 2006, 2012 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2012, 2020 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
#include <stdio.h>
#include <string.h>
+#include "attribute.h"
#include "c-ctype.h"
#ifdef USE_SCCS_IDS
sp++;
break;
}
- /* FALLTHROUGH */
+ FALLTHROUGH;
case 'C':
if (*sp == 'C')
{
}
}
fmt = "%c";
- /* FALLTHROUGH */
+ FALLTHROUGH;
case 'a':
if (!termcap)
return OOPS;
if (fmt == NULL)
break;
sp--;
- /* FALLTHROUGH */
+ FALLTHROUGH;
case '-':
if (!termcap)
{
break;
}
fmt = "%c";
- /* FALLTHROUGH */
+ FALLTHROUGH;
case 's':
if (termcap && (fmt == NULL || *sp == '-'))
{
}
if (!termcap)
return OOPS;
- /* FALLTHROUGH */
+ FALLTHROUGH;
case '.':
if (termcap && fmt == NULL)
fmt = "%c";
- /* FALLTHROUGH */
+ FALLTHROUGH;
case 'd':
if (termcap && fmt == NULL)
fmt = "%d";
- /* FALLTHROUGH */
+ FALLTHROUGH;
case '2':
if (termcap && fmt == NULL)
fmt = "%02d";
- /* FALLTHROUGH */
+ FALLTHROUGH;
case '3':
if (termcap && fmt == NULL)
fmt = "%03d";
- /* FALLTHROUGH */
+ FALLTHROUGH;
case ':': case ' ': case '#': case 'u':
case 'x': case 'X': case 'o': case 'c':
case '0': case '1': case '4': case '5':