More ANSI'ize

e$B:XF#$H?=$7$^$9!#e(B
e$B$*$O$h$&$4$6$$$^$9!#e(B

e$B1Q8lHG$K9g$o$;$Fe(BREADME.EXT.jae$B$Ne(BDBMe$B%5%s%W%k%3!<%I$re(BANSIe$B2=$7$F$$$?$N$G$9$,!"e(B
.[ch]e$BEy$K;D$ke(B_(…)e$B$b$D$$$G$K>C$7$F$_$^$7$?!#ET9g$N$h$$HO0O$G$;H$$e(B
[email protected]$1$l$P9,$$$G$9!#e(B

e$B$J$*2C$($Fe(BREADME.EXT.jae$B$K$O!“e(Bfill-paragraphe$B$7$F$”$j$^$9!#e(B

Index: README.EXT.ja

— README.EXT.ja (e$B%j%S%8%g%se(B 14640)
+++ README.EXT.ja (e$B:n6H%3%T!<e(B)
@@ -107,16 +107,16 @@
e$BH/@8$9$ke(B)e$B!%F1MM$K%A%’%C%/L5$7$G;H$($kJQ49%^%/%m$Oe(Bdoublee$B$re(B
e$B<h$j=P$9!Ve(BNUM2DBL()e$B!W$,$"$j$^$9!#e(B

-char* e$B$r<h$j=P$9>l9g!“e(Bversion 1.6
e$B0JA0$G$O!Ve(BSTR2CSTR()e$B!W$He(B
-e$B$$$&%^%/%m$r;H$C$F$$$^$7$?$,!”$3$l$Oe(B to_str() e$B$K$h$k0EL[$Ne(B
-e$B7?JQ497k2L$,e(B GC [email protected]$,$"$k$?$a!"e(Bversion 1.7
e$B0J9_$G$Oe(B
-obsolete e$B$H$J$j!"Be$o$j$Ke(B StringValue() e$B$He(B StringValuePtr()
-e$B$r;H$&;v$r?d>)$7$F$$$^$9!#e(BStringValue(var) e$B$Oe(B var e$B$,e(B
String

  • e$B$G$"$l$P2?$b$;$:!"$=$&$G$J$1$l$Pe(B var e$B$re(B var.to_str()
    e$B$N7k2L$Ke(B
    -e$BCV$-49$($k%^%/%m!“e(BStringValuePtr(var) e$B$OF1MM$Ke(B var
    e$B$rCV$-49$(e(B
    -e$B$F$+$ie(B var e$B$NJ8;zNsI=8=$KBP$9$ke(B char*
    e$B$rJV$9%^%/%m$G$9!#e(Bvar e$B$Ne(B
    -e$BFbMF$rD>@\CV$-49$($k=hM}$,F~$k$N$G!“e(Bvar e$B$Oe(B lvalue
    e$B$G$”$kI,MW$,e(B
    -e$B$”$j$^$9!#e(B
    +char* e$B$r<h$j=P$9>l9g!“e(Bversion 1.6
    e$B0JA0$G$O!Ve(BSTR2CSTR()e$B!W$H$$e(B
    +e$B$&%^%/%m$r;H$C$F$$$^$7$?$,!”$3$l$Oe(B to_str()
    e$B$K$h$k0EL[$N7?JQe(B
    +e$B497k2L$,e(B GC [email protected]$,$"$k$?$a!“e(Bversion 1.7
    e$B0J9_$G$Oe(B
    +obsolete e$B$H$J$j!“Be$o$j$Ke(B StringValue() e$B$He(B StringValuePtr()
    +e$B$r;H$&;v$r?d>)$7$F$$$^$9!#e(BStringValue(var) e$B$Oe(B var e$B$,e(B
    String
    +e$B$G$”$l$P2?$b$;$:!”$=$&$G$J$1$l$Pe(B var e$B$re(B var.to_str()
    e$B$N7k2Le(B
    +e$B$KCV$-49$($k%^%/%m!"e(BStringValuePtr(var) e$B$OF1MM$Ke(B var
    e$B$rCV$-e(B
    +e$B49$($F$+$ie(B var e$B$NJ8;zNsI=8=$KBP$9$ke(B char*
    e$B$rJV$9%^%/%m$G$9!#e(B
    +var e$B$NFbMF$rD>@\CV$-49$($k=hM}$,F~$k$N$G!"e(Bvar e$B$Oe(B lvalue
    e$B$G$“e(B
    +e$B$kI,MW$,$”$j$^$9!#e(B

e$B$=$l0J30$N%G!<%?%?%$%W$OBP1~$9$ke(BCe$B$N9=B$BN$,$"$j$^$9!%BP1~$9e(B
e$B$k9=B$BN$N$"$ke(BVALUEe$B$O$=$N$^$^%-%c%9%He(B(e$B7?JQ49e(B)e$B$9$l$P9=B$BN$Ne(B
@@ -576,7 +576,8 @@
e$BDj5A$r9T$$$^$9!%e(Bdbm.ce$B$+$i0lIt0zMQ$7$^$9!%e(B


-Init_dbm()
+void
+Init_dbm(void)
{
/* DBMe$B%/%i%9$rDj5A$9$ke(B */
cDBM = rb_define_class(“DBM”, rb_cObject);
@@ -638,8 +639,7 @@


static VALUE
-fdbm_delete(obj, keystr)

  • VALUE obj, keystr;
    +fdbm_delete(VALUE obj, VALUE keystr)
    {
    :
    }
    @@ -655,10 +655,7 @@


static VALUE
-fdbm_s_open(argc, argv, klass)

  • int argc;
  • VALUE *argv;
  • VALUE klass;
    +fdbm_s_open(int argc, VALUE *argv, VALUE klass)
    {
    :
    if (rb_scan_args(argc, argv, “11”, &file, &vmode) == 1) {
    @@ -687,8 +684,7 @@


static VALUE
-fdbm_indexes(obj, args)

  • VALUE obj, args;
    +fdbm_indexes(VALUE obj, VALUE args)
    {
    :
    }
    @@ -1049,8 +1045,8 @@

char *rb_class2name(VALUE klass)

e$B%/%i%9$NL>A0$rJV$9e(B(e$B%G%P%C%0MQe(B)e$B!%%/%i%9$,L>A0$r;}$?$J$$;~$K$Oe(B,

e$B%/%i%9$NL>A0$rJV$9e(B(e$B%G%P%C%0MQe(B)e$B!%%/%i%9$,L>A0$r;}$?$J$$;~$Ke(B

int rb_respond_to(VALUE obj, ID id)

@@ -1193,10 +1189,10 @@

have_func(func, header)

e$B%X%C%@%U%!%$%ke(Bheadere$B$r%$%s%/%k!<%I$7$F4X?te(Bfunce$B$NB8:_$r%A%’%Ce(B

e$B%/$9$k!%e(Bfunce$B$,I8=`$G$O%j%s%/$5$l$J$$%i%$%V%i%jFb$N$b$N$G$"e(B

e$B$k;[email protected]$Ke(Bhave_librarye$B$G$=$N%i%$%V%i%j$r%A%’%C%/$7$F$*$/e(B

  • e$B;v!%4X?t$,B8:_$9$k;~e(Btruee$B$rJV$9!%e(B

e$B%X%C%@%U%!%$%ke(Bheadere$B$r%$%s%/%k!<%I$7$F4X?te(Bfunce$B$NB8:_$r%A%‘e(B
+
e$B%C%/$9$k!%e(Bfunce$B$,I8=`$G$O%j%s%/$5$l$J$$%i%$%V%i%jFb$N$b$N$Ge(B
+
e$B$"$k;[email protected]$Ke(Bhave_librarye$B$G$=$N%i%$%V%i%j$r%A%’%C%/$7$F$*e(B

  • e$B$/;v!%4X?t$,B8:_$9$k;~e(Btruee$B$rJV$9!%e(B

have_var(var, header)

@@ -1247,7 +1243,8 @@

with_config(withval[, default=nil])

e$B%3%^%s%I%i%$%s>e$Ne(B–with-e$B$G;XDj$5$l$?%%W%7%g%[email protected]$k!%e(B
+
e$B%3%^%s%I%i%$%s>e$Ne(B–with-e$B$G;XDj$5$l$?%
%W%7%g%sCMe(B

enable_config(config, *defaults)
disable_config(config, *defaults)
@@ -1256,8 +1253,9 @@
–disable-e$B$G;[email protected]$k!%e(B
–enable-e$B$,;XDj$5$l$F$$$?>l9g$Oe(Btruee$B!$e(B
–disable-e$B$,;XDj$5$l$F$$$?>l9g$Oe(Bfalsee$B$rJV$9!%e(B

e$B$I$A$i$b;XDj$5$l$F$$$J$$>l9g$O!$%V%m%C%/$D$-$G8F$S=P$5$l$F$$$k>l9g$Oe(B

defaultse$B$re(Byielde$B$7$?7k2L!$%V%m%C%/$J$7$J$ie(Bdefaultse$B$rJV$9!%e(B

  • e$B$I$A$i$b;XDj$5$l$F$$$J$$>l9g$O!$%V%m%C%/$D$-$G8F$S=P$5$l$Fe(B

e$B$$$k>l9g$Oe(B*defaultse$B$re(Byielde$B$7$?7k2L!$%V%m%C%/$J$7$J$ie(B

  • *defaultse$B$rJV$9!%e(B

dir_config(target[, default_dir])
dir_config(target[, default_include, default_lib])
@@ -1266,8 +1264,8 @@
–with--libe$B$N$$$:$l$+$G;XDj$5$l$k%G%#%l%/%H%j$re(B
$CFLAGS e$B$de(B $LDFLAGS
e$B$KDI2C$9$k!%e(B–with--dir=/pathe$B$Oe(B
–with--include=/path/include --with--lib=/path/lib

  • e$B$HEy2A$G$"$k!%DI2C$5$l$?e(B include e$B%G%#%l%/%H%j$He(B lib
    e$B%G%#%l%/%H%j$Ne(B
  • e$BG[Ns$rJV$9!%e(B ([include_dir, lib_dir])
  • e$B$HEy2A$G$"$k!%DI2C$5$l$?e(B include e$B%G%#%l%/%H%j$He(B lib
    e$B%G%#%le(B
  • e$B%/%H%j$NG[Ns$rJV$9!%e(B ([include_dir, lib_dir])

pkg_config(pkg)

Index: dir.c

— dir.c (e$B%j%S%8%g%se(B 14640)
+++ dir.c (e$B:n6H%3%T!<e(B)
@@ -922,7 +922,7 @@

#define GLOB_VERBOSE (1UL << (sizeof(int) * CHAR_BIT - 1))
#define sys_warning(val) \

  • (void)((flags & GLOB_VERBOSE) && rb_protect((VALUE
    (*)_((VALUE)))sys_warning_1, (VALUE)(val), 0))
  • (void)((flags & GLOB_VERBOSE) && rb_protect((VALUE
    (*)(VALUE))sys_warning_1, (VALUE)(val), 0))

#define GLOB_ALLOC(type) (type *)malloc(sizeof(type))
#define GLOB_ALLOC_N(type, n) (type *)malloc(sizeof(type) * (n))
Index: eval.c

— eval.c (e$B%j%S%8%g%se(B 14640)
+++ eval.c (e$B:n6H%3%T!<e(B)
@@ -55,10 +55,10 @@
void rb_clear_trace_func(void);
void rb_thread_stop_timer_thread(void);

-void rb_call_inits _((void));
-void Init_stack _((VALUE *));
-void Init_heap _((void));
-void Init_ext _((void));
+void rb_call_inits(void);
+void Init_stack(VALUE *);
+void Init_heap(void);
+void Init_ext(void);
void Init_BareVM(void);

void
@@ -268,7 +268,7 @@
VALUE
rb_eval_string_protect(const char *str, int *state)
{

  • return rb_protect((VALUE (*)_((VALUE)))rb_eval_string, (VALUE)str,
    state);
  • return rb_protect((VALUE (*)(VALUE))rb_eval_string, (VALUE)str,
    state);
    }

VALUE
Index: eval_intern.h

— eval_intern.h (e$B%j%S%8%g%se(B 14640)
+++ eval_intern.h (e$B:n6H%3%T!<e(B)
@@ -62,7 +62,7 @@
#endif

#ifndef HAVE_STRING_H
-char *strrchr _((const char *, const char));
+char *strrchr(const char *, const char);
#endif

#ifdef HAVE_UNISTD_H
@@ -192,19 +192,19 @@
}
while (0)

-void rb_thread_cleanup _((void));
-void rb_thread_wait_other_threads _((void));
+void rb_thread_cleanup(void);
+void rb_thread_wait_other_threads(void);

int thread_set_raised(rb_thread_t *th);
int thread_reset_raised(rb_thread_t *th);

VALUE rb_f_eval(int argc, VALUE *argv, VALUE self);
-VALUE rb_make_exception _((int argc, VALUE *argv));
+VALUE rb_make_exception(int argc, VALUE *argv);

NORETURN(void rb_fiber_start(void));

-NORETURN(void rb_raise_jump _((VALUE)));
-NORETURN(void rb_print_undef _((VALUE, ID, int)));
+NORETURN(void rb_raise_jump(VALUE));
+NORETURN(void rb_print_undef(VALUE, ID, int));
NORETURN(void vm_localjump_error(const char *, VALUE, int));
NORETURN(void vm_jump_tag_but_local_jump(int, VALUE));

Index: lex.c.src

— lex.c.src (e$B%j%S%8%g%se(B 14640)
+++ lex.c.src (e$B:n6H%3%T!<e(B)
@@ -1,6 +1,6 @@
%{
struct kwtable {char *name; int id[2]; enum lex_state_e state;};
-const struct kwtable *rb_reserved_word _((const char *, unsigned int));
+const struct kwtable *rb_reserved_word(const char *, unsigned int);
#ifndef RIPPER
%}

Index: lex.c.blt

— lex.c.blt (e$B%j%S%8%g%se(B 14640)
+++ lex.c.blt (e$B:n6H%3%T!<e(B)
@@ -31,7 +31,7 @@
#line 1 “keywords”

struct kwtable {char *name; int id[2]; enum lex_state_e state;};
-const struct kwtable *rb_reserved_word _((const char *, unsigned int));
+const struct kwtable *rb_reserved_word(const char *, unsigned int);
#ifndef RIPPER
#line 7 “keywords”
struct kwtable;
Index: keywords

— keywords (e$B%j%S%8%g%se(B 14640)
+++ keywords (e$B:n6H%3%T!<e(B)
@@ -1,6 +1,6 @@
%{
struct kwtable {char *name; int id[2]; enum lex_state_e state;};
-const struct kwtable *rb_reserved_word _((const char *, unsigned int));
+const struct kwtable *rb_reserved_word(const char *, unsigned int);
#ifndef RIPPER
%}

Index: load.c

— load.c (e$B%j%S%8%g%se(B 14640)
+++ load.c (e$B:n6H%3%T!<e(B)
@@ -215,7 +215,7 @@
rb_provide_feature(rb_str_new2(feature));
}

-NORETURN(static void load_failed _((VALUE)));
+NORETURN(static void load_failed(VALUE));

void
rb_load(VALUE fname, int wrap)
Index: thread.c

— thread.c (e$B%j%S%8%g%se(B 14640)
+++ thread.c (e$B:n6H%3%T!<e(B)
@@ -1998,7 +1998,7 @@

  • were created.
    */

-static VALUE thgroup_s_alloc _((VALUE));
+static VALUE thgroup_s_alloc(VALUE);
static VALUE
thgroup_s_alloc(VALUE klass)
{

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs