Changeset 3831

Show
Ignore:
Timestamp:
02/28/06 22:22:02 (3 years ago)
Author:
morris
Message:

Sync

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wired/trunk/wired/accounts.c

    r3809 r3831  
    4242 
    4343#define WD_ACCOUNT_GET_BOOL(array, count, index) \ 
    44         ((count) > (index) ? wi_string_bool_value(WI_ARRAY((array), (index))) : false) 
    45  
    46 #define WD_ACCOUNT_GET_UNSIGNED_INT(array, count, index) \ 
    47         ((count) > (index) ? wi_string_unsigned_int_value(WI_ARRAY((array), (index))) : 0) 
     44        ((count) > (index) ? wi_string_bool(WI_ARRAY((array), (index))) : false) 
     45 
     46#define WD_ACCOUNT_GET_UINT32(array, count, index) \ 
     47        ((count) > (index) ? wi_string_uint32(WI_ARRAY((array), (index))) : 0) 
    4848 
    4949 
     
    113113        account->ban_users                      = WD_ACCOUNT_GET_BOOL(array, count, 19); 
    114114        account->cannot_be_kicked       = WD_ACCOUNT_GET_BOOL(array, count, 20); 
    115         account->download_speed         = WD_ACCOUNT_GET_UNSIGNED_INT(array, count, 21); 
    116         account->upload_speed           = WD_ACCOUNT_GET_UNSIGNED_INT(array, count, 22); 
    117         account->download_limit         = WD_ACCOUNT_GET_UNSIGNED_INT(array, count, 23); 
    118         account->upload_limit           = WD_ACCOUNT_GET_UNSIGNED_INT(array, count, 24); 
     115        account->download_speed         = WD_ACCOUNT_GET_UINT32(array, count, 21); 
     116        account->upload_speed           = WD_ACCOUNT_GET_UINT32(array, count, 22); 
     117        account->download_limit         = WD_ACCOUNT_GET_UINT32(array, count, 23); 
     118        account->upload_limit           = WD_ACCOUNT_GET_UINT32(array, count, 24); 
    119119        account->set_topic                      = WD_ACCOUNT_GET_BOOL(array, count, 25); 
    120120        account->files                          = WD_ACCOUNT_GET_INSTANCE(array, count, 26); 
     
    148148        account->ban_users                      = WD_ACCOUNT_GET_BOOL(array, count, 17); 
    149149        account->cannot_be_kicked       = WD_ACCOUNT_GET_BOOL(array, count, 18); 
    150         account->download_speed         = WD_ACCOUNT_GET_UNSIGNED_INT(array, count, 19); 
    151         account->upload_speed           = WD_ACCOUNT_GET_UNSIGNED_INT(array, count, 20); 
    152         account->download_limit         = WD_ACCOUNT_GET_UNSIGNED_INT(array, count, 21); 
    153         account->upload_limit           = WD_ACCOUNT_GET_UNSIGNED_INT(array, count, 22); 
     150        account->download_speed         = WD_ACCOUNT_GET_UINT32(array, count, 19); 
     151        account->upload_speed           = WD_ACCOUNT_GET_UINT32(array, count, 20); 
     152        account->download_limit         = WD_ACCOUNT_GET_UINT32(array, count, 21); 
     153        account->upload_limit           = WD_ACCOUNT_GET_UINT32(array, count, 22); 
    154154        account->set_topic                      = WD_ACCOUNT_GET_BOOL(array, count, 23); 
    155155        account->files                          = WD_ACCOUNT_GET_INSTANCE(array, count, 25); 
  • wired/trunk/wired/commands.c

    r3809 r3831  
    396396        } 
    397397 
    398         uid = wi_string_unsigned_int_value(WI_ARRAY(arguments, 0)); 
     398        uid = wi_string_uint32(WI_ARRAY(arguments, 0)); 
    399399        peer = wd_client_with_uid(uid); 
    400400 
     
    619619        wd_cid_t                cid; 
    620620         
    621         cid = wi_string_unsigned_int_value(WI_ARRAY(arguments, 0)); 
     621        cid = wi_string_uint32(WI_ARRAY(arguments, 0)); 
    622622        chat = wd_chat_with_cid(cid); 
    623623         
     
    902902 
    903903        properpath      = wi_string_by_normalizing_path(path); 
    904         offset          = wi_string_unsigned_long_long_value(WI_ARRAY(arguments, 1)); 
     904        offset          = wi_string_uint64(WI_ARRAY(arguments, 1)); 
    905905 
    906906        wd_transfers_queue_download(properpath, offset); 
     
    971971        wd_icon_t               icon; 
    972972 
    973         icon = wi_string_unsigned_int_value(WI_ARRAY(arguments, 0)); 
     973        icon = wi_string_uint32(WI_ARRAY(arguments, 0)); 
    974974 
    975975        /* set icon if changed */ 
     
    10191019        } 
    10201020 
    1021         uid = wi_string_unsigned_int_value(WI_ARRAY(arguments, 0)); 
     1021        uid = wi_string_uint32(WI_ARRAY(arguments, 0)); 
    10221022        peer = wd_client_with_uid(uid); 
    10231023 
     
    10961096        wd_cid_t                cid; 
    10971097 
    1098         uid = wi_string_unsigned_int_value(WI_ARRAY(arguments, 0)); 
     1098        uid = wi_string_uint32(WI_ARRAY(arguments, 0)); 
    10991099        peer = wd_client_with_uid(uid); 
    11001100 
     
    11051105        } 
    11061106 
    1107         cid = wi_string_unsigned_int_value(WI_ARRAY(arguments, 1)); 
     1107        cid = wi_string_uint32(WI_ARRAY(arguments, 1)); 
    11081108        chat = wd_chat_with_cid(cid); 
    11091109 
     
    11351135        wd_cid_t                cid; 
    11361136 
    1137         cid = wi_string_unsigned_int_value(WI_ARRAY(arguments, 0)); 
     1137        cid = wi_string_uint32(WI_ARRAY(arguments, 0)); 
    11381138        chat = wd_chat_with_cid(cid); 
    11391139 
     
    11641164        } 
    11651165 
    1166         uid = wi_string_unsigned_int_value(WI_ARRAY(arguments, 0)); 
     1166        uid = wi_string_uint32(WI_ARRAY(arguments, 0)); 
    11671167        peer = wd_client_with_uid(uid); 
    11681168 
     
    12061206        wd_cid_t                cid; 
    12071207 
    1208         cid = wi_string_unsigned_int_value(WI_ARRAY(arguments, 0)); 
     1208        cid = wi_string_uint32(WI_ARRAY(arguments, 0)); 
    12091209 
    12101210        if(cid == WD_PUBLIC_CID) 
     
    12771277        unsigned int    i, count; 
    12781278 
    1279         cid = wi_string_unsigned_int_value(WI_ARRAY(arguments, 0)); 
     1279        cid = wi_string_uint32(WI_ARRAY(arguments, 0)); 
    12801280        chat = wd_chat_with_cid(cid); 
    12811281         
     
    13521352        wd_uid_t                uid; 
    13531353 
    1354         uid = wi_string_unsigned_int_value(WI_ARRAY(arguments, 0)); 
     1354        uid = wi_string_uint32(WI_ARRAY(arguments, 0)); 
    13551355        peer = wd_client_with_uid(uid); 
    13561356 
     
    15701570 
    15711571        properpath      = wi_string_by_normalizing_path(path); 
    1572         size            = wi_string_unsigned_long_long_value(WI_ARRAY(arguments, 1)); 
     1572        size            = wi_string_uint64(WI_ARRAY(arguments, 1)); 
    15731573 
    15741574        wd_transfers_queue_upload(properpath, size, WI_ARRAY(arguments, 2)); 
     
    16251625        unsigned int    i, count; 
    16261626 
    1627         cid = wi_string_unsigned_int_value(WI_ARRAY(arguments, 0)); 
     1627        cid = wi_string_uint32(WI_ARRAY(arguments, 0)); 
    16281628        chat = wd_chat_with_cid(cid); 
    16291629         
     
    17281728        wd_cid_t                cid; 
    17291729 
    1730         cid = wi_string_unsigned_int_value(WI_ARRAY(arguments, 0)); 
     1730        cid = wi_string_uint32(WI_ARRAY(arguments, 0)); 
    17311731        chat = wd_chat_with_cid(cid); 
    17321732 
     
    17861786 
    17871787        properpath      = wi_string_by_normalizing_path(path); 
    1788         type            = wi_string_unsigned_int_value(WI_ARRAY(arguments, 1)); 
     1788        type            = wi_string_uint32(WI_ARRAY(arguments, 1)); 
    17891789 
    17901790        wd_files_set_type(properpath, type); 
     
    18401840        wd_cid_t                cid; 
    18411841 
    1842         cid = wi_string_unsigned_int_value(WI_ARRAY(arguments, 0)); 
     1842        cid = wi_string_uint32(WI_ARRAY(arguments, 0)); 
    18431843        chat = wd_chat_with_cid(cid); 
    18441844 
  • wired/trunk/wired/files.c

    r3809 r3831  
    971971        wi_string_delete_surrounding_whitespace(string); 
    972972         
    973         return wi_string_unsigned_int_value(string); 
     973        return wi_string_uint32(string); 
    974974} 
    975975 
  • wired/trunk/wired/main.c

    r3830 r3831  
    132132 
    133133                        case 'i': 
    134                                 wi_log_limit = wi_string_unsigned_int_value(wi_string_with_cstring(optarg)); 
     134                                wi_log_limit = wi_string_uint32(wi_string_with_cstring(optarg)); 
    135135                                break; 
    136136