X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fvariable.h;h=181d70c88931f08e90c7c7de8bfa1a8aca36566d;hb=91d578f595e4170576edad6f0e0901beb6b085d9;hp=2bc3442d251657af86f2d126f9165f07e97a8f5d;hpb=5fd22ca7771c8175ef05e91e1194c3c4096337f4;p=pspp diff --git a/src/data/variable.h b/src/data/variable.h index 2bc3442d25..181d70c889 100644 --- 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); -/* 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. */ @@ -87,6 +89,7 @@ struct variable /* 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 *);