Commit 4e6dcce
committed
[libc++][NFC] Refactor __request_unbuffered_mode
It's a bit awkward to pass the char* and the size to the function,
which then only decides whether it should be a no-op with it. Instead,
only call the function when the pointer is null and n is 0, which
matches more closely what the standard says with respect to calling
pubsetbuf(0, 0).1 parent aae2b89 commit 4e6dcce
1 file changed
+9
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
430 | 428 | | |
431 | 429 | | |
432 | 430 | | |
| |||
934 | 932 | | |
935 | 933 | | |
936 | 934 | | |
937 | | - | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
938 | 938 | | |
939 | 939 | | |
940 | 940 | | |
| |||
0 commit comments