projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed the -header option from scan(1).
[mmh]
/
sbr
/
fmt_scan.c
diff --git
a/sbr/fmt_scan.c
b/sbr/fmt_scan.c
index
2609679
..
4a8da14
100644
(file)
--- a/
sbr/fmt_scan.c
+++ b/
sbr/fmt_scan.c
@@
-877,13
+877,14
@@
fmt_scan(struct format *format, char *scanl, int width, int *dat)
}
fmt++;
}
}
fmt++;
}
-#ifndef JLR
- finished:;
+finished:;
if (cp[-1] != '\n')
*cp++ = '\n';
if (cp[-1] != '\n')
*cp++ = '\n';
- *cp = 0;
+ *cp = '\0';
return ((struct format *)0);
return ((struct format *)0);
-#else /* JLR */
+
+#ifdef JLR
+ /* I'll remove this as soon as I understand what it does. --meillo */
if (cp[-1] != '\n')
*cp++ = '\n';
while (fmt->f_type != FT_DONE)
if (cp[-1] != '\n')
*cp++ = '\n';
while (fmt->f_type != FT_DONE)
@@
-892,6
+893,6
@@
fmt_scan(struct format *format, char *scanl, int width, int *dat)
finished:;
*cp = '\0';
return (fmt->f_value ? ++fmt : (struct format *) 0);
finished:;
*cp = '\0';
return (fmt->f_value ? ++fmt : (struct format *) 0);
-
#endif /* JLR */
#endif /* JLR */
+
}
}