From 3582cf6fc7407f52af3586ac64cf3614c4fad36b Mon Sep 17 00:00:00 2001 From: Ian Darwin Date: Tue, 30 Jun 1992 13:16:07 +0000 Subject: [PATCH] Increase MAXMAGIS from 600 to 1000(!). Memory is cheap. Incorporate Zoulos' changes to "contflag" for HP-style indirection. --- src/file.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/file.h b/src/file.h index 0c49d249..970ed6de 100644 --- a/src/file.h +++ b/src/file.h @@ -27,13 +27,19 @@ */ #define HOWMANY 1024 /* how much of the file to look at */ -#define MAXMAGIS 600 /* max entries in /etc/magic */ +#define MAXMAGIS 1000 /* max entries in /etc/magic */ #define MAXDESC 50 /* max leng of text description */ #define MAXstring 32 /* max leng of "string" types */ #define ckfputs(str,fil) {if (fputs(str,fil)==EOF) error(ckfmsg,"");} struct magic { - short contflag; /* 1 if '>0' appears */ + short contflag; +#define CONT 1 /* if '>0' appears, */ +#define INDIR 2 /* if '>(...)' appears, */ + struct { + char type; /* byte short long */ + long offset; /* offset from indirection */ + } in; long offset; /* offset to magic number */ #define MASK 0200 /* this is a masked op, like & v1 = v2 */ unsigned char reln; /* relation (0=eq, '>'=gt, etc) */ -- 2.40.0