projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
check for to long lines and ioerror in spost
[mmh]
/
uip
/
fmtdump.c
diff --git
a/uip/fmtdump.c
b/uip/fmtdump.c
index
c9b28cf
..
a91333b
100644
(file)
--- a/
uip/fmtdump.c
+++ b/
uip/fmtdump.c
@@
-89,10
+89,8
@@
main(int argc, char **argv)
form = cp;
}
form = cp;
}
- /*
- ** Get new format string. Must be before chdir().
- */
- fmtstr = new_fs(form, FORMAT);
+ /* Set format string. Must be before chdir(). */
+ fmtstr = new_fs(form, scanformat);
fmt_compile(fmtstr, &fmt);
fmt_dump(fmt);
fmt_compile(fmtstr, &fmt);
fmt_dump(fmt);
@@
-103,7
+101,7
@@
static void
fmt_dump(struct format *fmth)
{
int i;
fmt_dump(struct format *fmth)
{
int i;
- register struct format *fmt, *addr;
+ struct format *fmt, *addr;
/* Assign labels */
for (fmt = fmth; fmt; ++fmt) {
/* Assign labels */
for (fmt = fmth; fmt; ++fmt) {
@@
-131,7
+129,7
@@
fmt_dump(struct format *fmth)
static void
dumpone(struct format *fmt)
{
static void
dumpone(struct format *fmt)
{
- register int i;
+ int i;
if ((i = findlabel(fmt)) >= 0)
printf("L%d:", i);
if ((i = findlabel(fmt)) >= 0)
printf("L%d:", i);
@@
-312,7
+310,7
@@
dumpone(struct format *fmt)
static int
findlabel(struct format *addr)
{
static int
findlabel(struct format *addr)
{
- register int i;
+ int i;
for (i = 0; i < lused; ++i)
if (addr == lvec[i])
for (i = 0; i < lused; ++i)
if (addr == lvec[i])
@@
-436,7
+434,7
@@
f_typestr(int t)
static char *
c_typestr(int t)
{
static char *
c_typestr(int t)
{
- register int i;
+ int i;
static char buf[64];
buf[0] = '\0';
static char buf[64];
buf[0] = '\0';
@@
-453,7
+451,7
@@
c_typestr(int t)
static char *
c_flagsstr(int t)
{
static char *
c_flagsstr(int t)
{
- register int i;
+ int i;
static char buf[64];
buf[0] = '\0';
static char buf[64];
buf[0] = '\0';