From 6e406f837d1ae9078af746e70ae287327f9893f3 Mon Sep 17 00:00:00 2001 From: Ian Darwin Date: Sun, 23 Aug 1987 21:11:42 +0000 Subject: [PATCH] Add field vallen for length of string value (optimisation by John Gilmore). --- src/file.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/file.h b/src/file.h index d15bfd28..1c474633 100644 --- a/src/file.h +++ b/src/file.h @@ -11,8 +11,9 @@ struct magic { short contflag; /* 1 if '>0' appears */ long offset; /* offset to magic number */ - char reln; /* relation (0=.eq, '>'=gt, etc) */ - short type; /* int, short, long or string. */ + char reln; /* relation (0=eq, '>'=gt, etc) */ + char type; /* int, short, long or string. */ + char vallen; /* length of string value, if any */ #define BYTE 1 #define SHORT 2 #define LONG 4 -- 2.40.0