[BACK]Return to cmo.c CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_toolkit

Diff for /OpenXM/src/ox_toolkit/cmo.c between version 1.28 and 1.29

version 1.28, 2018/04/03 09:58:30 version 1.29, 2018/04/05 05:30:20
Line 1 
Line 1 
 /* -*- mode: C; coding: euc-japan -*- */  /* -*- mode: C; coding: euc-japan -*- */
 /* $OpenXM: OpenXM/src/ox_toolkit/cmo.c,v 1.27 2016/06/30 01:14:00 ohara Exp $ */  /* $OpenXM: OpenXM/src/ox_toolkit/cmo.c,v 1.28 2018/04/03 09:58:30 ohara Exp $ */
   
 /*  /*
    This module includes functions for sending/receiveng CMO's.     This module includes functions for sending/receiveng CMO's.
Line 105  cmo *list_nth(cmo_list* this, int n)
Line 105  cmo *list_nth(cmo_list* this, int n)
             el = list_next(el);              el = list_next(el);
         }          }
         return el->cmo;          return el->cmo;
       }
       return NULL;
   }
   
   cell *list_nth_cell(cmo_list* this, int n)
   {
       cell* el;
       if(list_length(this) > n) {
           el = list_first(this);
           while(n-- > 0) {
               el = list_next(el);
           }
           return el;
     }      }
     return NULL;      return NULL;
 }  }

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>