Changeset 1ef0fc3 in mainline for uspace/app/sbi/src/tdata.c
- Timestamp:
- 2010-04-10T11:19:18Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d7e45c8
- Parents:
- 2721a75 (diff), 074444f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sbi/src/tdata.c
r2721a75 r1ef0fc3 31 31 #include <stdlib.h> 32 32 #include <assert.h> 33 #include "list.h" 33 34 #include "mytypes.h" 34 35 #include "stree.h" … … 40 41 static void tdata_tobject_print(tdata_object_t *tobject); 41 42 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;147 144 case tic_tfun: 148 145 tdata_tfun_print(titem->u.tfun); … … 157 154 { 158 155 switch (tprimitive->tpc) { 156 case tpc_bool: printf("bool"); break; 157 case tpc_char: printf("char"); break; 159 158 case tpc_int: printf("int"); break; 160 159 case tpc_nil: printf("nil"); break; … … 167 166 { 168 167 stree_symbol_t *csi_sym; 168 list_node_t *arg_n; 169 tdata_item_t *arg; 169 170 170 171 csi_sym = csi_to_symbol(tobject->csi); 171 172 assert(csi_sym != NULL); 172 173 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 } 173 182 } 174 183 … … 185 194 } 186 195 187 static void tdata_tgeneric_print(tdata_generic_t *tgeneric)188 {189 (void) tgeneric;190 printf("unimplemented(generic)");191 }192 193 196 static void tdata_tfun_print(tdata_fun_t *tfun) 194 197 {
Note:
See TracChangeset
for help on using the changeset viewer.