Displaying 2 results from an estimated 2 matches for "max_short_str".
2005 Oct 11
3
8 char labels in read.spss
...t is possible to read long labels from the CVS
files but not from the SPSS files.
I did not have much time to search for the code but I found:
in foreign_0.8-10 source file var.h.in
> /* Definition of the max length of a short string value, generally
> eight characters. */
> #define MAX_SHORT_STRING ((SIZEOF_DOUBLE)>=8 ? ((SIZEOF_DOUBLE)+1)/2*2
> : 8)
> #define MIN_LONG_STRING (MAX_SHORT_STRING+1)
>
> /* FYI: It is a bad situation if sizeof(R_flt64) < MAX_SHORT_STRING:
> then short string missing values can be truncated in system files
> because there's on...
2008 Jul 02
2
spss long labels
...nly if successful. */
int
sfm_read_case (struct file_handle * h, union value * perm, struct dictionary * dict)
{
Index: src/var.h.in
===================================================================
--- src/var.h.in (revision 5168)
+++ src/var.h.in (working copy)
@@ -41,6 +41,10 @@
#error MAX_SHORT_STRING must be less than 8.
#endif
+/* VAR_NAME_LEN: the length of a variable.
+ * SPSS supports names of 64 long
+ */
+#define VAR_NAME_LEN 64
/* Special values. */
#define SYSMIS (-DBL_MAX)
#define LOWEST second_lowest_double_val()
@@ -228,7 +232,7 @@
/* MODIFY VARS private data. */
stru...