projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a signal handler to delete temp casefiles on SIGINT and SIGQUIT.
[pspp-builds.git]
/
src
/
tab.c
diff --git
a/src/tab.c
b/src/tab.c
index 084c5873b91f118f1f914341024ba05b49c3f917..dd901493db8765896b379cdf1d3b2e3a8a7e7fa4 100644
(file)
--- a/
src/tab.c
+++ b/
src/tab.c
@@
-38,19
+38,6
@@
\f
struct som_table_class tab_table_class;
\f
struct som_table_class tab_table_class;
-#if DEBUGGING
-#define DEFFIRST(NAME, LABEL) LABEL,
-#define DEFTAB(NAME, LABEL) LABEL,
-/*
-static const char *tab_names[] =
- {
-#include "tab.def"
- };
-*/
-#undef DEFFIRST
-#undef DEFTAB
-#endif
-
/* Creates a table with NC columns and NR rows. If REALLOCABLE is
nonzero then the table's size can be increased later; otherwise,
its size can only be reduced. */
/* Creates a table with NC columns and NR rows. If REALLOCABLE is
nonzero then the table's size can be increased later; otherwise,
its size can only be reduced. */
@@
-223,6
+210,12
@@
void
tab_headers (struct tab_table *table, int l, int r, int t, int b)
{
assert (table != NULL);
tab_headers (struct tab_table *table, int l, int r, int t, int b)
{
assert (table != NULL);
+ assert (l < table->nc);
+ assert (r < table->nc);
+ assert (t < table->nr);
+ assert (b < table->nr);
+
+
table->l = l;
table->r = r;
table->t = t;
table->l = l;
table->r = r;
table->t = t;