1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 13:09:22 +00:00

Make the code C++17 compliant.

* lib/getline.cc (getstr): Don't use the 'register' keyword.
This commit is contained in:
Bruno Haible
2020-08-30 12:36:15 +02:00
parent 313d1a6770
commit a63b830554
2 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2020-08-30 Bruno Haible <bruno@clisp.org>
Make the code C++17 compliant.
* lib/getline.cc (getstr): Don't use the 'register' keyword.
2020-08-29 Bruno Haible <bruno@clisp.org> 2020-08-29 Bruno Haible <bruno@clisp.org>
Fix link error on native Windows with MSVC/clang. Fix link error on native Windows with MSVC/clang.

View File

@@ -1,6 +1,6 @@
/* getline.c -- Replacement for GNU C library function getline /* getline.c -- Replacement for GNU C library function getline
Copyright (C) 1993, 1996, 2001-2003 Free Software Foundation, Inc. Copyright (C) 1993, 1996, 2001-2003, 2020 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@@ -55,7 +55,7 @@ getstr (char **lineptr, size_t *n, FILE *stream, char terminator, size_t offset)
for (;;) for (;;)
{ {
register int c = getc (stream); int c = getc (stream);
/* We always want at least one char left in the buffer, since we /* We always want at least one char left in the buffer, since we
always (unless we get an error while reading the first char) always (unless we get an error while reading the first char)