]> granicus.if.org Git - file/commitdiff
Increase MAXMAGIS from 600 to 1000(!). Memory is cheap.
authorIan Darwin <ian@darwinsys.com>
Tue, 30 Jun 1992 13:16:07 +0000 (13:16 +0000)
committerIan Darwin <ian@darwinsys.com>
Tue, 30 Jun 1992 13:16:07 +0000 (13:16 +0000)
Incorporate Zoulos' changes to "contflag" for HP-style indirection.

src/file.h

index 0c49d2499d9e29f6305e2988b6f86c4c71a101bd..970ed6de96b56977215dcfa3073bb1c0c3fc3fde 100644 (file)
  */
 
 #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) */