* parse.y (rb_parser_end_seen_p): exclude from ripper.

<http://moonrock.jp/~don/d/200507.html#d28_t2>

* sprintf.c (clearerr): remove standard macro before re-definition.
  <http://moonrock.jp/~don/d/200507.html#d28_t3>


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2005-07-28 12:49:31 +00:00
parent 41d41fbdb9
commit b4fef39a40
3 changed files with 21 additions and 12 deletions

View File

@ -1,34 +1,42 @@
Thu Jul 28 21:49:17 2005 IWATSUKI Hiroyuki <don@na.rim.or.jp>
* parse.y (rb_parser_end_seen_p): exclude from ripper.
<http://moonrock.jp/~don/d/200507.html#d28_t2>
* sprintf.c (clearerr): remove standard macro before re-definition.
<http://moonrock.jp/~don/d/200507.html#d28_t3>
Thu Jul 28 18:09:55 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> Thu Jul 28 18:09:55 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/stubs.c: When --enable-tcltk-stubs, the initialize * ext/tk/stubs.c: When --enable-tcltk-stubs, the initialize
routine creates a Tcl/Tk interpreter and deletes it. However, routine creates a Tcl/Tk interpreter and deletes it. However,
init cost of Tk's MainWindow is not so small. And that makes it init cost of Tk's MainWindow is not so small. And that makes it
impossible to use libraries written with Tcl functions only on impossible to use libraries written with Tcl functions only on
an environment without a graphical display. This changes support an environment without a graphical display. This changes support
delaying initalization of Tk_Stubs until the script needs Tk. delaying initalization of Tk_Stubs until the script needs Tk.
* ext/tk/stubs.h: New file. Define prototypes and return codes of * ext/tk/stubs.h: New file. Define prototypes and return codes of
functions on stubs.c. functions on stubs.c.
* ext/tk/tcltklib.c: Support delaying initalization of Tk_Stubs * ext/tk/tcltklib.c: Support delaying initalization of Tk_Stubs
until the script needs Tk. until the script needs Tk.
* ext/tk/tcltklib.c: Show friendly error messages for errors on * ext/tk/tcltklib.c: Show friendly error messages for errors on
initialization. initialization.
* ext/tk/tcltklib.c: Avoid SEGV on ip_finalize() when ruby is * ext/tk/tcltklib.c: Avoid SEGV on ip_finalize() when ruby is
exiting and $DEBUG is true. (Not fix. If you know the reason of exiting and $DEBUG is true. (Not fix. If you know the reason of
why, please fix it.) why, please fix it.)
* ext/tk/tkutil/tkutil.c (ary2list, ary2list2): bug fix on handling * ext/tk/tkutil/tkutil.c (ary2list, ary2list2): bug fix on handling
of encoding. of encoding.
* ext/tk/lib/multi-tk.rb: MultiTkIp#eval_string and bg_eval_string * ext/tk/lib/multi-tk.rb: MultiTkIp#eval_string and bg_eval_string
don't work propery. don't work propery.
* ext/tk/lib/tk.rb: Forget extending Tk::Encoding module to Tk. * ext/tk/lib/tk.rb: Forget extending Tk::Encoding module to Tk.
* ext/tk/lib/tk/variable.rb: TkVarAccess fails to initialize the * ext/tk/lib/tk/variable.rb: TkVarAccess fails to initialize the
object for an element of a Tcl's array variable. object for an element of a Tcl's array variable.
Thu Jul 28 17:23:37 2005 Yukihiro Matsumoto <matz@ruby-lang.org> Thu Jul 28 17:23:37 2005 Yukihiro Matsumoto <matz@ruby-lang.org>

View File

@ -8791,7 +8791,6 @@ rb_parser_new()
return Data_Wrap_Struct(0, parser_mark, parser_free, p); return Data_Wrap_Struct(0, parser_mark, parser_free, p);
} }
#endif
/* /*
* call-seq: * call-seq:
@ -8809,6 +8808,7 @@ rb_parser_end_seen_p(vparser)
Data_Get_Struct(vparser, struct parser_params, parser); Data_Get_Struct(vparser, struct parser_params, parser);
return ruby__end__seen ? Qtrue : Qfalse; return ruby__end__seen ? Qtrue : Qfalse;
} }
#endif
#ifdef RIPPER #ifdef RIPPER
#ifdef RIPPER_DEBUG #ifdef RIPPER_DEBUG

View File

@ -837,6 +837,7 @@ fmt_setup(buf, c, flags, width, prec)
#define __sFILE rb_printf_sfile #define __sFILE rb_printf_sfile
#undef feof #undef feof
#undef ferror #undef ferror
#undef clearerr
#undef fileno #undef fileno
#if SIZEOF_LONG < SIZEOF_VOIDP #if SIZEOF_LONG < SIZEOF_VOIDP
# if SIZEOF_LONG_LONG == SIZEOF_VOIDP # if SIZEOF_LONG_LONG == SIZEOF_VOIDP