/* GNU m4 -- A simple macro processor
- Copyright (C) 1989-1994, 2006-2007, 2009-2014, 2016 Free Software
- Foundation, Inc.
+ Copyright (C) 1989-1994, 2006-2007, 2009-2014, 2016-2017, 2020-2021
+ Free Software Foundation, Inc.
This file is part of GNU M4.
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
/* This file contains the functions, that performs the basic argument
{
t = next_token (&td, NULL);
}
- while (t == TOKEN_SIMPLE && isspace (to_uchar (*TOKEN_DATA_TEXT (&td))));
+ while (t == TOKEN_SIMPLE && c_isspace (*TOKEN_DATA_TEXT (&td)));
paren_level = 0;
}
return t == TOKEN_COMMA;
}
- /* fallthru */
+ FALLTHROUGH;
case TOKEN_OPEN:
case TOKEN_SIMPLE:
text = TOKEN_DATA_TEXT (&td);
case TOKEN_EOF:
/* current_file changed to "" if we see TOKEN_EOF, use the
previous value we stored earlier. */
- M4ERROR_AT_LINE ((EXIT_FAILURE, 0, file, line,
- "ERROR: end of file in argument list"));
- break;
+ m4_failure_at_line (0, file, line,
+ _("ERROR: end of file in argument list"));
case TOKEN_WORD:
case TOKEN_STRING:
SYMBOL_PENDING_EXPANSIONS (sym)++;
expansion_level++;
if (nesting_limit > 0 && expansion_level > nesting_limit)
- M4ERROR ((EXIT_FAILURE, 0,
- "recursion limit of %d exceeded, use -L<N> to change it",
- nesting_limit));
+ m4_failure (0, _("recursion limit of %d exceeded, use -L<N> to change it"),
+ nesting_limit);
macro_call_id++;
my_call_id = macro_call_id;
argc = ((obstack_object_size (&argv_stack) - argv_base)
/ sizeof (token_data *));
- argv = (token_data **) ((char *) obstack_base (&argv_stack) + argv_base);
+ argv = (token_data **) ((uintptr_t) obstack_base (&argv_stack) + argv_base);
loc_close_file = current_file;
loc_close_line = current_line;