projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove `init' member from struct variable, which was essentially
[pspp]
/
src
/
data
/
variable.h
diff --git
a/src/data/variable.h
b/src/data/variable.h
index 2bc3442d251657af86f2d126f9165f07e97a8f5d..3a5015be5dedb6c2a92c98bfa75168e570c0c6fd 100644
(file)
--- a/
src/data/variable.h
+++ b/
src/data/variable.h
@@
-40,7
+40,9
@@
enum var_type
const char *var_type_adj (enum var_type);
const char *var_type_noun (enum var_type);
const char *var_type_adj (enum var_type);
const char *var_type_noun (enum var_type);
-/* Maximum variable name lengths. */
+/* Maximum lengths of short and long variable names.
+ Most operations support long variable names,
+ but some file formats are limited to short names. */
#define SHORT_NAME_LEN 8 /* Short name length. */
#define LONG_NAME_LEN 64 /* Long name length. */
#define SHORT_NAME_LEN 8 /* Short name length. */
#define LONG_NAME_LEN 64 /* Long name length. */
@@
-62,7
+64,6
@@
struct variable
/* Case information. */
int fv, nv; /* Index into `value's, number of values. */
/* Case information. */
int fv, nv; /* Index into `value's, number of values. */
- bool init; /* True if needs init and possibly reinit. */
bool reinit; /* True: reinitialize; false: leave. */
/* Data for use by containing dictionary. */
bool reinit; /* True: reinitialize; false: leave. */
/* Data for use by containing dictionary. */
@@
-87,6
+88,7
@@
struct variable
/* Variable names. */
bool var_is_valid_name (const char *, bool issue_error);
/* Variable names. */
bool var_is_valid_name (const char *, bool issue_error);
+bool var_is_plausible_name (const char *name, bool issue_error);
int compare_var_names (const void *, const void *, void *);
unsigned hash_var_name (const void *, void *);
int compare_var_names (const void *, const void *, void *);
unsigned hash_var_name (const void *, void *);