Re: [Mingw-w64-public] Patch for locking printf

2015-08-03 Thread Dongsheng Song
On Mon, Aug 3, 2015 at 12:26 PM, lh_mouse wrote: > ISO C11 requires operations on the same stream (or whatever a FILE struct > handles) _not_ to interleave with each other. > This should include outputting each character using puts() or printf() > functions, since they both manipulate the `stdou

Re: [Mingw-w64-public] Patch for locking printf

2015-08-02 Thread lh_mouse
08-03 - 发件人:Dongsheng Song 发送日期:2015-08-03 10:58 收件人:mingw64 抄送: 主题:Re: [Mingw-w64-public] Patch for locking printf On Sat, Aug 1, 2015 at 6:56 AM, JonY wrote: > > On 7/23/2015 06:24, JonY wrote: > > Hi, > > > > Patch introduces a new macro __MINGW_PRINTF_LOCKING

Re: [Mingw-w64-public] Patch for locking printf

2015-08-02 Thread Dongsheng Song
On Sat, Aug 1, 2015 at 6:56 AM, JonY wrote: > > On 7/23/2015 06:24, JonY wrote: > > Hi, > > > > Patch introduces a new macro __MINGW_PRINTF_LOCKING for fprintf and > > vfprintf so when called on the same FILE stream, the operations are not > > overlapped. __USE_MINGW_ANSI_STDIO must also be set fo

Re: [Mingw-w64-public] Patch for locking printf

2015-07-31 Thread JonY
On 7/23/2015 06:24, JonY wrote: > Hi, > > Patch introduces a new macro __MINGW_PRINTF_LOCKING for fprintf and > vfprintf so when called on the same FILE stream, the operations are not > overlapped. __USE_MINGW_ANSI_STDIO must also be set for the new macro to > take effect. > > The reason why it i

[Mingw-w64-public] Patch for locking printf

2015-07-22 Thread JonY
Hi, Patch introduces a new macro __MINGW_PRINTF_LOCKING for fprintf and vfprintf so when called on the same FILE stream, the operations are not overlapped. __USE_MINGW_ANSI_STDIO must also be set for the new macro to take effect. The reason why it is done in such a way is so programs that already