projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Memory leak fix
[pspp]
/
src
/
data
/
variable.h
diff --git
a/src/data/variable.h
b/src/data/variable.h
index 4a22d2488525a4afeeb511d597406cbb831230a5..479452411dc620471d061869f7e012cfb64d3666 100644
(file)
--- a/
src/data/variable.h
+++ b/
src/data/variable.h
@@
-40,6
+40,10
@@
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. */
+#define SHORT_NAME_LEN 8 /* Short name length. */
+#define LONG_NAME_LEN 64 /* Long name length. */
+
/* A variable's dictionary entry. */
struct variable
{
/* A variable's dictionary entry. */
struct variable
{
@@
-83,6
+87,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 *);