Changes in uspace/app/sbi/src/tdata.c [074444f:23de644] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sbi/src/tdata.c
r074444f r23de644 31 31 #include <stdlib.h> 32 32 #include <assert.h> 33 #include "list.h"34 33 #include "mytypes.h" 35 34 #include "stree.h" … … 41 40 static void tdata_tobject_print(tdata_object_t *tobject); 42 41 static void tdata_tarray_print(tdata_array_t *tarray); 42 static void tdata_tgeneric_print(tdata_generic_t *tgeneric); 43 43 static void tdata_tfun_print(tdata_fun_t *tfun); 44 44 … … 142 142 tdata_tarray_print(titem->u.tarray); 143 143 break; 144 case tic_tgeneric: 145 tdata_tgeneric_print(titem->u.tgeneric); 146 break; 144 147 case tic_tfun: 145 148 tdata_tfun_print(titem->u.tfun); … … 154 157 { 155 158 switch (tprimitive->tpc) { 156 case tpc_bool: printf("bool"); break;157 case tpc_char: printf("char"); break;158 159 case tpc_int: printf("int"); break; 159 160 case tpc_nil: printf("nil"); break; … … 166 167 { 167 168 stree_symbol_t *csi_sym; 168 list_node_t *arg_n;169 tdata_item_t *arg;170 169 171 170 csi_sym = csi_to_symbol(tobject->csi); 172 171 assert(csi_sym != NULL); 173 172 symbol_print_fqn(csi_sym); 174 175 arg_n = list_first(&tobject->targs);176 while (arg_n != NULL) {177 arg = list_node_data(arg_n, tdata_item_t *);178 putchar('/');179 tdata_item_print(arg);180 arg_n = list_next(&tobject->targs, arg_n);181 }182 173 } 183 174 … … 194 185 } 195 186 187 static void tdata_tgeneric_print(tdata_generic_t *tgeneric) 188 { 189 (void) tgeneric; 190 printf("unimplemented(generic)"); 191 } 192 196 193 static void tdata_tfun_print(tdata_fun_t *tfun) 197 194 {
Note:
See TracChangeset
for help on using the changeset viewer.