line = 0;
do
{
- printf_output (line_prefix);
+ printf_output ("%s", line_prefix);
cp = D_RELNUM (ptr, realfile, line);
length = D_RELLEN (ptr, realfile, line);
write_output (cp, length);
int leading_dot, start, num;
{
write_output (".\n", 2);
- if (leading_dot)
+ if (leading_dot) {
if (num == 1)
printf_output ("%ds/^\\.//\n", start);
else
printf_output ("%d,%ds/^\\.//\n", start, start + num - 1);
+ }
}
/*
do
{
c = getc (infile);
- if (c == EOF)
+ if (c == EOF) {
if (ferror (infile))
diff3_perror_with_exit ("input file");
else if (feof (infile))
diff3_fatal ("input file shrank");
+ }
cc = c;
write_output (&cc, 1);
}
linesread += i;
while (0 <= --i)
while ((c = getc (infile)) != '\n')
- if (c == EOF)
+ if (c == EOF) {
if (ferror (infile))
diff3_perror_with_exit ("input file");
else if (feof (infile))
diff3_fatal ("input file shrank");
return conflicts_found;
}
+ }
}
/* Copy rest of common file. */
while ((c = getc (infile)) != EOF || !(ferror (infile) | feof (infile)))
break;
case '\b':
- if (in_position != 0 && --in_position < out_bound)
+ if (in_position != 0 && --in_position < out_bound) {
if (out_position <= in_position)
/* Add spaces to make up for suppressed tab past out_bound. */
for (; out_position < in_position; out_position++)
cc = c;
write_output (&cc, 1);
}
+ }
break;
case '\f':
error. */
int
-getstr (lineptr, n, stream, terminator, offset, limit)
- char **lineptr;
- size_t *n;
- FILE *stream;
- char terminator;
- int offset;
- int limit;
+getstr (char **lineptr, size_t *n, FILE *stream, char terminator, int offset,
+ int limit)
{
int nchars_avail; /* Allocated but unused chars in *LINEPTR. */
char *read_pos; /* Where we're reading into *LINEPTR. */
}
int
-get_line (lineptr, n, stream)
- char **lineptr;
- size_t *n;
- FILE *stream;
+get_line (char **lineptr, size_t *n, FILE *stream)
{
return getstr (lineptr, n, stream, '\n', 0, GETLINE_NO_LIMIT);
}
int
-getline_safe (lineptr, n, stream, limit)
- char **lineptr;
- size_t *n;
- FILE *stream;
- int limit;
+getline_safe (char **lineptr, size_t *n, FILE *stream, int limit)
{
return getstr (lineptr, n, stream, '\n', 0, limit);
}
case ')':
if (syntax & RE_NO_BK_PARENS) goto normal_backslash;
- if (COMPILE_STACK_EMPTY)
+ if (COMPILE_STACK_EMPTY) {
if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD)
goto normal_backslash;
else
FREE_STACK_RETURN (REG_ERPAREN);
+ }
handle_close:
if (fixup_alt_jump)
}
/* See similar code for backslashed left paren above. */
- if (COMPILE_STACK_EMPTY)
+ if (COMPILE_STACK_EMPTY) {
if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD)
goto normal_char;
else
FREE_STACK_RETURN (REG_ERPAREN);
+ }
/* Since we just checked for an empty stack above, this
``can't happen''. */
if (delta->other_delta == NULL)
delta->other_delta = getlist();
- if (n = findnode (delta->other_delta, "commitid"))
+ if ((n = findnode (delta->other_delta, "commitid")))
{
error (0, 0, "%s: revision %s already has commitid %s",
rcs->path, rev, n->data);
/* This probably should be "assert (list != NULL)" (or if not we
should document the current behavior), but only if we check all
the callers to see if any are relying on this behavior. */
- if ((list == (List *) NULL))
+ if (list == (List *) NULL)
return ((Node *) NULL);
assert (key != NULL);