aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorSami Wagiaalla <swagiaal@redhat.com>2010-11-04 20:26:23 +0000
committerSami Wagiaalla <swagiaal@redhat.com>2010-11-04 20:26:23 +0000
commit6403aeeaa1ebe388c0fc518f02569f9323a79981 (patch)
treeac904232227856af2b0f41d4666fac6701e05816 /etc
parent23fa7f66ac5f3ae5ea7c44bf45771e1b666c5ef3 (diff)
downloadgdb-6403aeeaa1ebe388c0fc518f02569f9323a79981.zip
gdb-6403aeeaa1ebe388c0fc518f02569f9323a79981.tar.gz
gdb-6403aeeaa1ebe388c0fc518f02569f9323a79981.tar.bz2
Create and use struct rank.
2010-11-04 Sami Wagiaalla <swagiaal@redhat.com> * gdbtypes.h: Create struct rank. Convert all 'BADNESS' macros to const struct rank declarations. (sum_ranks): New function. (compare_ranks): New function. * valops.c (find_oload_champ): Updated. (classify_oload_match): Use compare_ranks. Improved comments. (compare_parameters): Use compare_ranks. * gdbtypes.c: Initialize 'BADNESS' constants. (sum_ranks): New function. (compare_ranks): New function. (compare_badness): Use compare_ranks. (rank_function): Use global constants instead of literals. (rank_one_type): Ditto. Return struct rank. Use sum_ranks.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions