projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use MAX_SHORT_STRING in place of MIN_LONG_STRING.
[pspp-builds.git]
/
src
/
data
/
value.h
diff --git
a/src/data/value.h
b/src/data/value.h
index 8f1746337ea37ceaefa3523fa73ff0c2666b63f8..90f8575356a24a873a0dbf4f9df41d60d8fca1ce 100644
(file)
--- a/
src/data/value.h
+++ b/
src/data/value.h
@@
-24,7
+24,6
@@
#include "xalloc.h"
\f
#define MAX_SHORT_STRING 8
#include "xalloc.h"
\f
#define MAX_SHORT_STRING 8
-#define MIN_LONG_STRING (MAX_SHORT_STRING + 1)
/* A numeric or string value.
/* A numeric or string value.
@@
-148,7
+147,7
@@
static inline const char *
value_str (const union value *v, int width)
{
assert (width > 0);
value_str (const union value *v, int width)
{
assert (width > 0);
- return (width >
= MIN_LONG
_STRING ? v->long_string : v->short_string);
+ return (width >
MAX_SHORT
_STRING ? v->long_string : v->short_string);
}
/* Returns the string value in V, which must have width WIDTH.
}
/* Returns the string value in V, which must have width WIDTH.
@@
-162,7
+161,7
@@
static inline char *
value_str_rw (union value *v, int width)
{
assert (width > 0);
value_str_rw (union value *v, int width)
{
assert (width > 0);
- return (width >
= MIN_LONG
_STRING ? v->long_string : v->short_string);
+ return (width >
MAX_SHORT
_STRING ? v->long_string : v->short_string);
}
/* Copies SRC to DST, given that they both contain data of the
}
/* Copies SRC to DST, given that they both contain data of the