#include <stdlib.h>
#include <time.h>
#include "calendar.h"
+#include <libpspp/assertion.h>
#include <libpspp/message.h>
#include "format.h"
#include <libpspp/magic.h>
break;
case FMT_A:
- assert (0);
- abort ();
+ NOT_REACHED ();
case FMT_AHEX:
- assert (0);
- abort ();
+ NOT_REACHED ();
case FMT_IB:
ok = convert_IB (s, fp, number);
break;
default:
- assert (0);
- abort ();
+ NOT_REACHED ();
}
}
else
break;
default:
- assert (0);
- abort ();
+ NOT_REACHED ();
}
}
static int
convert_A (char *dst, const struct fmt_spec *fp, const char *string)
{
- copy_demangle(dst, fp->w, string, fp->w);
+ memcpy(dst, string, fp->w);
return 1;
}
}
break;
default:
- assert (0);
+ NOT_REACHED ();
}
if (buf[0] == 0)