ARGF 1731 io.c if (io == ARGF.current_file) { ARGF 1732 io.c ARGF.lineno -= fptr->lineno; ARGF 3168 io.c if (io == ARGF.current_file) { ARGF 3169 io.c ARGF.lineno += new_lineno - old_lineno; ARGF 3170 io.c ARGF.last_lineno = ARGF.lineno; ARGF 3173 io.c ARGF.last_lineno = new_lineno; ARGF 7825 io.c memset(&ARGF, 0, sizeof(ARGF)); ARGF 7826 io.c argf_init(&ARGF, argv); ARGF 7836 io.c ARGF = argf_of(orig); ARGF 7837 io.c ARGF.argv = rb_obj_dup(ARGF.argv); ARGF 7838 io.c if (ARGF.inplace) { ARGF 7839 io.c const char *inplace = ARGF.inplace; ARGF 7840 io.c ARGF.inplace = 0; ARGF 7841 io.c ARGF.inplace = ruby_strdup(inplace); ARGF 7867 io.c ARGF.lineno = NUM2INT(val); ARGF 7868 io.c ARGF.last_lineno = ARGF.lineno; ARGF 7888 io.c return INT2FIX(ARGF.lineno); ARGF 7894 io.c return rb_funcall3(ARGF.current_file, rb_frame_this_func(), argc, argv); ARGF 7899 io.c (ARGF.current_file == rb_stdin && !RB_TYPE_P(ARGF.current_file, T_FILE)) ARGF 7912 io.c VALUE file = ARGF.current_file; ARGF 7918 io.c ARGF.init_p = -1; ARGF 7935 io.c if (ARGF.init_p == 0) { ARGF 7936 io.c if (!NIL_P(ARGF.argv) && RARRAY_LEN(ARGF.argv) > 0) { ARGF 7937 io.c ARGF.next_p = 1; ARGF 7940 io.c ARGF.next_p = -1; ARGF 7942 io.c ARGF.init_p = 1; ARGF 7945 io.c if (NIL_P(ARGF.argv)) { ARGF 7946 io.c ARGF.next_p = -1; ARGF 7948 io.c else if (ARGF.next_p == -1 && RARRAY_LEN(ARGF.argv) > 0) { ARGF 7949 io.c ARGF.next_p = 1; ARGF 7953 io.c if (ARGF.next_p == 1) { ARGF 7955 io.c if (RARRAY_LEN(ARGF.argv) > 0) { ARGF 7956 io.c VALUE filename = rb_ary_shift(ARGF.argv); ARGF 7958 io.c ARGF.filename = rb_str_encode_ospath(filename); ARGF 7961 io.c ARGF.current_file = rb_stdin; ARGF 7962 io.c if (ARGF.inplace) { ARGF 7971 io.c if (ARGF.inplace) { ARGF 7984 io.c if (*ARGF.inplace) { ARGF 7986 io.c rb_str_cat2(str, ARGF.inplace); ARGF 8049 io.c if (!ARGF.binmode) { ARGF 8052 io.c ARGF.current_file = prep_io(fr, fmode, rb_cFile, fn); ARGF 8054 io.c rb_io_set_write_io(ARGF.current_file, write_io); ARGF 8057 io.c if (ARGF.binmode) rb_io_ascii8bit_binmode(ARGF.current_file); ARGF 8058 io.c GetOpenFile(ARGF.current_file, fptr); ARGF 8059 io.c if (ARGF.encs.enc) { ARGF 8060 io.c fptr->encs = ARGF.encs; ARGF 8065 io.c if (!ARGF.binmode) { ARGF 8072 io.c ARGF.next_p = 0; ARGF 8075 io.c ARGF.next_p = 1; ARGF 8079 io.c else if (ARGF.next_p == -1) { ARGF 8080 io.c ARGF.current_file = rb_stdin; ARGF 8081 io.c ARGF.filename = rb_str_new2("-"); ARGF 8082 io.c if (ARGF.inplace) { ARGF 8087 io.c if (ARGF.init_p == -1) ARGF.init_p = 1; ARGF 8095 io.c long lineno = ARGF.lineno; ARGF 8100 io.c line = rb_funcall3(ARGF.current_file, idGets, argc, argv); ARGF 8104 io.c line = rb_io_gets(ARGF.current_file); ARGF 8107 io.c line = rb_io_getline(argc, argv, ARGF.current_file); ARGF 8109 io.c if (NIL_P(line) && ARGF.next_p != -1) { ARGF 8111 io.c ARGF.next_p = 1; ARGF 8116 io.c ARGF.lineno = ++lineno; ARGF 8117 io.c ARGF.last_lineno = ARGF.lineno; ARGF 8126 io.c return INT2FIX(ARGF.last_lineno); ARGF 8134 io.c ARGF.last_lineno = ARGF.lineno = n; ARGF 8218 io.c line = rb_io_gets(ARGF.current_file); ARGF 8219 io.c if (NIL_P(line) && ARGF.next_p != -1) { ARGF 8220 io.c rb_io_close(ARGF.current_file); ARGF 8221 io.c ARGF.next_p = 1; ARGF 8226 io.c ARGF.lineno++; ARGF 8227 io.c ARGF.last_lineno = ARGF.lineno; ARGF 8326 io.c long lineno = ARGF.lineno; ARGF 8332 io.c lines = rb_funcall3(ARGF.current_file, rb_intern("readlines"), argc, argv); ARGF 8335 io.c lines = rb_io_readlines(argc, argv, ARGF.current_file); ARGF 8338 io.c ARGF.next_p = 1; ARGF 8340 io.c ARGF.lineno = lineno + RARRAY_LEN(ary); ARGF 8341 io.c ARGF.last_lineno = ARGF.lineno; ARGF 8343 io.c ARGF.init_p = 0; ARGF 10863 io.c if (!RTEST(ARGF.current_file)) { ARGF 10866 io.c return rb_io_external_encoding(rb_io_check_io(ARGF.current_file)); ARGF 10885 io.c if (!RTEST(ARGF.current_file)) { ARGF 10888 io.c return rb_io_internal_encoding(rb_io_check_io(ARGF.current_file)); ARGF 10930 io.c rb_io_set_encoding(argc, argv, ARGF.current_file); ARGF 10931 io.c GetOpenFile(ARGF.current_file, fptr); ARGF 10932 io.c ARGF.encs = fptr->encs; ARGF 10955 io.c return rb_io_tell(ARGF.current_file); ARGF 10972 io.c return rb_io_seek_m(argc, argv, ARGF.current_file); ARGF 10993 io.c return rb_io_set_pos(ARGF.current_file, offset); ARGF 11015 io.c return rb_io_rewind(ARGF.current_file); ARGF 11035 io.c return rb_io_fileno(ARGF.current_file); ARGF 11055 io.c return ARGF.current_file; ARGF 11080 io.c if (RTEST(ARGF.current_file)) { ARGF 11081 io.c if (ARGF.init_p == 0) return Qtrue; ARGF 11084 io.c if (rb_io_eof(ARGF.current_file)) { ARGF 11154 io.c tmp = io_read(argc, argv, ARGF.current_file); ARGF 11159 io.c if (ARGF.next_p != -1) { ARGF 11161 io.c ARGF.next_p = 1; ARGF 11266 io.c tmp = io_getpartial(argc, argv, ARGF.current_file, opts, nonblock); ARGF 11269 io.c if (ARGF.next_p == -1) { ARGF 11273 io.c ARGF.next_p = 1; ARGF 11274 io.c if (RARRAY_LEN(ARGF.argv) == 0) { ARGF 11315 io.c ch = rb_funcall3(ARGF.current_file, rb_intern("getc"), 0, 0); ARGF 11318 io.c ch = rb_io_getc(ARGF.current_file); ARGF 11320 io.c if (NIL_P(ch) && ARGF.next_p != -1) { ARGF 11322 io.c ARGF.next_p = 1; ARGF 11354 io.c if (!RB_TYPE_P(ARGF.current_file, T_FILE)) { ARGF 11355 io.c ch = rb_funcall3(ARGF.current_file, rb_intern("getbyte"), 0, 0); ARGF 11358 io.c ch = rb_io_getbyte(ARGF.current_file); ARGF 11360 io.c if (NIL_P(ch) && ARGF.next_p != -1) { ARGF 11362 io.c ARGF.next_p = 1; ARGF 11394 io.c if (!RB_TYPE_P(ARGF.current_file, T_FILE)) { ARGF 11395 io.c ch = rb_funcall3(ARGF.current_file, rb_intern("getc"), 0, 0); ARGF 11398 io.c ch = rb_io_getc(ARGF.current_file); ARGF 11400 io.c if (NIL_P(ch) && ARGF.next_p != -1) { ARGF 11402 io.c ARGF.next_p = 1; ARGF 11445 io.c const VALUE current = ARGF.current_file; ARGF 11447 io.c if (ARGF.init_p == -1 || current != ARGF.current_file) { ARGF 11456 io.c VALUE ret = rb_block_call(ARGF.current_file, mid, argc, argv, argf_block_call_i, argf); ARGF 11457 io.c if (ret != Qundef) ARGF.next_p = 1; ARGF 11666 io.c return ARGF.filename; ARGF 11697 io.c return ARGF.current_file; ARGF 11714 io.c ARGF.binmode = 1; ARGF 11717 io.c rb_io_ascii8bit_binmode(ARGF.current_file); ARGF 11737 io.c return ARGF.binmode ? Qtrue : Qfalse; ARGF 11757 io.c if (ARGF.init_p && ARGF.next_p == 0) { ARGF 11759 io.c ARGF.next_p = 1; ARGF 11787 io.c if (ARGF.next_p != -1) { ARGF 11788 io.c ARGF.next_p = 1; ARGF 11790 io.c ARGF.lineno = 0; ARGF 11806 io.c return rb_io_closed(ARGF.current_file); ARGF 11832 io.c if (!ARGF.inplace) return Qnil; ARGF 11833 io.c return rb_str_new2(ARGF.inplace); ARGF 11869 io.c if (ARGF.inplace) free(ARGF.inplace); ARGF 11870 io.c ARGF.inplace = 0; ARGF 11874 io.c if (ARGF.inplace) free(ARGF.inplace); ARGF 11875 io.c ARGF.inplace = 0; ARGF 11876 io.c ARGF.inplace = strdup(RSTRING_PTR(val)); ARGF 11890 io.c return ARGF.inplace; ARGF 11896 io.c if (ARGF.inplace) free(ARGF.inplace); ARGF 11897 io.c ARGF.inplace = 0; ARGF 11898 io.c if (suffix) ARGF.inplace = strdup(suffix); ARGF 11918 io.c return ARGF.argv; ARGF 11930 io.c return ARGF.argv; ARGF 11943 io.c if (!RTEST(ARGF.current_file)) { ARGF 11946 io.c return GetWriteIO(ARGF.current_file); ARGF 12484 io.c ARGF.filename = rb_str_new2("-");