Changes in uspace/app/sbi/src/rdata.c [074444f:38aaacc2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sbi/src/rdata.c
r074444f r38aaacc2 529 529 static void rdata_deleg_copy(rdata_deleg_t *src, rdata_deleg_t **dest) 530 530 { 531 (void) src; (void) dest;532 printf("Unimplemented: Copy delegate.\n");533 exit(1);531 *dest = rdata_deleg_new(); 532 (*dest)->obj = src->obj; 533 (*dest)->sym = src->sym; 534 534 } 535 535 … … 711 711 break; 712 712 case vc_ref: 713 printf("ref("); 714 rdata_var_print(var->u.ref_v->vref); 715 printf(")"); 713 if (var->u.ref_v->vref != NULL) { 714 printf("ref("); 715 rdata_var_print(var->u.ref_v->vref); 716 printf(")"); 717 } else { 718 printf("nil"); 719 } 716 720 break; 717 721 case vc_deleg: 718 722 printf("deleg("); 719 if (var->u.deleg_v->obj != NULL) { 720 rdata_var_print(var->u.deleg_v->obj); 721 printf(","); 723 if (var->u.deleg_v->sym != NULL) { 724 if (var->u.deleg_v->obj != NULL) { 725 rdata_var_print(var->u.deleg_v->obj); 726 printf(","); 727 } 728 symbol_print_fqn(var->u.deleg_v->sym); 729 } else { 730 printf("nil"); 722 731 } 723 symbol_print_fqn(var->u.deleg_v->sym);724 732 printf(")"); 725 733 break;
Note:
See TracChangeset
for help on using the changeset viewer.