From: WATANABE Hirofumi Date: 2002-11-25T01:11:58+09:00 Subject: [ruby-dev:18939] Re: [ruby-cvs] ruby: * dln.c: move the MAXPATHLEN definition in front. わたなべです。 面倒なのでruby-devへ。 Yukihiro Matsumoto writes: > In message "[ruby-cvs] ruby: * dln.c: move the MAXPATHLEN definition in front." > on 02/11/24, eban writes: > > |eban Sun, 24 Nov 2002 12:36:01 +0000 > | > | Modified files: > | ruby: > | dln.c ChangeLog version.h > | Log: > | * dln.c: move the MAXPATHLEN definition in front. > > This fix hinders the conditional at line 121. > > /* This assumes that systems without length limitation for file names > provide asprintf(). This shouldn't be too unlikely. */ > #ifdef MAXPATHLEN > *buf = xmalloc(MAXPATHLEN); > snprintf(*buf, MAXPATHLEN, FUNCNAME_PATTERN, slash + 1); > #else > asprintf(buf, FUNCNAME_PATTERN, slash + 1); > #endif なるほど。じゃ元に戻して #if defined _WIN32 && !defined __CYGWIN__ HINSTANCE handle; char winfile[MAXPATHLEN]; のところにも入れます。 -- わたなべひろふみ