diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-07-15 14:40:27 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-07-15 14:40:27 -0300 |
| commit | 60b6599e8322dd93e3b33c9496ff035a1c45552f (patch) | |
| tree | eb0d9ffd85b1062aea36fa5b82e714931e718082 /lobject.h | |
| parent | c612685d4b9ecdf0525b4d4410efa9f70d4b4518 (diff) | |
| download | lua-60b6599e8322dd93e3b33c9496ff035a1c45552f.tar.gz lua-60b6599e8322dd93e3b33c9496ff035a1c45552f.tar.bz2 lua-60b6599e8322dd93e3b33c9496ff035a1c45552f.zip | |
Short strings can be external, too
That complicates a little object equality (and therefore table access
for long strings), but the old behavior was somewhat weird. (Short
strings, a concept otherwise absent from the manual, could not be
external.)
Diffstat (limited to '')
| -rw-r--r-- | lobject.h | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -418,6 +418,7 @@ typedef struct TString { | |||
| 418 | 418 | ||
| 419 | 419 | ||
| 420 | #define strisshr(ts) ((ts)->shrlen >= 0) | 420 | #define strisshr(ts) ((ts)->shrlen >= 0) |
| 421 | #define isextstr(ts) (ttislngstring(ts) && tsvalue(ts)->shrlen != LSTRREG) | ||
| 421 | 422 | ||
| 422 | 423 | ||
| 423 | /* | 424 | /* |
