projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a --enable-debug option to configure and
[pspp]
/
src
/
data-out.c
diff --git
a/src/data-out.c
b/src/data-out.c
index 24428c6ac69c241a3fcb936f34614ff1045c1518..14c0f94b39bd514dfe2e6cf24e66a5bdfcd1c882 100644
(file)
--- a/
src/data-out.c
+++ b/
src/data-out.c
@@
-35,8
+35,6
@@
#include "str.h"
#include "var.h"
#include "str.h"
#include "var.h"
-#undef DEBUGGING
-/*#define DEBUGGING 1*/
#include "debug-print.h"
/* In older versions, numbers got their trailing zeros stripped.
#include "debug-print.h"
/* In older versions, numbers got their trailing zeros stripped.
@@
-467,8
+465,9
@@
convert_IB (char *dst, const struct fmt_spec *fp, const union value *v)
}
}
memcpy (dst, temp, fp->w);
}
}
memcpy (dst, temp, fp->w);
- if (endian == LITTLE)
- mm_reverse (dst, fp->w);
+#ifndef WORDS_BIGENDIAN
+ mm_reverse (dst, fp->w);
+#endif
return 1;
}
return 1;
}
@@
-530,8
+529,9
@@
convert_PIB (char *dst, const struct fmt_spec *fp, const union value *v)
frac *= 256.0;
((unsigned char *) dst)[i] = floor (frac);
}
frac *= 256.0;
((unsigned char *) dst)[i] = floor (frac);
}
- if (endian == LITTLE)
- mm_reverse (dst, fp->w);
+#ifndef WORDS_BIGENDIAN
+ mm_reverse (dst, fp->w);
+#endif
return 1;
}
return 1;
}
@@
-749,10
+749,6
@@
convert_date (char *dst, const struct fmt_spec *fp, const union value *v)
}
}
break;
}
}
break;
-#if __CHECKER__
- case 42000:
- assert (0);
-#endif
default:
assert (0);
}
default:
assert (0);
}