projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply patch #5225, assertions.
[pspp-builds.git]
/
src
/
data
/
data-out.c
diff --git
a/src/data/data-out.c
b/src/data/data-out.c
index 53d9850db88a0da0ffb9ac3c1a76ada0d097955b..0585dc2bb24e98d4f68eeccc15c83cbc650e5fca 100644
(file)
--- a/
src/data/data-out.c
+++ b/
src/data/data-out.c
@@
-25,6
+25,7
@@
#include <stdlib.h>
#include <time.h>
#include "calendar.h"
#include <stdlib.h>
#include <time.h>
#include "calendar.h"
+#include <libpspp/assertion.h>
#include <libpspp/message.h>
#include "format.h"
#include <libpspp/magic.h>
#include <libpspp/message.h>
#include "format.h"
#include <libpspp/magic.h>
@@
-101,12
+102,10
@@
data_out (char *s, const struct fmt_spec *fp, const union value *v)
break;
case FMT_A:
break;
case FMT_A:
- assert (0);
- abort ();
+ NOT_REACHED ();
case FMT_AHEX:
case FMT_AHEX:
- assert (0);
- abort ();
+ NOT_REACHED ();
case FMT_IB:
ok = convert_IB (s, fp, number);
case FMT_IB:
ok = convert_IB (s, fp, number);
@@
-159,8
+158,7
@@
data_out (char *s, const struct fmt_spec *fp, const union value *v)
break;
default:
break;
default:
- assert (0);
- abort ();
+ NOT_REACHED ();
}
}
else
}
}
else
@@
-179,8
+177,7
@@
data_out (char *s, const struct fmt_spec *fp, const union value *v)
break;
default:
break;
default:
- assert (0);
- abort ();
+ NOT_REACHED ();
}
}
}
}
@@
-751,7
+748,7
@@
convert_date (char *dst, const struct fmt_spec *fp, double number)
}
break;
default:
}
break;
default:
-
assert (0
);
+
NOT_REACHED (
);
}
if (buf[0] == 0)
}
if (buf[0] == 0)