mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/win32.c (insert): fix prototype for ANSI C.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
076a82105a
commit
c85ab121ff
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Sun Apr 28 17:01:56 2002 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (insert): fix prototype for ANSI C.
|
||||
|
||||
Fri Apr 26 06:48:23 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
||||
|
||||
* ext/dl/ptr.c (cary2ary): missing break in switch statements.
|
||||
|
|
|
@ -727,9 +727,10 @@ typedef struct {
|
|||
} ListInfo;
|
||||
|
||||
static void
|
||||
insert(char *path, ListInfo *listinfo)
|
||||
insert(const char *path, VALUE vinfo)
|
||||
{
|
||||
NtCmdLineElement *tmpcurr;
|
||||
ListInfo *listinfo = (ListInfo *)vinfo;
|
||||
|
||||
tmpcurr = ALLOC(NtCmdLineElement);
|
||||
MEMZERO(tmpcurr, NtCmdLineElement, 1);
|
||||
|
@ -770,7 +771,7 @@ NtCmdGlob (NtCmdLineElement *patt)
|
|||
for (p = buf; *p; p = CharNext(p))
|
||||
if (*p == '\\')
|
||||
*p = '/';
|
||||
rb_globi(buf, (void (*) _((const char*, VALUE)))insert, (VALUE)&listinfo);
|
||||
rb_globi(buf, insert, (VALUE)&listinfo);
|
||||
if (buf != buffer)
|
||||
free(buf);
|
||||
|
||||
|
|
Loading…
Reference in a new issue