BSD 4 release
[unix-history] / usr / src / cmd / sdb / cdefs.h
index e8c946d..7c073b5 100644 (file)
@@ -1,3 +1,4 @@
+/* "@(#)cdefs.h 4.1 10/9/80" */
 /* type modifiers */
 
 # define PTR  020
 /* type modifiers */
 
 # define PTR  020
@@ -24,7 +25,7 @@
 # define ISFTN(x)  ((x&TMASK)==FTN)  /* is x a function type */
 # define ISARY(x)   ((x&TMASK)==ARY)   /* is x an array type */
 # define INCREF(x) (((x&~BTMASK)<<TSHIFT)|PTR|(x&BTMASK))
 # define ISFTN(x)  ((x&TMASK)==FTN)  /* is x a function type */
 # define ISARY(x)   ((x&TMASK)==ARY)   /* is x an array type */
 # define INCREF(x) (((x&~BTMASK)<<TSHIFT)|PTR|(x&BTMASK))
-# define DECREF(x) (((x>>TSHIFT)&~BTMASK)|(x&BTMASK))
+# define DECREF(x) (((x>>TSHIFT)&~BTMASK&0x3fff)|(x&BTMASK))
        /* pack and unpack field descriptors (size and offset) */
 # define PKFIELD(s,o) ((o<<6)|s)
 # define UPKFSZ(v)  (v&077)
        /* pack and unpack field descriptors (size and offset) */
 # define PKFIELD(s,o) ((o<<6)|s)
 # define UPKFSZ(v)  (v&077)