Changeset 149 in libcf for trunk/src/cf_list.c


Ignore:
Timestamp:
08/05/13 17:20:57 (11 years ago)
Author:
cheese
Message:

#1 rename context-implemented structures for readability

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/cf_list.c

    r128 r149  
    3838    CF_NODE     * front;
    3939    CF_NODE     * rear;
    40 } CF_LIST_CTX;
     40} CF_LIST_CONTEXT;
    4141
    4242/**
     
    5050CF_List_CreateCtx (CF_List_Ctx * ctx)
    5151{
    52     CF_LIST_CTX * context = NULL;
     52    CF_LIST_CONTEXT * context = NULL;
    5353
    5454    ASSERT_ARGS (ctx == NULL);
    5555
    56     context = (CF_LIST_CTX *) calloc (sizeof (CF_LIST_CTX), 1);
     56    context = (CF_LIST_CONTEXT *) calloc (sizeof (CF_LIST_CONTEXT), 1);
    5757    if (context == NULL)
    5858        return CF_ERROR_DS_CREATE_CTX;
     
    7373CF_List_DestroyCtx (CF_List_Ctx ctx)
    7474{
    75     CF_LIST_CTX * context = (CF_LIST_CTX *) ctx;
     75    CF_LIST_CONTEXT * context = (CF_LIST_CONTEXT *) ctx;
    7676
    7777    ASSERT_CTX (ctx);
     
    9696               CF_Traverser * traverser)
    9797{
    98     CF_LIST_CTX * context = (CF_LIST_CTX *) ctx;
     98    CF_LIST_CONTEXT * context = (CF_LIST_CONTEXT *) ctx;
    9999
    100100    ASSERT_CTX (ctx);
     
    118118              CF_Traverser  * traverser)
    119119{
    120     CF_LIST_CTX * context = (CF_LIST_CTX *) ctx;
     120    CF_LIST_CONTEXT * context = (CF_LIST_CONTEXT *) ctx;
    121121
    122122    ASSERT_CTX (ctx);
     
    149149                const void          * element)
    150150{
    151     CF_LIST_CTX * context = (CF_LIST_CTX *) ctx;
     151    CF_LIST_CONTEXT * context = (CF_LIST_CONTEXT *) ctx;
    152152    CF_NODE     * node = NULL;
    153153    CF_NODE     * newnode = NULL;
     
    220220                CF_Traverser    * traverser)
    221221{
    222     CF_LIST_CTX * context = (CF_LIST_CTX *) ctx;
     222    CF_LIST_CONTEXT * context = (CF_LIST_CONTEXT *) ctx;
    223223    CF_NODE     * node = NULL;
    224224
     
    356356CF_List_GetSize (CF_List_Ctx ctx)
    357357{
    358     CF_LIST_CTX * context = (CF_LIST_CTX *) ctx;
     358    CF_LIST_CONTEXT * context = (CF_LIST_CONTEXT *) ctx;
    359359
    360360    ASSERT_CTX (ctx);
Note: See TracChangeset for help on using the changeset viewer.