projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make the expression code a little nicer and fix bugs found
[pspp-builds.git]
/
src
/
ascii.c
diff --git
a/src/ascii.c
b/src/ascii.c
index b9222b83a29b5b294c98bda64eac519e1bb6e789..9c0103e0c5e2b044a97f200d5a2acbd1254da62a 100644
(file)
--- a/
src/ascii.c
+++ b/
src/ascii.c
@@
-18,7
+18,7
@@
02111-1307, USA. */
#include <config.h>
02111-1307, USA. */
#include <config.h>
-#include
<assert.h>
+#include
"error.h"
#include <ctype.h>
#include <errno.h>
#include <limits.h>
#include <ctype.h>
#include <errno.h>
#include <limits.h>
@@
-595,6
+595,7
@@
ascii_option (struct outp_driver *this, const char *key,
break;
default:
assert (0);
break;
default:
assert (0);
+ abort ();
}
ls_create (ascii_pool, s, value);
}
}
ls_create (ascii_pool, s, value);
}
@@
-1216,6
+1217,7
@@
output_shorts (struct outp_driver *this,
break;
default:
assert (0);
break;
default:
assert (0);
+ abort ();
}
if (!on)
{
}
if (!on)
{
@@
-1244,6
+1246,7
@@
output_shorts (struct outp_driver *this,
break;
default:
assert (0);
break;
default:
assert (0);
+ abort ();
}
else
{
}
else
{
@@
-1330,6
+1333,7
@@
return_carriage (struct outp_driver *this, int n_chars)
break;
default:
assert (0);
break;
default:
assert (0);
+ abort ();
}
}
}
}
@@
-1403,6
+1407,7
@@
output_lines (struct outp_driver *this, int first, int count)
break;
default:
assert (0);
break;
default:
assert (0);
+ abort ();
}
if (off)
output_string (this, ls_value (off), ls_end (off));
}
if (off)
output_string (this, ls_value (off), ls_end (off));
@@
-1427,6
+1432,7
@@
output_lines (struct outp_driver *this, int first, int count)
break;
default:
assert (0);
break;
default:
assert (0);
+ abort ();
}
if (on)
output_string (this, ls_value (on), ls_end (on));
}
if (on)
output_string (this, ls_value (on), ls_end (on));
@@
-1461,6
+1467,9
@@
output_lines (struct outp_driver *this, int first, int count)
ch = *ep;
n_passes = 3;
break;
ch = *ep;
n_passes = 3;
break;
+ default:
+ assert (0);
+ abort ();
}
output_char (this, 1, ch);
n_chars += ep - bp + 1;
}
output_char (this, 1, ch);
n_chars += ep - bp + 1;