Ejemplo n.º 1
0
        private static void pipe_del_fptr(IO fptr)
        {
            pipe_list list = _pipe_list;
            pipe_list tmp;

            if (list.fptr == fptr)
            {
                _pipe_list = list.next;
                list = null;
                return;
            }

            while (list.next != null)
            {
                if (list.next.fptr == fptr)
                {
                    tmp = list.next;
                    list.next = list.next.next;
                    tmp = null;
                    return;
                }
                list = list.next;
            }
        }
Ejemplo n.º 2
0
 internal pipe_list(IO fptr, pipe_list next)
 {
     this.fptr = fptr;
     this.next = next;
 }
Ejemplo n.º 3
0
 private static void pipe_add_fptr(IO fptr)
 {
     pipe_list list = new pipe_list(fptr, _pipe_list);
     _pipe_list = list;
 }