[BACK]Return to init.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/init.c between version 1.188 and 1.189

version 1.188, 2021/04/02 10:13:03 version 1.189, 2021/04/02 11:53:25
Line 321  update_type_of_array_of_unknown_size(sym
Line 321  update_type_of_array_of_unknown_size(sym
 {  {
         type_t *tp;          type_t *tp;
   
         tp = duptyp(sym->s_type);          tp = dup_type(sym->s_type);
         tp->t_dim = (int)size;          tp->t_dim = (int)size;
         tp->t_incomplete_array = false;          tp->t_incomplete_array = false;
         sym->s_type = tp;          sym->s_type = tp;
Line 385  check_init_expr(const type_t *tp, sym_t 
Line 385  check_init_expr(const type_t *tp, sym_t 
         /* Create a temporary node for the left side. */          /* Create a temporary node for the left side. */
         ln = expr_zalloc(sizeof *ln);          ln = expr_zalloc(sizeof *ln);
         ln->tn_op = NAME;          ln->tn_op = NAME;
         ln->tn_type = tduptyp(tp);          ln->tn_type = expr_dup_type(tp);
         ln->tn_type->t_const = false;          ln->tn_type->t_const = false;
         ln->tn_lvalue = true;          ln->tn_lvalue = true;
         ln->tn_sym = sym;          ln->tn_sym = sym;
Line 880  initialization_expr_using_assign(struct 
Line 880  initialization_expr_using_assign(struct 
         debug_step0("handing over to ASSIGN");          debug_step0("handing over to ASSIGN");
   
         ln = new_name_node(in->in_sym, 0);          ln = new_name_node(in->in_sym, 0);
         ln->tn_type = tduptyp(ln->tn_type);          ln->tn_type = expr_dup_type(ln->tn_type);
         ln->tn_type->t_const = false;          ln->tn_type->t_const = false;
   
         tn = build(ASSIGN, ln, rn);          tn = build(ASSIGN, ln, rn);

Legend:
Removed from v.1.188  
changed lines
  Added in v.1.189

CVSweb <webmaster@jp.NetBSD.org>