Skip to content

Commit dda5dc0

Browse files
author
ocean
committed
* array.c: moved to ANSI function style from K&R function style.
(used protoize on windows, so still K&R remains on #ifdef part of other platforms. And `foo _((boo))' stuff is still there) [ruby-dev:26975] * bignum.c, class.c, compar.c, dir.c, dln.c, dmyext.c, enum.c, enumerator.c, error.c, eval.c, file.c, gc.c, hash.c, inits.c, io.c, main.c, marshal.c, math.c, numeric.c, object.c, pack.c, prec.c, process.c, random.c, range.c, re.c, regcomp.c, regenc.c, regerror.c, regexec.c, regparse.c, regparse.h, ruby.c, signal.c, sprintf.c, st.c, string.c, struct.c, time.c, util.h, variable.c, version.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 51e2554 commit dda5dc0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+2211
-5308
lines changed

ChangeLog

+15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
Mon Sep 12 19:26:29 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
2+
3+
* array.c: moved to ANSI function style from K&R function style.
4+
(used protoize on windows, so still K&R remains on #ifdef part of
5+
other platforms. And `foo _((boo))' stuff is still there)
6+
[ruby-dev:26975]
7+
8+
* bignum.c, class.c, compar.c, dir.c, dln.c, dmyext.c, enum.c,
9+
enumerator.c, error.c, eval.c, file.c, gc.c, hash.c, inits.c,
10+
io.c, main.c, marshal.c, math.c, numeric.c, object.c, pack.c,
11+
prec.c, process.c, random.c, range.c, re.c, regcomp.c, regenc.c,
12+
regerror.c, regexec.c, regparse.c, regparse.h, ruby.c, signal.c,
13+
sprintf.c, st.c, string.c, struct.c, time.c, util.h, variable.c,
14+
version.c: ditto.
15+
116
Sun Sep 11 23:23:02 2005 Shugo Maeda <shugo@ruby-lang.org>
217

318
* lib/net/imap.rb (starttls): supported the STARTTLS command.

array.c

+2-8
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,7 @@ rb_ary_new(void)
135135
return rb_ary_new2(ARY_DEFAULT_SIZE);
136136
}
137137

138-
#ifdef HAVE_STDARG_PROTOTYPES
139138
#include <stdarg.h>
140-
#define va_init_list(a,b) va_start(a,b)
141-
#else
142-
#include <varargs.h>
143-
#define va_init_list(a,b) va_start(a)
144-
#endif
145139

146140
VALUE
147141
rb_ary_new3(long n, ...)
@@ -152,7 +146,7 @@ rb_ary_new3(long n, ...)
152146

153147
ary = rb_ary_new2(n);
154148

155-
va_init_list(ar, n);
149+
va_start(ar, n);
156150
for (i=0; i<n; i++) {
157151
RARRAY(ary)->ptr[i] = va_arg(ar, VALUE);
158152
}
@@ -184,7 +178,7 @@ rb_values_new(long n, ...)
184178
long i;
185179

186180
val = ary_new(rb_cValues, n);
187-
va_init_list(ar, n);
181+
va_start(ar, n);
188182
for (i=0; i<n; i++) {
189183
RARRAY(val)->ptr[i] = va_arg(ar, VALUE);
190184
}

0 commit comments

Comments
 (0)