int createList ( int listData ) { int list = newList_ ( ) ; // m_lists.set_field(list, 0, null_node());//head // m_lists.set_field(list, 1, null_node());//tail // m_lists.set_field(list, 2, null_node());//prev list m_lists . setField ( list , 3 , m_list_of_lists ) ; // next list m_lists . setField ( list , 4 , 0 ) ; // node count in the list m_lists . setField ( list , 5 , listData ) ; if ( m_list_of_lists != nullNode ( ) ) setPrevList_ ( m_list_of_lists , list ) ; m_list_of_lists = list ; return list ; }
listData is user s info associated with the list