[ruby-cvs:57526] naruse:r50378 (trunk): * win32/win32.c (_filbuf): msvc14 doesn't have it, use _fgetc_nolock.

naruse at ruby-lang.org naruse at ruby-lang.org
Fri Apr 24 07:58:18 JST 2015


naruse	2015-04-24 07:58:11 +0900 (Fri, 24 Apr 2015)

  New Revision: 50378

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50378

  Log:
    * win32/win32.c (_filbuf): msvc14 doesn't have it, use _fgetc_nolock.
    
    * win32/win32.c (_flsbuf): msvc14 doesn't have it, use _fputc_nolock.
    
    * win32/win32.c (vcruntime_file): define vcruntime_file on msvc14
      because it doesn't export FILE's internal structure.
    
    * win32/win32.c (FILE_COUNT): added to abstract FILE->_cnt.
    
    * win32/win32.c (FILE_READPTR): added to abstract FILE->_ptr.
    
    * win32/win32.c (FILE_FILENO): added to abstract FILE->_file.
    
    * win32/win32.c (init_stdhandle): use FILE_FILENO.
    
    * win32/win32.c (rb_w32_getc): use FILE_COUNT and FILE_READPTR.
    
    * win32/win32.c (rb_w32_putc): ditto.

  Modified files:
    trunk/ChangeLog
    trunk/win32/win32.c


More information about the ruby-cvs mailing list