Changeset 1ef0fc3 in mainline for uspace/app/sbi/src/tdata.c


Ignore:
Timestamp:
2010-04-10T11:19:18Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
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.
Message:

Merge from lp:~jsvoboda/helenos/sysel.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/sbi/src/tdata.c

    r2721a75 r1ef0fc3  
    3131#include <stdlib.h>
    3232#include <assert.h>
     33#include "list.h"
    3334#include "mytypes.h"
    3435#include "stree.h"
     
    4041static void tdata_tobject_print(tdata_object_t *tobject);
    4142static void tdata_tarray_print(tdata_array_t *tarray);
    42 static void tdata_tgeneric_print(tdata_generic_t *tgeneric);
    4343static void tdata_tfun_print(tdata_fun_t *tfun);
    4444
     
    142142                tdata_tarray_print(titem->u.tarray);
    143143                break;
    144         case tic_tgeneric:
    145                 tdata_tgeneric_print(titem->u.tgeneric);
    146                 break;
    147144        case tic_tfun:
    148145                tdata_tfun_print(titem->u.tfun);
     
    157154{
    158155        switch (tprimitive->tpc) {
     156        case tpc_bool: printf("bool"); break;
     157        case tpc_char: printf("char"); break;
    159158        case tpc_int: printf("int"); break;
    160159        case tpc_nil: printf("nil"); break;
     
    167166{
    168167        stree_symbol_t *csi_sym;
     168        list_node_t *arg_n;
     169        tdata_item_t *arg;
    169170
    170171        csi_sym = csi_to_symbol(tobject->csi);
    171172        assert(csi_sym != NULL);
    172173        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        }
    173182}
    174183
     
    185194}
    186195
    187 static void tdata_tgeneric_print(tdata_generic_t *tgeneric)
    188 {
    189         (void) tgeneric;
    190         printf("unimplemented(generic)");
    191 }
    192 
    193196static void tdata_tfun_print(tdata_fun_t *tfun)
    194197{
Note: See TracChangeset for help on using the changeset viewer.