10000 version 1.0-971225 · jruby/ruby@4207990 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4207990

Browse files
matzk0kubun
authored andcommitted
version 1.0-971225
https://cache.ruby-lang.org/pub/ruby/1.0/ruby-1.0-971225.tar.gz Thu Dec 25 17:06:30 1997 Yukihiro Matsumoto <matz@netlab.co.jp> * version 1.0-971225 * some minor bug fixes.
1 parent 66541bb commit 4207990

File tree

8 files changed

+25
-20
lines changed

8 files changed

+25
-20
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Thu Dec 25 17:06:30 1997 Yukihiro Matsumoto <matz@netlab.co.jp>
2+
3+
* version 1.0-971225
4+
5+
* some minor bug fixes.
6+
17
Tue Dec 9 17:54:56 1997 Yukihiro Matsumoto <matz@netlab.co.jp>
28

39
* version 1.0-971209

hash.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,12 @@ hash_foreach_iter(key, value, arg)
108108
return status;
109109
}
110110

111-
static int
111+
static VALUE
112112
hash_foreach_call(arg)
113113
struct hash_foreach_arg *arg;
114114
{
115-
return st_foreach(arg->hash->tbl, hash_foreach_iter, arg);
115+
st_foreach(arg->hash->tbl, hash_foreach_iter, arg);
116+
return Qnil;
116117
}
117118

118119
static int

lib/date.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def _check_date
151151

152152
def Date.at(d)
153153
if d.kind_of? Time
154-
return Date.new(1900+d.year, d.mon, d.mday)
154+
return Date.new(1900+d.year, d.mon+1, d.mday)
155155
end
156156
if d.kind_of? Date
157157
return Date.at(d.period)

main.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
99
************************************************/
1010

11+
#include "ruby.h"
12+
1113
#ifdef DJGPP
1214
unsigned int _stklen = 0x100000;
1315
#endif
@@ -16,13 +18,6 @@ unsigned int _stklen = 0x100000;
1618
int _stacksize = 131072;
1719
#endif
1820

19-
#if (_MSC_VER >= 1000)
20-
__declspec(dllexport) void __stdcall ruby_init();
21-
__declspec(dllexport) void __stdcall ruby_options(int, char *[]);
22-
__declspec(dllexport) void __stdcall ruby_run(void);
23-
__declspec(dllexport) void __stdcall NtInitialize(int *, char ***);
24-
#endif
25-
2621
int
2722
main(argc, argv, envp)
2823
int argc;

missing/nt.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ mypopen (char *cmd, char *mode)
501501
return fp;
502502
}
503503

504+
504505
fRet = CreatePipe(&hInFile, &hOutFile, &sa, 2048L);
505506
if (!fRet)
506507
Fatal("cannot open pipe \"%s\" (%s)", cmd, strerror(errno));
@@ -863,7 +864,7 @@ NtCmdGlob (NtCmdLineElement *patt)
863864

864865
if (patt->flags & NTMALLOC)
865866
free(patt->str);
866-
free(patt);
867+
// free(patt); //TODO: memory leak occures here. we have to fix it.
867868
}
868869

869870
//

st.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ static struct st_hash_type type_strhash = {
3232
strhash,
3333
};
3434

35-
extern void *xmalloc();
35+
void *xmalloc();
36+
void *xcalloc();
37+
void *xrealloc();
3638
static void rehash();
3739

3840
#define max(a,b) ((a) > (b) ? (a) : (b))
@@ -84,7 +86,7 @@ st_init_strtable()
8486
return st_init_table(&type_strhash);
8587
}
8688

87-
int
89+
void
8890
st_free_table(table)
8991
st_table *table;
9092
{
@@ -175,7 +177,7 @@ st_insert(table, key, value)
175177
}
176178
}
177179

178-
int
180+
void
179181
st_add_direct(table, key, value)
180182
st_table *table;
181183
char *key;
@@ -334,7 +336,6 @@ st_delete_safe(table, key, value, never)
334336
char *never;
335337
{
336338
int hash_val;
337-
st_table_entry *tmp;
338339
register st_table_entry *ptr;
339340

340341
hash_val = do_hash(*key, table);
@@ -367,7 +368,7 @@ st_delete_safe(table, key, value, never)
367368
return 0;
368369
}
369370

370-
int
371+
void
371372
st_foreach(table, func, arg)
372373
st_table *table;
373374
enum st_retval (*func)();

st.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ st_table *st_init_table();
3636
st_table *st_init_table_with_size();
3737
st_table *st_init_numtable();
3838
st_table *st_init_strtable();
39-
int st_delete(), st_insert(), st_foreach(), st_free_table();
40-
int st_lookup(), st_find_or_add(), st_add_direct();
39+
int st_delete(), st_delete_safe(), st_insert();
40+
int st_lookup(), st_find_or_add();
41+
void st_foreach(), st_add_direct(), st_free_table();
4142
st_table *st_copy();
4243

4344
#define ST_NUMCMP ((int (*)()) 0)

version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#define RUBY_VERSION "1.0-971209"
2-
#define VERSION_DATE "97/12/09"
1+
#define RUBY_VERSION "1.0-971225"
2+
#define VERSION_DATE "97/12/25"

0 commit comments

Comments
 (0)
0