[BACK]Return to decl.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / usr.bin / xlint / lint1

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/usr.bin/xlint/lint1/decl.c between version 1.112 and 1.113

version 1.112, 2021/01/09 13:12:13 version 1.113, 2021/01/09 14:10:15
Line 942  getbound(type_t *tp)
Line 942  getbound(type_t *tp)
         } else if (t == FUNC) {          } else if (t == FUNC) {
                 /* compiler takes alignment of function */                  /* compiler takes alignment of function */
                 error(14);                  error(14);
                 a = WORST_ALIGN(1) * CHAR_BIT;                  a = WORST_ALIGN(1) * CHAR_SIZE;
         } else {          } else {
                 if ((a = size(t)) == 0) {                  if ((a = size(t)) == 0) {
                         a = CHAR_BIT;                          a = CHAR_SIZE;
                 } else if (a > WORST_ALIGN(1) * CHAR_BIT) {                  } else if (a > WORST_ALIGN(1) * CHAR_SIZE) {
                         a = WORST_ALIGN(1) * CHAR_BIT;                          a = WORST_ALIGN(1) * CHAR_SIZE;
                 }                  }
         }          }
         lint_assert(a >= CHAR_BIT);          lint_assert(a >= CHAR_SIZE);
         lint_assert(a <= WORST_ALIGN(1) * CHAR_BIT);          lint_assert(a <= WORST_ALIGN(1) * CHAR_SIZE);
         return a;          return a;
 }  }
   
Line 1659  mktag(sym_t *tag, tspec_t kind, int decl
Line 1659  mktag(sym_t *tag, tspec_t kind, int decl
                 tp->t_tspec = kind;                  tp->t_tspec = kind;
                 if (kind != ENUM) {                  if (kind != ENUM) {
                         tp->t_str = getblk(sizeof (str_t));                          tp->t_str = getblk(sizeof (str_t));
                         tp->t_str->align = CHAR_BIT;                          tp->t_str->align = CHAR_SIZE;
                         tp->t_str->stag = tag;                          tp->t_str->stag = tag;
                 } else {                  } else {
                         tp->t_isenum = 1;                          tp->t_isenum = 1;

Legend:
Removed from v.1.112  
changed lines
  Added in v.1.113

CVSweb <webmaster@jp.NetBSD.org>