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; } }
internal pipe_list(IO fptr, pipe_list next) { this.fptr = fptr; this.next = next; }
private static void pipe_add_fptr(IO fptr) { pipe_list list = new pipe_list(fptr, _pipe_list); _pipe_list = list; }