Changeset 385

Show
Ignore:
Timestamp:
09/01/06 18:55:12 (2 years ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/cherokee/access.c

    r384 r385  
    160160         */ 
    161161        list_for_each_safe (i, tmp, LIST(&entry->list_ips)) { 
    162                 list_del (i); 
     162                cherokee_list_del (i); 
    163163                free (i); 
    164164        } 
     
    167167         */ 
    168168        list_for_each_safe (i, tmp, LIST(&entry->list_subnets)) { 
    169                 list_del (i); 
     169                cherokee_list_del (i); 
    170170                free (i); 
    171171        } 
     
    318318        } 
    319319 
    320         list_add (LIST(n), &entry->list_ips); 
     320        cherokee_list_add (LIST(n), &entry->list_ips); 
    321321 
    322322        return ret; 
     
    363363        if (n == NULL) return ret_error; 
    364364 
    365         list_add (LIST(n), &entry->list_subnets); 
     365        cherokee_list_add (LIST(n), &entry->list_subnets); 
    366366 
    367367        /* Parse the IP 
  • cherokee/trunk/cherokee/admin_client.c

    r384 r385  
    439439                } 
    440440 
    441                 list_add (LIST(conn_info), conns_list); 
     441                cherokee_list_add (LIST(conn_info), conns_list); 
    442442                cherokee_buffer_clean (&info_str); 
    443443        } 
  • cherokee/trunk/cherokee/config_node.c

    r384 r385  
    112112        cherokee_buffer_add_buffer (&n->key, key);          
    113113 
    114         list_add_tail (LIST(n), &entry->child); 
     114        cherokee_list_add_tail (LIST(n), &entry->child); 
    115115        return n; 
    116116} 
  • cherokee/trunk/cherokee/connection_info.c

    r384 r385  
    252252 
    253253                cherokee_connection_info_fill_up (n, CONN(i)); 
    254                 list_add (LIST(n), list); 
    255         } 
    256  
    257         if (list_empty(list)) 
     254                cherokee_list_add (LIST(n), list); 
     255        } 
     256 
     257        if (cherokee_list_empty (list)) 
    258258                return ret_not_found; 
    259259 
     
    278278        } 
    279279 
    280         if (list_empty(list)) 
     280        if (cherokee_list_empty (list)) 
    281281                return ret_not_found; 
    282282 
  • cherokee/trunk/cherokee/ext_source.c

    r384 r385  
    372372                /* Instance a new entry 
    373373                 */ 
    374                 if (list_empty (ext_list)) { 
     374                if (cherokee_list_empty (ext_list)) { 
    375375                        ret = cherokee_ext_source_head_new (&head); 
    376376                        if (ret != ret_ok) return ret; 
     
    384384                /* Add the entry to the list 
    385385                 */ 
    386                 list_add_tail (LIST(server_entry), ext_list); 
     386                cherokee_list_add_tail (LIST(server_entry), ext_list); 
    387387 
    388388                /* Parse properties 
  • cherokee/trunk/cherokee/fcgi_dispatcher.c

    r384 r385  
    8080                cherokee_connection_t *conn = HANDLER_CONN(l); 
    8181 
    82                 list_del (LIST(conn)); 
     82                cherokee_list_del (LIST(conn)); 
    8383                cherokee_thread_inject_active_connection (HANDLER_THREAD(l), conn); 
    8484        } 
     
    177177        cherokee_list_t *i; 
    178178 
    179         if (list_empty (&fcgi->queue)) 
     179        if (cherokee_list_empty (&fcgi->queue)) 
    180180                return ret_ok; 
    181181 
    182182        i = fcgi->queue.next; 
    183         list_del (i); 
     183        cherokee_list_del (i); 
    184184 
    185185        return cherokee_thread_inject_active_connection (CONN_THREAD(i), CONN(i)); 
     
    190190cherokee_fcgi_dispatcher_queue_conn (cherokee_fcgi_dispatcher_t *fcgi, cherokee_connection_t *conn) 
    191191{ 
    192         list_add_tail (LIST(conn), &fcgi->queue); 
     192        cherokee_list_add_tail (LIST(conn), &fcgi->queue); 
    193193        return ret_ok; 
    194194} 
  • cherokee/trunk/cherokee/handler_cgi_base.c

    r384 r385  
    180180                                if (env == NULL) return ret_error; 
    181181 
    182                                 list_add_tail (LIST(env), &props->system_env); 
     182                                cherokee_list_add_tail (LIST(env), &props->system_env); 
    183183                        } 
    184184                } else if (equal_buf_str (&subconf->key, "error_handler")) { 
  • cherokee/trunk/cherokee/handler_dirlist.c

    r384 r385  
    410410 
    411411        list_for_each_safe (i, tmp, &dhdl->dirs) { 
    412                 list_del (i); 
     412                cherokee_list_del (i); 
    413413                free (i); 
    414414        } 
    415415 
    416416        list_for_each_safe (i, tmp, &dhdl->files) { 
    417                 list_del (i); 
     417                cherokee_list_del (i); 
    418418                free (i); 
    419419        } 
     
    559559 
    560560                if (S_ISDIR(item->stat.st_mode)) { 
    561                         list_add (LIST(item), &dhdl->dirs); 
     561                        cherokee_list_add (LIST(item), &dhdl->dirs); 
    562562                } else { 
    563                         list_add (LIST(item), &dhdl->files); 
     563                        cherokee_list_add (LIST(item), &dhdl->files); 
    564564                } 
    565565        } 
     
    572572        /* Sort the file list 
    573573         */ 
    574         if (! list_empty(&dhdl->files)) { 
     574        if (! cherokee_list_empty(&dhdl->files)) { 
    575575                list_sort_by_type (&dhdl->files, dhdl->sort); 
    576576                dhdl->file_ptr = dhdl->files.next; 
     
    580580         * it doesn't make sense to look for the size 
    581581         */ 
    582         if (! list_empty(&dhdl->dirs)) { 
     582        if (! cherokee_list_empty (&dhdl->dirs)) { 
    583583                cherokee_dirlist_sort_t sort = dhdl->sort; 
    584584 
     
    660660        if (ret != ret_ok) return ret; 
    661661         
    662         if (! list_empty (&HDL_DIRLIST_PROP(dhdl)->notice_files)) { 
     662        if (! cherokee_list_empty (&HDL_DIRLIST_PROP(dhdl)->notice_files)) { 
    663663                ret = read_notice_file (dhdl); 
    664664                if (ret != ret_ok) return ret; 
  • cherokee/trunk/cherokee/handler_error_redir.c

    r384 r385  
    9494                cherokee_buffer_add_buffer (&entry->url, &subconf->val); 
    9595 
    96                 list_add (&entry->entry, &props->errors); 
     96                cherokee_list_add (&entry->entry, &props->errors); 
    9797        } 
    9898 
  • cherokee/trunk/cherokee/handler_redir.c

    r384 r385  
    227227                TRACE (ENTRIES, "Explicit redirection to '%s'\n", CONN(cnt)->redirect.buf); 
    228228        } else { 
    229                 if (! list_empty (&HDL_REDIR_PROPS(n)->regex_list)) { 
     229                if (! cherokee_list_empty (&HDL_REDIR_PROPS(n)->regex_list)) { 
    230230 
    231231                        /* Manage the regex rules 
     
    336336        /* Add the list 
    337337         */ 
    338         list_add_tail (LIST(n), &props->regex_list); 
     338        cherokee_list_add_tail (LIST(n), &props->regex_list); 
    339339 
    340340        return ret_ok; 
  • cherokee/trunk/cherokee/iocache.c

    r384 r385  
    182182                delobj->filename = key; 
    183183                 
    184                 list_add (LIST(delobj), &params->to_delete); 
     184                cherokee_list_add (LIST(delobj), &params->to_delete); 
    185185        } 
    186186 
  • cherokee/trunk/cherokee/list.c

    r384 r385  
    3636         
    3737        list = head->next; 
    38         list_del(head); 
     38        cherokee_list_del(head); 
    3939        insize = 1; 
    4040        for (;;) { 
     
    115115        /* Init 
    116116         */ 
    117         INIT_LIST_HEAD((cherokee_list_t*)n); 
     117        INIT_LIST_HEAD (LIST(n)); 
    118118        n->info = item; 
    119119         
    120120        /* Add to list 
    121121         */ 
    122         list_add ((cherokee_list_t *)n, head); 
     122        cherokee_list_add (LIST(n), head); 
    123123         
    124124        return ret_ok; 
     
    133133        /* Init 
    134134         */ 
    135         INIT_LIST_HEAD((cherokee_list_t*)n); 
     135        INIT_LIST_HEAD (LIST(n)); 
    136136        n->info = item; 
    137137         
    138138        /* Add to list 
    139139         */ 
    140         list_add_tail ((cherokee_list_t *)n, head); 
     140        cherokee_list_add_tail (LIST(n), head); 
    141141         
    142142        return ret_ok; 
     
    162162cherokee_list_content_free_item (cherokee_list_t *head, cherokee_list_free_func free_func) 
    163163{ 
    164         list_del (head); 
     164        cherokee_list_del (head); 
    165165         
    166166        if ((free_func != NULL) && (LIST_ITEM(head)->info)) { 
     
    176176cherokee_list_content_free_item_simple (cherokee_list_t *head) 
    177177{ 
    178         list_del (head); 
     178        cherokee_list_del (head); 
    179179         
    180180        if (LIST_ITEM(head)->info) { 
  • cherokee/trunk/cherokee/list.h

    r384 r385  
    6464 
    6565static inline int  
    66 list_empty (cherokee_list_t *list) 
     66cherokee_list_empty (cherokee_list_t *list) 
    6767{ 
    6868        return (list->next == list); 
     
    7070 
    7171static inline void  
    72 list_add (cherokee_list_t *new_entry, cherokee_list_t *head) 
     72cherokee_list_add (cherokee_list_t *new_entry, cherokee_list_t *head) 
    7373{ 
    7474        new_entry->next  = head->next; 
     
    7979 
    8080static inline void  
    81 list_add_tail (cherokee_list_t *new_entry, cherokee_list_t *head) 
     81cherokee_list_add_tail (cherokee_list_t *new_entry, cherokee_list_t *head) 
    8282{ 
    8383        new_entry->next  = head; 
     
    8888 
    8989static inline void 
    90 list_del (cherokee_list_t *entry) 
     90cherokee_list_del (cherokee_list_t *entry) 
    9191{ 
    9292        entry->next->prev = entry->prev; 
     
    9595 
    9696static inline void  
    97 list_reparent (cherokee_list_t *list, cherokee_list_t *new_entry) 
     97cherokee_list_reparent (cherokee_list_t *list, cherokee_list_t *new_entry) 
    9898{ 
    99         if (list_empty(list)) 
     99        if (cherokee_list_empty(list)) 
    100100                return; 
    101101         
  • cherokee/trunk/cherokee/matching_list.c

    r384 r385  
    7777        n->string = strdup(item); 
    7878 
    79         list_add (LIST(n), list);      
     79        cherokee_list_add (LIST(n), list);     
    8080        return ret_ok; 
    8181} 
  • cherokee/trunk/cherokee/mime.c

    r384 r385  
    5555 
    5656        list_for_each_safe (i, tmp, &mime->mime_list) { 
    57                 list_del (i); 
     57                cherokee_list_del (i); 
    5858                cherokee_mime_entry_free (MIME_ENTRY(i)); 
    5959        } 
     
    102102cherokee_mime_add_entry (cherokee_mime_t *mime, cherokee_mime_entry_t *entry) 
    103103{ 
    104         list_add (LIST(entry), &mime->mime_list); 
     104        cherokee_list_add (LIST(entry), &mime->mime_list); 
    105105        return ret_ok; 
    106106} 
  • cherokee/trunk/cherokee/reqs_list.c

    r384 r385  
    132132        /* Add the new connection 
    133133         */ 
    134         list_add_tail (&plugin_entry->list_node, LIST(rl)); 
     134        cherokee_list_add_tail (&plugin_entry->list_node, LIST(rl)); 
    135135         
    136136        /* Compile the expression 
  • cherokee/trunk/cherokee/server.c

    r384 r385  
    795795                thread->thread_pref = (i % 2)? thread_normal_tls : thread_tls_normal; 
    796796 
    797                 list_add (LIST(thread), &srv->thread_list); 
     797                cherokee_list_add (LIST(thread), &srv->thread_list); 
    798798        } 
    799799#endif 
     
    12961296                if (ret != ret_ok) return ret; 
    12971297 
    1298                 list_add (LIST(vsrv), &srv->vservers); 
     1298                cherokee_list_add (LIST(vsrv), &srv->vservers); 
    12991299 
    13001300                param[0] = srv; 
  • cherokee/trunk/cherokee/thread.c

    r384 r385  
    272272add_connection (cherokee_thread_t *thd, cherokee_connection_t *conn) 
    273273{ 
    274         list_add_tail (LIST(conn), &thd->active_list); 
     274        cherokee_list_add_tail (LIST(conn), &thd->active_list); 
    275275        thd->active_list_num++; 
    276276} 
     
    279279add_connection_polling (cherokee_thread_t *thd, cherokee_connection_t *conn) 
    280280{ 
    281         list_add_tail (LIST(conn), &thd->polling_list); 
     281        cherokee_list_add_tail (LIST(conn), &thd->polling_list); 
    282282        thd->polling_list_num++; 
    283283} 
     
    286286del_connection (cherokee_thread_t *thd, cherokee_connection_t *conn) 
    287287{ 
    288         list_del (LIST(conn)); 
     288        cherokee_list_del (LIST(conn)); 
    289289        thd->active_list_num--; 
    290290} 
     
    293293del_connection_polling (cherokee_thread_t *thd, cherokee_connection_t *conn) 
    294294{ 
    295         list_del (LIST(conn)); 
     295        cherokee_list_del (LIST(conn)); 
    296296        thd->polling_list_num--; 
    297297} 
     
    313313        /* Add it to the reusable connection list 
    314314         */ 
    315         list_add (LIST(conn), &thread->reuse_list); 
     315        cherokee_list_add (LIST(conn), &thread->reuse_list); 
    316316        thread->reuse_list_num++; 
    317317 
     
    857857                         */ 
    858858                        matched_req = false; 
    859                         if (! list_empty (&ventry->reqs)) { 
     859                        if (! cherokee_list_empty (&ventry->reqs)) { 
    860860                                ret = cherokee_connection_get_req_entry (conn, &ventry->reqs, &entry); 
    861861                                switch (ret) { 
     
    17011701        server = SRV(thd->server); 
    17021702 
    1703         if (list_empty (&thd->reuse_list)) { 
     1703        if (cherokee_list_empty (&thd->reuse_list)) { 
    17041704                ret_t ret; 
    17051705 
     
    17121712                 */ 
    17131713                new_connection = CONN(thd->reuse_list.prev); 
    1714                 list_del (LIST(new_connection)); 
     1714                cherokee_list_del (LIST(new_connection)); 
    17151715                thd->reuse_list_num--; 
    17161716