Changeset 4766

Show
Ignore:
Timestamp:
05/14/07 01:11:38 (1 year ago)
Author:
morris
Message:

Renames

Files:

Legend:

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

    r4763 r4766  
    11551155                                          name,         WD_FILES_COMMENT_FIELD_SEPARATOR, 
    11561156                                          comment,      WD_FILES_COMMENT_SEPARATOR); 
     1157                 
     1158                comments++; 
    11571159        } 
    11581160         
     
    11671169        } 
    11681170         
    1169         if(comments > 1 || (comment && wi_string_length(comment) > 0)) { 
     1171        if(comments > 1) { 
    11701172                wi_file_truncate(file, 0); 
    11711173                wi_file_seek(tmpfile, 0); 
     
    12541256        wi_string_resolve_aliases_in_path(realpath); 
    12551257         
    1256         dirpath = wi_autorelease(wi_copy(path)); 
    1257         wi_string_delete_last_path_component(dirpath); 
    1258  
     1258        dirpath = wi_string_by_deleting_last_path_component(path); 
    12591259        array = wi_string_path_components(dirpath); 
    12601260        count = wi_array_count(array); 
  • wired/trunk/wired/users.c

    r4763 r4766  
    5252        WI_STMT_END 
    5353 
    54 #define WD_USER_SET_OBJECT(user, dst, src)                            \ 
     54#define WD_USER_SET_INSTANCE(user, dst, src)                  \ 
    5555        WI_STMT_START                                                                           \ 
    5656                wi_recursive_lock_lock((user)->user_lock);              \ 
     
    7272        WI_STMT_END 
    7373 
    74 #define WD_USER_RETURN_OBJECT(user, src)                              \ 
     74#define WD_USER_RETURN_INSTANCE(user, src)                            \ 
    7575        WI_STMT_START                                                                           \ 
    76                 typeof(src)             _object;                                              \ 
     76                typeof(src)             _instance;                                            \ 
    7777                                                                                                                \ 
    7878                wi_recursive_lock_lock((user)->user_lock);              \ 
    79                 _object = wi_autorelease(wi_retain((src)));           \ 
     79                _instance = wi_autorelease(wi_retain((src)));
    8080                wi_recursive_lock_unlock((user)->user_lock);    \ 
    8181                                                                                                                \ 
    82                 return _object;                                                                       \ 
     82                return _instance;                                                             \ 
    8383        WI_STMT_END 
    8484 
     
    439439 
    440440void wd_user_set_account(wd_user_t *user, wd_account_t *account) { 
    441         WD_USER_SET_OBJECT(user, user->account, account); 
     441        WD_USER_SET_INSTANCE(user, user->account, account); 
    442442} 
    443443 
     
    445445 
    446446wd_account_t * wd_user_account(wd_user_t *user) { 
    447         WD_USER_RETURN_OBJECT(user, user->account); 
     447        WD_USER_RETURN_INSTANCE(user, user->account); 
    448448} 
    449449 
     
    451451 
    452452void wd_user_set_nick(wd_user_t *user, wi_string_t *nick) { 
    453         WD_USER_SET_OBJECT(user, user->nick, nick); 
     453        WD_USER_SET_INSTANCE(user, user->nick, nick); 
    454454} 
    455455 
     
    457457 
    458458wi_string_t * wd_user_nick(wd_user_t *user) { 
    459         WD_USER_RETURN_OBJECT(user, user->nick); 
     459        WD_USER_RETURN_INSTANCE(user, user->nick); 
    460460} 
    461461 
     
    463463 
    464464void wd_user_set_login(wd_user_t *user, wi_string_t *login) { 
    465         WD_USER_SET_OBJECT(user, user->login, login); 
     465        WD_USER_SET_INSTANCE(user, user->login, login); 
    466466} 
    467467 
     
    469469 
    470470wi_string_t * wd_user_login(wd_user_t *user) { 
    471         WD_USER_RETURN_OBJECT(user, user->login); 
     471        WD_USER_RETURN_INSTANCE(user, user->login); 
    472472} 
    473473 
     
    475475 
    476476void wd_user_set_version(wd_user_t *user, wi_string_t *version) { 
    477         WD_USER_SET_OBJECT(user, user->version, version); 
     477        WD_USER_SET_INSTANCE(user, user->version, version); 
    478478} 
    479479 
     
    481481 
    482482wi_string_t * wd_user_version(wd_user_t *user) { 
    483         WD_USER_RETURN_OBJECT(user, user->version); 
     483        WD_USER_RETURN_INSTANCE(user, user->version); 
    484484} 
    485485 
     
    487487 
    488488void wd_user_set_status(wd_user_t *user, wi_string_t *status) { 
    489         WD_USER_SET_OBJECT(user, user->status, status); 
     489        WD_USER_SET_INSTANCE(user, user->status, status); 
    490490} 
    491491 
     
    493493 
    494494wi_string_t * wd_user_status(wd_user_t *user) { 
    495         WD_USER_RETURN_OBJECT(user, user->status); 
     495        WD_USER_RETURN_INSTANCE(user, user->status); 
    496496} 
    497497 
     
    499499 
    500500void wd_user_set_image(wd_user_t *user, wi_string_t *image) { 
    501         WD_USER_SET_OBJECT(user, user->image, image); 
     501        WD_USER_SET_INSTANCE(user, user->image, image); 
    502502} 
    503503 
    504504 
    505505wi_string_t * wd_user_image(wd_user_t *user) { 
    506         WD_USER_RETURN_OBJECT(user, user->image); 
     506        WD_USER_RETURN_INSTANCE(user, user->image); 
    507507} 
    508508 
  • wired/trunk/wired/users.h

    r4754 r4766  
    3838 
    3939 
    40 enum wd_user_state { 
    41         WD_USER_CONNECTED                               = 0, 
     40enum _wd_user_state { 
     41        WD_USER_CONNECTED                                      = 0, 
    4242        WD_USER_SAID_HELLO, 
    4343        WD_USER_GAVE_USER, 
     
    4545        WD_USER_DISCONNECTED 
    4646}; 
    47 typedef enum wd_user_state                            wd_user_state_t; 
     47typedef enum _wd_user_state                           wd_user_state_t; 
    4848 
    4949