+2001-09-16 Bruno Haible <haible@clisp.cons.org>
+
+ * x-c.c (phase4_getc): Rename local variable 'state' to
+ 'last_was_star'.
+
2001-09-11 Bruno Haible <haible@clisp.cons.org>
* Makefile.am (COMMON_SOURCES, FORMAT_SOURCES): New variables.
static size_t bufmax;
size_t buflen;
int c;
- int state;
+ bool last_was_star;
c = phase3_getc ();
if (c != '/')
case '*':
/* C comment. */
buflen = 0;
- state = 0;
+ last_was_star = false;
while (1)
{
c = phase3_getc ();
buffer[buflen] = 0;
xgettext_comment_add (buffer);
buflen = 0;
- state = 0;
+ last_was_star = false;
continue;
case '*':
- state = 1;
+ last_was_star = true;
continue;
case '/':
- if (state == 1)
+ if (last_was_star)
{
buflen -= 2;
while (buflen >= 1 && (buffer[buflen - 1] == ' '
/* FALLTHROUGH */
default:
- state = 0;
+ last_was_star = false;
continue;
}
break;
/* Return a magic newline indicator, so that we can distinguish
between the user requesting a newline in the string (e.g. using
- "\n" or "\15") from the user failing to terminate the string or
+ "\n" or "\012") from the user failing to terminate the string or
character constant. The ANSI C standard says: 3.1.3.4 Character
Constants contain ``any character except single quote, backslash or
newline; or an escape sequence'' and 3.1.4 String Literals contain