diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-24 09:43:22 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-24 09:43:22 +0000 |
commit | 94090b0502fc65f15495fd329145c9f998f10ee3 (patch) | |
tree | 06cf68a9e42f2c91245f5d552468eeb59d14eed7 /error.c | |
parent | 26984290eb4f20a4a2db2b8d461cd36a4a5b0e49 (diff) | |
download | ruby-94090b0502fc65f15495fd329145c9f998f10ee3.tar.gz |
deprecate exposed internal functions
* error.c (rb_compile_error_with_enc, rb_compile_error),
(rb_compile_bug): deprecate internal functions.
* parse.y (parser_yyerror): construct exception message with
source code and carret.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -127,6 +127,7 @@ compile_err_append(VALUE mesg) th->base_block = prev_base_block; } +#if 0 void rb_compile_error_with_enc(const char *file, int line, void *enc, const char *fmt, ...) { @@ -150,6 +151,7 @@ rb_compile_error(const char *file, int line, const char *fmt, ...) va_end(args); compile_err_append(str); } +#endif void rb_compile_error_str(VALUE file, int line, void *enc, const char *fmt, ...) @@ -483,6 +485,7 @@ rb_async_bug_errno(const char *mesg, int errno_arg) abort(); } +#if 0 void rb_compile_bug(const char *file, int line, const char *fmt, ...) { @@ -490,6 +493,7 @@ rb_compile_bug(const char *file, int line, const char *fmt, ...) abort(); } +#endif void rb_compile_bug_str(VALUE file, int line, const char *fmt, ...) |